1499 Commits

Author SHA1 Message Date
Ray Milkey
b7f0f64dcc ONOS-3460 - Link provider that enforces strict configuration
This provider uses the "links" configuration of the network
config and only allows discovery of links that are in
the config.

Refactoring will be done in a subsequent patch set - the DiscoveryContext and
LinkDiscovery classes are duplicates, they need to be refactored so the
LLDP provider and the Network Config provider can share them.

Change-Id: I4de12fc1c4ffa05e3cac7767b8a31f48ba379f6c
2016-02-03 21:22:12 +00:00
Thomas Vachuska
c4ee7372c5 Adding first fallback provider for flow rule subsystem.
Fixing onos-check-apps.

Change-Id: Ic8c2bac4403bb7a49813826262706e857932b6c0
2016-02-03 04:51:57 +00:00
Thomas Vachuska
3afbc7f34a Adding ability to project device, link and host model as alternate entities.
Change-Id: If23c018b024a3bbe693f0e66888c5f1707e3f66d
2016-02-02 22:43:22 +00:00
Madan Jampani
28b2cd6beb Added asConsistentMap() method to AsyncConsistentMap for creating a new ConsistentMap instance.
Moved default implementation of ConsistentMap to core/api bundle

Change-Id: Idb7457a93247a007a9990dd82ed1dfd1eaf30010
2016-02-02 10:49:52 -08:00
Sho SHIMIZU
2f26fb2682 Remove mutating methods in IntentData
Change-Id: I1d9ac694922f4a12b2d94a92b64be2c336c31ae3
2016-02-01 14:02:32 -08:00
Thomas Vachuska
7b3fe3a4a5 Defining notion of a projectable entity.
Opened up DefaultDriverHandler to accept arbitrary DriverData.

Added clarifying documentation to DriverData.

Change-Id: Ic96251703bf0461caef4f3950658e2073d889653
2016-02-01 21:29:52 +00:00
Madan Jampani
533ef983f1 AtomicValue updates
- events now have old and new values
    - simplify implementation by using map.replace for compareAndSet
    - Removed option for disabling it from builder. Will make it a system wide option in a subsequent update

Change-Id: I7c1424f8671c0e54688172c273b9262f305b0920
2016-02-01 00:16:35 -08:00
Madan Jampani
47b80ba72e Leader elector distributed primitive interfaces
Change-Id: Ieebf5ddfcf8c5c6a55e4d6d328829cc8dbeef38a
2016-01-31 23:40:38 -08:00
Madan Jampani
4124bc365f LEADER_ELECTOR distributed primitive enum type
Change-Id: I0d11218d0c9e134fb8b63fb24e743169f6b09dc2
2016-01-30 23:53:56 -08:00
Madan Jampani
620f70d03f LeadershipStore updates:
- Now tracking leader and candidates for a topic using a single map.
 - Using term numbers that are incremented by one every time a new leader is elected.
 - Introduced a separate LeadershipStore to conform to the  manager-store pattern

Change-Id: I1d03a6c5e8ff0e68ef0c1e3a6c2d425c4856e470
2016-01-30 23:14:12 -08:00
Sho SHIMIZU
83258ae504 Use more concrete type for return value
Same resources are not allowed for a parent and Set is more suitable than
Collection

Change-Id: Ib45179819d81376678bf8949864b12b5bd721085
2016-01-30 16:33:41 +00:00
HIGUCHI Yuta
dc4394c6d3 Implement toString()
- add more debug logs

Change-Id: I1541d66f24d2dde0712a4daef081ca1f49951ef8
2016-01-30 16:15:17 +00:00
Sho SHIMIZU
7a070c05a6 Write TODO comments
Change-Id: Iba341f40412eece46ac52ca993f8e314fd7307dc
2016-01-29 16:53:28 -08:00
Sho SHIMIZU
6a717dcda6 Restrict exposure to public
Change-Id: Iaa106ccf130e216ac6877de7ccfa7bb4bc3296b1
2016-01-29 16:20:13 -08:00
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
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
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
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
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
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
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
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
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
Simon Hunt
c2da488013 Harden DefaultApplication against modification.
Change-Id: I3342e4961096a49ad9761952d73b4a08ea0eebeb
2016-01-21 23:28:30 +00:00