701 Commits

Author SHA1 Message Date
Abhishek Dwaraki
1e5873e94d ONOS-400 Topology creation and up time formatting fixes
Change-Id: Iaf6d4dbbc1c7eaae9465a2d931d40f07a75ad07d
2015-03-09 22:50:23 +00:00
Jonathan Hart
32600698de Add CLI command to view groups on switches
Change-Id: I0ce3cca85e8b38d2e713bf1f0abd4303629e15e4
2015-03-09 18:38:10 +00:00
alshabib
346b5b362d Traffic Treatements now support deferred, immediate, table, and clear instructions.
By default, treatments are all immediate. Treatments will be deferred if the builder
predicated by deferred(). Subsequent treatments will be deferred until immediate is called
on the builder again. Multiple calls to deferred and immediate are permitted.

Change-Id: I76b3a44f2219fc1e72a7fb41b72d7bd602be85b7
2015-03-09 18:28:58 +00:00
Thomas Vachuska
3e2b651d93 Fixing javadocs.
Change-Id: I100488664315af9c1b7faffab2d66ea3263d57ca
2015-03-05 19:29:06 +00:00
alshabib
089bb77bd2 partial fix for default flows. Need to redesign packet requests
Change-Id: Ia68412c3843ecd7da3e7ae9f4f52750874fb1409
2015-03-05 01:11:39 +00:00
Saurav Das
fa2fa93ff8 A set of fixes to ensure that the FlowRuleManager can correctly account for flows
from the dataplane in a multi-table pipeline scenario

Change-Id: I9ca3ef9a77781f126a13538647c824b27f77101c
2015-03-04 02:25:39 +00:00
Pavlin Radoslavov
35b4ecb830 Increase a timeout value from 100ms to 1000ms.
This fixes an occasional unit test failure on (slower) VMs.

Change-Id: I56c1009829efd5af98c62cc4cbff7827406a2fc2
2015-03-03 15:06:04 -08:00
Ray Milkey
1c166dc5f1 Enable Intent Manager unit tests
Change-Id: I24352662077b5a1339d52891f18e4758a7433b88
2015-03-03 19:11:07 +00:00
Ray Milkey
b1b66d3fd6 Add unit test for optical path intent installer
Change-Id: I01ee56480b91e6d08bd011bf591401a68e30ee27
2015-03-03 18:02:35 +00:00
Madan Jampani
dd6479f2ac Revert "Turning on Phi accrual failure detector based ClusterService implementation"
This reverts commit 248e87b160330e90f8226c2e1afda187cc700334.

Change-Id: Ic638203b30dde90a411e8a80c53fd1fbbb3b10c0
2015-03-02 02:27:14 +00:00
Madan Jampani
248e87b160 Turning on Phi accrual failure detector based ClusterService implementation
Change-Id: Ica4fd054c247d10bef801c05bccf931147a9a732
2015-02-28 03:38:31 +00:00
Saurav Das
c313c405b2 Couple of changes for the BGP Router project:
1. Link Discovery can be turned off completely via configuration
2. PacketService allows applications to hint at table_type when registering for packets

Change-Id: I89f0bbf84dce1b449db5af19868f83503c44f750
2015-02-27 13:38:43 -08: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
Brian O'Connor
8016f341e1 adding purge option to IntentRemoveCommand
Change-Id: Ic97acd9a8308355cd3135ea5df0a470b3579106e
2015-02-26 19:57: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
Sho SHIMIZU
418685e12b Add unit tests for WithdrawCoordinating phase
Change-Id: I13d44f71f0d9f3007da11924c5cebb9c5398bfe7
2015-02-26 18:26:29 +00: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
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
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
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
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
Sho SHIMIZU
0a3bb1d9ed Add unit tests for InstallCoordinating phase
Change-Id: I49764e9fef761ff0a31da77a2f3a22a3f16fdb63
2015-02-24 23:46:56 +00:00
Sho SHIMIZU
892509aa5f Add unit tests for Compiling phase
Change-Id: Ib28e48ad0f4e26f56bd2d416ee7f19f9c420a63d
2015-02-24 23:44:22 +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
43a2822c10 Refactor tests to use shared mock implementations
Change-Id: Iba4e44b7bb88f8a31add9475a9155f85375ae61a
2015-02-23 22:44:24 +00:00
Ray Milkey
5a7787a62c Unit test for intent accumulator
Change-Id: Id9f8c918bdddc7fe24e4eb283676fd94275e58cf
2015-02-23 13:58:21 -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
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
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