3094 Commits

Author SHA1 Message Date
Charles Chan
0c7c43b136 CORD-394 Purge group/flow store when device goes offline
Stage 1: (this commit)
Add a component config purgeOnDisconnection, which is false by default.
When set to true, GroupManager and FlowManager will purge groups/flows
associated with a device when the device goes offline.

Stage 2: (upcoming commit)
Enable these configs in SegmentRoutingManager
Clean up group related information in SegmentRountingManager

Change-Id: I46d047d690d4641e030f6cdd084ce16ac02d8919
2016-01-29 21:00:45 +00:00
Sho SHIMIZU
2486ddd8e4 Pull up components() method as an abstract method
Change-Id: I80aecb74958b697fb18336bbe39853dd5cb67578
2016-01-29 20:17:30 +00:00
Sho SHIMIZU
26a78dff72 Fix typo
Change-Id: I980a87b403ddcf629ad736f11b24df2e60a6477c
2016-01-29 20:16:58 +00:00
Sho SHIMIZU
19816f4e35 Revise Javadoc
- Remove the word "path" as no ResourcePath anymore
- Write conditions that a method throws an exception

Change-Id: Ie2f2e1cfd1c6c68051e6700ef4308363a71d9453
2016-01-29 19:58:33 +00:00
Charles Chan
93fa727942 ONOS-3763 Change flow state to PENDING_ADD when retrying
Will emit a RULE_UPDATE event if the state is changed.
Update unit test accordingly.

Change-Id: Ie84778c62f52f15b7636d41db246814145e73f77
2016-01-29 19:29:24 +00:00
Jian Li
95678966d4 Remove redundant meter id when create a meter entry in REST API
Change-Id: Iec38ea9a612878a2a6f2766c154c8ed8a8b31ef2
2016-01-29 19:26:29 +00:00
HIGUCHI Yuta
5b6dfbaaba - adding more log
Change-Id: I2626a25d5dde502f1954f492b54785ba5fbb540b
2016-01-29 17:47:08 +00:00
Andrea Campanella
28dbe8ff6d ONOS-3829 Fixed bug with inconsistent parent's behaviours when merging drivers
Change-Id: If7b1924b034b0d8ce806410bb9efa4f5258c14f6
2016-01-29 02:21:12 +00:00
Sho SHIMIZU
460b97251b Move static factory methods to the utility class
Change-Id: Icf458adf78f51823e4ffa31346595fa9716485bf
2016-01-28 13:43:21 -08:00
Sho SHIMIZU
763be92118 Avoid using fully qualified name
Change-Id: I273ccfe4bded393ec17128f485842c458cbffac4
2016-01-28 09:41:54 -08:00
Jonathan Hart
51539b85d3 Enforce naming convention regarding abbreviations
Change-Id: Ic81038d3869268a55624ccbbf66048545158b0da
2016-01-28 17:32:37 +00:00
Sho SHIMIZU
f95b96eaa3 Change the APIs to instantiate Resource and ResourceId
Now, DiscreteResource/DiscreteResourceId is provided by DiscreteFactory.
Similarly, ContinuousResource/ContinuousResourceId is provided by
ContinuousFactory. These factory instances can be obtained by static
factory method such as Resource.discrete(...) or Resource.continuous(...).

Change-Id: Ic94f7336c0e1f74cf2dddcac899de300362aff3e
2016-01-28 17:31:58 +00:00
Sho SHIMIZU
d978d9ac01 Move variable declarations out of the loop
Change-Id: I7d89e942e459e65838282f0c7dc9a1399c4af166
2016-01-28 08:57:48 -08:00
Madan Jampani
f95290af5b Added newValue and oldValue methods to MapEvent.
Change-Id: Ibaffc8079de03b1f4623044ec53c949831ea8cd1
2016-01-27 21:06:11 -08:00
Sho SHIMIZU
7f8a7cb733 Define zero argument contructoris for the serializer
Change-Id: I1c5f4a526f886ffb85b1a9d03d661161f66d076b
2016-01-27 16:05:11 -08:00
Sho SHIMIZU
7dac8a4bd6 Change the return type of ResourceId#parent()
Change-Id: Ice8c46f4dca02cfc24f85a6758a8536872b4c262
2016-01-27 21:35:06 +00:00
Sho SHIMIZU
42ac51f340 Make fields private to get classes immutable
Change-Id: Ib2d6c013b8c027b2ddc6a7d1cb204627a2dd7b19
2016-01-27 21:26:25 +00:00
HIGUCHI Yuta
1d7c9cbe6d ONOS-3732 Bandwidth resource registration using netcfg.
- Uses netcfg defined value as available resource if defined,
  else uses port speed as available Bandwidth resource

Change-Id: I2dde9a9194025194ed8785b4608f064debab182b
2016-01-27 13:09:56 -08:00
Sho SHIMIZU
34b55b6aea Remove unnecessary method calls by direct access to the field
Change-Id: If4420b9667ef30ec6a341124a8672b45f315cfb1
2016-01-27 12:49:43 -08:00
Sho SHIMIZU
f0fb361a42 Fix Javadoc warning
Change-Id: Idb0fb76006cb48a79598ef88eeffa499cc6d4e9a
2016-01-27 11:45:09 -08:00
Sho SHIMIZU
2a70451048 Use concrete types instead of abstract types
- ResourceId -> DiscreteResourceId/ContinuousResourceId
- Resource -> DiscreteResource/ContinuousResource

In addition, stop sharing the implementations in the super classes

Change-Id: I44662f6b7c23a23c30844a5b693e1cabab2cc091
2016-01-27 11:05:17 -08:00
Charles Chan
14967c2731 CORD-389 Fix for Accton 6712 deployment
Related to this topic:
- Disable the meter collector since right now it is not supported
- Implement extension VLAN ID selector/treatment for OFDPA
    Since it requires two special flow entries to match untagged packets
        0x1ffe/no mask (filtering rule, need to go first)
        0x0000/0x1fff setvid 0x0ffe (assignment rule, need to go second)
- Not able to point /32 IP address to ECMP group. Use /31 instead.

In addition:
- Implement serializer for ExtensionCriterion

Change-Id: I621b3ad14014d7e6945c014cdae4f7cd2939288e
2016-01-27 06:39:45 +00:00
Sho SHIMIZU
4a1e59f28e Rename: use plural according to the returned type
Change-Id: I7db9ae2fda2f7240d69ad7dbd028ccc0ea8a8fd8
2016-01-27 03:57:51 +00:00
Madan Jampani
fa24218124 Added destroy() method to DistributedPrimitive interface
Implement replace method in ConsistentMap
Using Versioned#valueOrNull in place of Versioned#valueOrElse where appropriate

Change-Id: Ief3f3547d589d35f5c821a1c47035f91078e8316
2016-01-27 01:54:36 +00:00
Ray Milkey
2693bdab3e Add a builder for DefaultLink to hide multiplying constructors
Change-Id: Iaf073d07989c398a8f44541ffdb8dd93e5715162
2016-01-26 21:33:28 +00:00
HIGUCHI Yuta
8946177548 Bugfix for DeviceStores
- Should never return null, when return type is a Collection

Change-Id: I85eb27bf702b5e76facf83db29ab264cf85a6755
2016-01-26 21:28:50 +00:00
Thomas Vachuska
5923b9a5c6 Fixed an NPE in DeviceManager provider service.
Change-Id: I9afc5e715ee88855384652dc81677b3de5b89300
2016-01-26 20:38:33 +00:00
Madan Jampani
063949f6d4 Added Match type to KryoNamespaces.MISC
Change-Id: I0ed11bd33f21aa4a955f32c22c68041589c1b912
2016-01-26 12:10:05 -08:00
Sho SHIMIZU
f33b893003 Move inner classes to upper level
Rename as follows.
- ResourceId.Discrete -> DiscreteResourceId
- ResourceId.Continuous -> ContinuousResourceId
- Resource.Discrete -> DiscreteResource
- Resource.Continuous -> ContinuousResource

Change-Id: I80e59d1eec07128743bacc582a8725bd4d5489b4
2016-01-26 18:59:11 +00:00
Sho SHIMIZU
2d31022034 Introduce two specific types of ResourceId for Discrete and Continuous
Change-Id: I4a29beaabe32ba78fb03336192095edadc63e3c9
2016-01-26 18:58:13 +00:00
Thomas Vachuska
bb062ecd45 Fixing a discrepancy in driver manager implementation.
Change-Id: I774a3ed26dc6d34d6bdc5834e8e38d4d1741c5ed
2016-01-26 18:55:59 +00:00
Andrea Campanella
65ece15943 ONOS-3786 deletePort from specific bridge method and correct bridge name retrivial call in old add and delete ports of OsvdbBridgeConfig
Change-Id: Ib23b90f7793f3afc5d62250b9f1f318b8042ad77
2016-01-26 18:12:16 +00:00
Madan Jampani
b06ccef119 Fix CopycatTransportClient thread check + bump up atomix version to latest rc
Change-Id: Ie66868ebaaa14ea36125e7f419ac3c3a887e9bce
2016-01-25 20:10:28 +00:00
Andreas Papazois
c93117db69 [GEANT] Adding driver/behavior for setting configuration on NETCONF devices.
Change-Id: Iced3ba42c5b1d43d64c06fd19234017dc8a21278
2016-01-25 17:37:03 +00:00
Jian Li
7f256f5376 Fix all javadoc warnings
Change-Id: I26ba78195fd8245eeb25c29ba27cc4b11b2eb791
2016-01-24 15:28:54 -08:00
Madan Jampani
10073670ae Decorators for AsyncConsistentMap
Change-Id: Ie5f325ecb825951456bd950055ba88bb93af01b6
2016-01-23 17:47:43 +00:00
Jonathan Hart
c7840bd784 Improvements to flows list command.
* Added -s option which gives more succinct output.
 * Display each flow on one line for easy grepping.
 * Added ability to filter output by table ID.
 * Flows are now sorted by descending priority within a table.
 * Removed the use of toStringHelper in instructions and criterion to produce
   less verbose output.

Change-Id: I1c874c776491386488ea5a4d23627b20f1e5728b
2016-01-23 15:19:19 +00:00
Jian Li
dfba739230 Fix javadoc warnings
Change-Id: I3de24a04593f47c786f698f5ee1669b3d2f2fdfc
2016-01-23 02:38:40 +00:00
Sho SHIMIZU
8d5ff165bd Sync the test method name with the subject class name
Change-Id: Ifb08ca64f62549fea3e183721e3bff016deb4c3c
2016-01-22 23:13:12 +00:00
Saurav Das
49cb5a1f0f Changes to vRouter to accomodate ofdpa and softrouter pipelines.
Adding arp-spa to flow from vRouter to distinguish between multiple untagged
interfaces with the same macAddress.

Change-Id: Ifd6e00f70c538c780c0f5728d9ba960a4c70b1db
2016-01-22 20:49:46 +00:00
HIGUCHI Yuta
dff91af6a7 Add resource API to query registered resource
Change-Id: Ibf53a0fa383043d17e78578093eb3055631796d0
2016-01-22 18:12:57 +00:00
Ray Milkey
d0dd1357ae API changes for net config link provider
Change-Id: I4c20987b9922906573b69511f634197054f1e8ec
2016-01-22 17:59:39 +00:00
HIGUCHI Yuta
6f828c3864 Bugfix and cosmetic changes to resource subsystem
- Continuous resource was always considered not available
- Support querying for child resource against Continuous
   (result is no children)
- Resource equality to compare id and exact type

- Add missing information in Continuous resource toString()
- More concise String representation for ResourceId

- additional logging added during above bug investigation.

Change-Id: I58a95b95b91c246c3c5dbb136a1820f988c6fccd
2016-01-22 17:45:00 +00:00
Andrea Campanella
238d96e22c ONOS-3758 restructuring driver module with sub-modules for different drivers
Change-Id: I3c65d19be87066448655610abf9d8b89385a4141
2016-01-22 03:36:04 +00:00
Jonathan Hart
c43fd1cc65 Ensure basic SubjectFactories have been initialized before NetworkConfigLoader
Change-Id: I233a5c40f83cc969f187c176af2a9e31e3526c1c
2016-01-22 02:57:53 +00:00
Jonathan Hart
d6fb053d40 Delay loading startup applications.
We need to ensure ApplicationService is fully activated before we try
to load any applications that may depend on it.

Change-Id: I77bcf2534cc43056facb5dca5b6947ab52e61dcc
2016-01-22 02:57:51 +00:00
Madan Jampani
837a363bc8 APIs for accessing/administering storage partitions + API for creating distributed primitives
Change-Id: I54ec3a76fdbdd09a57d283a8bd041a05d6e362c5
2016-01-22 02:54:07 +00:00
Sho SHIMIZU
4a14185032 Move method to IntentProcessPhase
Change-Id: Id9e898d983f3b041dbb376070ef31e36318b40c3
2016-01-22 00:49:53 +00:00
Simon Hunt
c2da488013 Harden DefaultApplication against modification.
Change-Id: I3342e4961096a49ad9761952d73b4a08ea0eebeb
2016-01-21 23:28:30 +00:00
Jian Li
97d6b2d392 [ONOS-3635] Implement List view for extended application properties
Change-Id: Ie8f985f9c2986857df92bcb47b5bdee876f37230
2016-01-21 23:24:02 +00:00