Madan Jampani
0cb0067922
Added support for firing up multiple raft partitions + Workaround for an issue where db calls timeout when a raft cluster node is down.
...
Change-Id: I67406da34c8a96b8ab9371d4d9b14653edfd2e2d
2015-02-27 19:57:08 +00:00
Ayaka Koshibe
eeb95106f8
ONOS-1114 - NPE for EQUAL switch reconnection
...
Change-Id: Id5d6f40610bdf4f97e65313c33a91c85678b153b
2015-02-27 05:33:57 +00:00
HIGUCHI Yuta
4d973ebae6
Workaround for ConcurrentModificationException
...
- Workaround fix for ONOS-1193
- If locking the whole link collection damages the performance,
apply the fix suggested on GossipLinkStore comment.
Change-Id: Idd4d2e5b8e3a50843fe7abd10a615cfbd9a16478
2015-02-26 14:31:36 -08:00
Jonathan Hart
dc9d7b85be
PartitionManager: Don't try and store election state separately
...
Change-Id: Ie3733c6caae2e1d68108a6bb1d44bb784f5fedc7
2015-02-26 22:12:05 +00:00
Sho SHIMIZU
d796ae4b6b
Avoid object creation and NullPointerException on unboxing
...
Change-Id: I9b372e7fcf6fb286834fabad60714fe58188b269
2015-02-26 22:05:37 +00:00
Ray Milkey
a046a87148
Due to type mismatch, test wasn't actually testing the contents of the intent
...
Change-Id: Iac78d3917ce6287423c4369f22e448b007a6b5e9
2015-02-26 22:03:41 +00:00
Jonathan Hart
f893be8b15
Add a configuration option to vary how heavyweight anti-entropy is.
...
Change-Id: I57cea61182b3d19deb47608ffb7dd617529ae34c
2015-02-26 20:32:23 +00:00
Brian O'Connor
8016f341e1
adding purge option to IntentRemoveCommand
...
Change-Id: Ic97acd9a8308355cd3135ea5df0a470b3579106e
2015-02-26 19:57:04 +00:00
HIGUCHI Yuta
00c3f57d35
Concurrently update EventuallyConsistentMap
...
- Removed synchronized block on Map updates
which may result in anti-entropy AD sent to the peer containing out-of-sync update/remove,
such as update and remove for the same key, but stale information will be ignored
on the remote peer by timestamp if timestamps are properly generated.
Change-Id: Id4f993eb44b7858d37486be0d4baaff1f9025efa
2015-02-26 19:41:04 +00:00
Jonathan Hart
6a8fd1de53
Cleaned up IntentStores.
...
* Removed HazelcastIntentStore
* Moved SimpleIntentStore back to trivial bundle (and removed older version
that was already in the trivial bundle)
* Removed default methods from IntentStore interface
ONOS-1056
Change-Id: Id5e15f44e287f51cca3e0b12a85d49cb4a07a9d3
2015-02-26 19:36:39 +00:00
Madan Jampani
a14047d6e2
Logging improvements.
...
Change-Id: I79b9ff16a0000e4bd72022f02baef5c779ea1b48
2015-02-26 19:23:03 +00:00
Madan Jampani
bd6845d1a0
ClusterService implementation that relies on accrual failure detector for determining node up/down status.
...
Initially off by default, until futher testing is done.
Change-Id: I0ac8850d76af717e7804d4503bedb227d5894a0a
2015-02-26 19:22:46 +00:00
Sho SHIMIZU
418685e12b
Add unit tests for WithdrawCoordinating phase
...
Change-Id: I13d44f71f0d9f3007da11924c5cebb9c5398bfe7
2015-02-26 18:26:29 +00:00
Jonathan Hart
7baba07872
BGP router now handles the case where groups don't exists right away.
...
Also reworked some logic to make delete routes work.
Change-Id: I1f65279284b85144a847f1295fcbd7695cb59167
2015-02-26 09:51:58 -08:00
Sho SHIMIZU
3a7c98e762
Move IntentCompilers to the dedicated package
...
Change-Id: I9ec09e5e5fce45acfc6417dd640f57fd659f7f1f
2015-02-26 09:11:08 -08:00
Ray Milkey
167ae0b9a6
Change Optional.ofNullable calls to Optional.of
...
Nullable check is not needed because argument is known to be non null
Change-Id: Ie3574ad9bbd1eff8a2088ac8da2804ea2f5e90a1
2015-02-26 08:51:30 -08:00
Ray Milkey
dd5fb9551b
Add unit test for link collection intent installer
...
Change-Id: Ifd89b9868b320546bc55ba78e207993e35aaf50c
2015-02-26 15:00:22 +00:00
Ray Milkey
bb32048ded
Add unit test for MPLS path intent installer
...
- refactored common code from intent installer tests into
a base class.
Change-Id: Iab4d01531748dd014ba73cc2fbed5930d8018977
2015-02-26 15:00:03 +00:00
Jonathan Hart
13d3dd9063
Remove default methods from IntentService interface.
...
Change-Id: Ie0ef999d7237a8e150e770a912c0fcbcd0c56adc
2015-02-26 07:46:51 +00:00
Brian O'Connor
3c4b00d481
Adding ready() to IntentAccumulator
...
Change-Id: I34dc32c1a416629afbf3ba1f5b65d6a764e55fd6
2015-02-26 07:45:59 +00:00
HIGUCHI Yuta
59f0229587
Remove all the mastership roles when a Node leaves the cluster
...
- Fix for ONOS-1189
Change-Id: I695ccd6bf2ff12da3702d1a982e377b7082c9341
2015-02-26 07:11:56 +00:00
alshabib
1058080de1
WIP: Started implementing static flows for corsa vanderweken pipeline.
...
Modified to not use Corsa driver by default.
Change-Id: If8df5769cf084346121d34bf4490f578e6b6f2d0
2015-02-26 03:31:44 +00:00
HIGUCHI Yuta
3a6f7cdc87
Include deviceId in Exception message
...
Change-Id: I1f730c99090bd5078ca24016675208e93ce476bd
2015-02-26 03:29:42 +00:00
Brian O'Connor
645bf200d9
GossipIntentStore: Renaming current and pending maps
...
currentState was poorly named, and also was hidden by a better named local variable.
Change-Id: Ia61eb73890009812d63026d5811553b2ff1bd94e
2015-02-25 19:04:35 -08:00
Madan Jampani
ba7da656e0
Removed lockservice and related classes since they provide no useful functionality at the moment.
...
Change-Id: I20bfb9aa6ede61ac813a464eceb946bcbc2b1bbb
2015-02-25 16:26:48 -08:00
Madan Jampani
15d773cc7e
Changed type of term number and sequence number to long.
...
Change-Id: If90663fa9567988752f8c4af17daeff904865ab7
2015-02-26 00:16:52 +00:00
Jonathan Hart
34f1e3827c
Add intents -p commmand to have some visibility into the pending map
...
Change-Id: Ic29460d8bf78f185bbfa426bc0aeef309b22cf7f
2015-02-26 00:11:57 +00:00
Madan Jampani
5961051006
Added couple of methods to LeadershipService.
...
Change-Id: I259b1a282a51af9425e941a720336f89d66f1097
2015-02-26 00:10:05 +00:00
Pavlin Radoslavov
2811c4032c
Changes related to the "LinkCollectionIntent" type of intents
...
(e.g., Multipoint-to-singlepoint and Singlepoint-to-multipoint)
* Apply the Intent-defined traffic treatment only on the flowmods
on the ingress switch with ingress inport for a flowmod.
Previously, the traffic treatments were applied on each switch,
and semantically it is not the correct (default) behavior.
* Express the flowmods by explicitly specifying the expected inport
in the matching conditions for each flowmod.
Previously, the inport was not included in the matching conditions.
[Merge from branch onos-1.0 - manually]
Change-Id: Ic378b6e8be033a70b016f4ba5550d91fe08ddd9a
2015-02-26 00:02:59 +00:00
Sho SHIMIZU
033bb70b13
Add unit tests for Withdrawing phase
...
Change-Id: I4157b5d8e0fb10443c49e57207982f69395506c4
2015-02-25 23:06:40 +00:00
Jonathan Hart
ac48a95bbb
PartitionManager: Shutdown background thread during deactivate
...
Fixes ONOS-1168.
Change-Id: I7fc4fa3787b552d958e148b96e6a6a9c51291ddb
2015-02-25 14:19:28 -08:00
Ray Milkey
67c221fc0c
Fix a typo in a parameter name
...
Change-Id: I533b40e47841424eec3ec979fa75b975e6b0bee2
2015-02-25 21:25:43 +00:00
Ray Milkey
d9905352c1
Unit test for path intent installer
...
Change-Id: I8683885329d88ed19933c20f4fb96f8a6ba2242d
2015-02-25 19:06:29 +00:00
Sho SHIMIZU
64d4867b46
Add unit tests for Installing phase
...
Change-Id: I8955d20d523daf3abd8e1ef597bf5c26254ca68a
2015-02-25 08:59:37 -08:00
Madan Jampani
d14166a3be
Added a distributed leadership manager implementation on top of consistent map.
...
Change-Id: I3f3c6114df72e3ab033ba39c8608ac4ae11e5272
2015-02-24 17:38:44 -08:00
Sho SHIMIZU
0a3bb1d9ed
Add unit tests for InstallCoordinating phase
...
Change-Id: I49764e9fef761ff0a31da77a2f3a22a3f16fdb63
2015-02-24 23:46:56 +00:00
HIGUCHI Yuta
dc2e7c26f9
Fix for NPE
...
Fix for NPE reported by ONOS-1171
Change-Id: Iadb960eb2806e0d33da034f36ad2a0f9c8aa1be0
2015-02-24 23:44:40 +00:00
Sho SHIMIZU
892509aa5f
Add unit tests for Compiling phase
...
Change-Id: Ib28e48ad0f4e26f56bd2d416ee7f19f9c420a63d
2015-02-24 23:44:22 +00:00
Jonathan Hart
83247f0672
Fix entries getting stuck in the pending map.
...
Pending map timestamp should be composite of
(IntentData.version(), wallclocktime)
Change-Id: I3caf739c4fdb70535696176621649f0842eea467
2015-02-24 23:39:28 +00:00
Jonathan Hart
403ea930f2
Simplify anti-entropy code
...
Change-Id: I6568b1cc7c67e12c5a81ec9f8680f6461813ddce
2015-02-24 21:05:59 +00:00
Sho SHIMIZU
d42058eb89
Rename IntentBatchPreprocess to make its name consistent with behavior
...
Remove "Pre" from the name
Change-Id: I87da1d9e0f4308ff6a545012c26b6618b8415338
2015-02-24 19:32:03 +00:00
Sho SHIMIZU
214ac322b1
Tighten visibility because it is not needed to be public
...
Change-Id: I5925eeff3efa8d3581be1efd4763ad16d6414c9e
2015-02-24 19:28:40 +00:00
Sho SHIMIZU
559e4b9560
Remove unused method/constructor/fields/constants
...
Change-Id: I38d77cf30ab9948acd74d24fcc15c65749fc347b
2015-02-24 19:28:04 +00:00
Sho SHIMIZU
ce49b605d6
Remove dependency on IntentData and IntentStore from IntentWorker
...
- Make createInitialPhase() static and move it to IntentProcessPhase
- Additionally, rename to newInitialPhase()
- IntentWorker's constructor receives an initial intent process phase
Change-Id: I4774493230a008fc5530d9d90b262e1eb441f946
2015-02-24 19:27:59 +00:00
Sho SHIMIZU
662c3dbf1b
Pull out IntentWorker from IntentManager
...
- IntentWorker is placed in phase package
- Make public IntentProcessPhase subclasses package private now
Change-Id: Ie7d218fe5d8a516f3913ff8881d9d17cfd8e4c46
2015-02-24 19:27:58 +00:00
Sho SHIMIZU
e38adb343a
Remove reference to a field of IntentManager from IntentWorker
...
Change-Id: I3ab69f3bcdaa92516783dec096a80220edfc55d5
2015-02-24 19:27:58 +00:00
Sho SHIMIZU
0cb6fe6557
Remove reference to a field of IntentManager from IntentWorker
...
Change-Id: I094c4019fbe8af342e2dae2a1c5ad780728cf27a
2015-02-24 19:27:57 +00:00
Sho SHIMIZU
b413be88c1
Remove createIntentUpdate() a method under IntentWorker
...
Because the method is only accessed from IntentWorker
Change-Id: Id80a93a7dfdaabc0c78a519a47fd979572d990ef
2015-02-24 19:27:57 +00:00
Pavlin Radoslavov
89edb541d7
Added IPv6 support to HostMonitor
...
This fixes ONOS-635
Change-Id: I49cb135af38d54298ba950d5ce1cc110a6f3184d
2015-02-24 08:43:39 +00:00
Ray Milkey
cf590df40f
Remove references to deprecated bandwidth method
...
Change-Id: I98f4f148d573bd7ce644733c33cc038b0b14dc97
2015-02-24 03:04:53 +00:00