1812 Commits

Author SHA1 Message Date
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
Thomas Vachuska
529db0a9b5 Preparing GUI resources for dynamic injection of contributed content. Ready to go, but for now disabled in web.xml.
Change-Id: I0751077702835e7572b20037ba6ddc1950be6037
2015-02-23 16:42:14 -08:00
Ray Milkey
43a2822c10 Refactor tests to use shared mock implementations
Change-Id: Iba4e44b7bb88f8a31add9475a9155f85375ae61a
2015-02-23 22:44:24 +00:00
Madan Jampani
6b5b717d80 Gave threadpools more appropriate names.
Change-Id: Ib7ce71a3028363b1465fbd5775f84e2befaf80c1
2015-02-23 22:40:56 +00:00
Ray Milkey
5a7787a62c Unit test for intent accumulator
Change-Id: Id9f8c918bdddc7fe24e4eb283676fd94275e58cf
2015-02-23 13:58:21 -08:00
Madan Jampani
2af244a977 Never process incoming messages on the netty event loop thread pool.
Currently in a lot of places we are deserializing incoming messages on this threadpool and that could be significantly limiting throughput.

Change-Id: I83eb7e91004cea4addb28bc28f27e50de10028fe
2015-02-23 20:37:25 +00:00
Thomas Vachuska
a0509897a9 Preparing for dynamic GUI extensibility.
Change-Id: Ic25143bb9ad8919d7c9e70d932dde528a9227e6a
2015-02-23 11:31:37 -08:00
Thomas Vachuska
4c6c377110 Fixed javadocs.
Change-Id: I74064c7e6dce702c769272cfa5dba99a61ea5abc
2015-02-23 08:50:49 -08:00
Thomas Vachuska
a132e3acd3 Made intent perf app multi-threaded; doesn't seem to help.
Made Jono's changes to ECM per Madan's suggesion.
Added cell beast.
Re-enabled anti-entropy.
Added ability to push bits through test proxy for faster upload.

Change-Id: I1455d6d443a697d7a3973c88cb81bfdac0e1dd7f
2015-02-22 20:31:04 +00:00
Madan Jampani
2e5f87b548 Limit the amont of work that happens on netty event loop threads.
Currently we are kryo serializing/deserializing the message envelope which can potentially limit throughput.

Change-Id: I0ae9dab53bbb765b7618ceaefda1edf4f77b0b59
2015-02-22 10:37:15 -08:00
Thomas Vachuska
d32bfdcaa9 Fixing javadocs.
Change-Id: I49faf425e0f9aa53547caf42f1d4025fb8d9dba6
2015-02-21 16:39:25 -08:00
Thomas Vachuska
fe8c98ad0b Adding support for user interface extensions.
Change-Id: I1e41d16efc11be31ad4c2fb0c09e86e3dfd26706
2015-02-21 16:17:35 -08:00
Thomas Vachuska
6f94deddef Converted all executors that previously used namedThreads to use groupedThreads instead.
Change-Id: I048709308270de5b7552bc4e8395b0f7201d5949
2015-02-21 14:02:38 -08:00
Sho SHIMIZU
6c28f8371c ONOS-1066: Move IntentCompilers to the dedicated package
Change-Id: I3e588cab0559093d389c9d44d2c7df536cabe953
2015-02-21 18:05:12 +00:00
Sho SHIMIZU
b70521702d Remove dependency on PointToPointIntentCompiler
Create an installable intent, not relying on an IntentCompiler.
This change enables IntentCompilers to be moved to a dedicated package.

Reference: ONOS-1066

Change-Id: Ie5bca33720232afaa4d6642d4f9fda933f6d00e3
2015-02-21 18:01:51 +00:00
Sho SHIMIZU
0e738806ff Move unit tests to PointToPointIntentCompilerTest
The unit tests only depend on PointToPointIntentCompiler and it would be
obstacles when IntentCompiler subclasses are moved to a dedicated package

Change-Id: Ifbfe5ef2a4bae014d2b6cae599fe8860a54e01ca
Reference: ONOS-1066
2015-02-21 17:58:07 +00:00
Sho SHIMIZU
575a364517 Remove obsolete todo comment
Change-Id: I9ebb573e8c259abd71f2cc90bae20764c10cf620
2015-02-21 09:47:50 -08:00
Sho SHIMIZU
b0a47d41c8 ONOS-1048 - Define interfaces instead of using IntentManager
- Define IntentProcessor interface containing methods to process an intent
- Pull out IntentCompiler related tasks to CompilerRegistry
- Pull out IntentInstaller related tasks to InstallerRegistry
- Create an IntentProcessor subclass as inner class in IntentManager

Change-Id: Ia3e8d574a1053e7ddc9b961873ef758c9e0b1b26
2015-02-21 09:33:13 -08:00
Jonathan Hart
054da97e83 Implement command to view Raft partitions
Change-Id: I9d3cea49877d69c2d7935dadbbad2770349e793a
2015-02-21 17:00:39 +00:00
Pavlin Radoslavov
b9e50dff43 Fixed a bug when parsing configuration properties for ReactiveForwarding
by catching the appropriate exception.

Apparently, if a property is configured/enabled in file Foo.cfg, e.g.:
  flowTimeout = 10
then the corresponding object/value in the Dictionary returned by
ComponentContext.getProperties()
has class type String.

However, if the property is commented-out, e.g.:

then the Dictionary still contains an entry for "flowTimeout", but
its class type is Integer.

Also, updated similar code elsewhere that was catching the generic
Exception with catching more specific exception(s).

Change-Id: I33ec348eb9efe3188e22cfc8cee2bb704948726d
2015-02-21 15:57:17 +00:00
Brian O'Connor
71503cd103 PartitionManager: reduce number of partitions to improve stability
Change-Id: I972583c0ba397017b6bfa40f5ddf6f13253c6d45
2015-02-20 22:15:55 -08:00
Brian O'Connor
b289422189 EventuallyConsistentMapImpl: pushing serialization and sending to caller thread
This has the effect of limiting the caller so that it can't overrun the single thread that previously did the job.

If you let this back up, it will use all of your memory. :(

Change-Id: I0a3b93cfa7004e0430d228a68c60e2b7ba966d4e
2015-02-20 22:15:55 -08:00
Brian O'Connor
64a0369dfb IntentInstaller: changing from Set to Collection to improve perf
Change-Id: Ia7f0f7d893645c7528ac9f51acff133f6d82383d
2015-02-20 22:15:46 -08:00
Sho SHIMIZU
1ee563a503 Remove unnecessary non-null check assertions
Private methods need to ensure to return a non-null value

Change-Id: Ie1fffc52282660c4d32c8fbedd9f47049b2e74ae
2015-02-21 05:53:30 +00:00
Ray Milkey
8dc820868c Fix some compiler warnings about unchecked types
Change-Id: Ib360aa05fd0e194a65bbc0b624447e4bdb4ced93
2015-02-21 05:52:36 +00:00
Thomas Vachuska
0249b5377d Enhancing intent-perf logging
Fixing defect in distributed app mgmt
Reducing DB manager heartbeat aggressiveness

Change-Id: I9ba948a2b2166625c56566502143c0d27f9a2c44
2015-02-21 01:32:52 +00:00