1436 Commits

Author SHA1 Message Date
Sho SHIMIZU
82bfe99aa8 Fix comment
Change-Id: I69fdec826b1578777020759f5f4144d4057db1d9
2016-02-10 18:25:45 +00:00
Madan Jampani
9254501814 Fast path in transaction manager for single update scenarios
Change-Id: Ia0ad61aabf5c35fbfadc5b127662edb497bcc9c0
2016-02-10 07:55:53 +00:00
Rimon Ashkenazy
8ebfff047b Add OTN device and ports
Change-Id: I18f3376d1466077e95d7324a27a660302f0123b3
2016-02-09 20:36:40 +00:00
Sho SHIMIZU
dd3750cf01 Use ResourceId or DiscreteResourceId when specifying a resource
Change-Id: I4e29558ec649510c8d08bb5e5f8ed10c189252e5
2016-02-09 20:32:50 +00:00
Jonathan Hart
07eb041136 Implemented REST API for multicast RIB.
Change-Id: I5de6fe0aae412083597113e355ba0e8c984be5f1
2016-02-09 18:02:35 +00:00
Madan Jampani
cadd70bd6e Refactor transaction support in preparation for migration to latest APIs
- Added a explicit transaction id type
 - cli command now just returns the identifiers of in-progress transactions
 - Removed redriveTransactions until a better alternative is provided
 - Removed DatabaseUpdate and replaced its usage with MapUpdate

Change-Id: Ic4a14967072068834510cd8459fd2a6790e456ef
2016-02-08 23:29:02 +00:00
Madan Jampani
c27b6b2deb Fix files with windows line endings + Add checkstyle rule to catch this issue
Change-Id: Ic1905f2121c5c2ab66259f7f531c1e36fe58e9d4
2016-02-05 19:51:54 +00:00
Charles Chan
023a898881 Passing current and previous config value in NetworkConfigEvent
Change-Id: I4ed16f17b5fc991594d1b83b6c0ffca7aa2130fa
2016-02-04 22:04:40 +00:00
Madan Jampani
e17d3284ec Adds abstract distributed primitive builder + Refactored AtomicCounter and AtomicValue builder to make use of it.
Change-Id: I56cef62673fabc54ca29634c27e4ff1f41ba6a88
2016-02-04 17:43:50 +00:00
Madan Jampani
15b8ef5bec PartitionManager + StoragePartition{Service,Client} implementation classes
Change-Id: I2125c5678c760e9ed9fc856d1f9ba2ac4e4a3496
2016-02-04 16:09:27 +00:00
Madan Jampani
1f0202cff6 Ignoring atomix unit tests until the spinning issue is debugged
Change-Id: Ib78d41caa0c54b71490b76d46d8b397a94d010e0
2016-02-03 23:06:53 +00:00
Madan Jampani
1beb60c575 Refactor set and value builders to remove reference to DatabaseManager
Change-Id: Ia6d012af0766d117ec1baac8652056818b17c8bf
2016-02-03 22:15:02 +00:00
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
Madan Jampani
5e5b3d6916 State machine implementations for various distributed primitives based on latest Copycat APIs
Change-Id: I622cc196aa1cdf072a5a0b100a5ffaaf71b07900
2016-02-03 01:30:27 +00:00
Madan Jampani
a9673fd7ca Fixes NPE in map event listener
Minor logging improvements in IntentPartitionManager

Change-Id: I7b41428c5b56fcb7f98850f50a804468743b984a
2016-02-03 01:17:13 +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
Madan Jampani
1e8e89c9a7 Fixes NPEs in TranscodingAsyncConsistentMap deserialization code paths
Change-Id: I7898a08d0b999fd6c84ead616856f04bc9765ed5
2016-02-02 08:53:56 -08:00
Madan Jampani
62f15331a6 Remove map listener when caching async consistent map is destroyed
Change-Id: I924609fa484d469c6ea290e9c8879d1ab49cf9fa
2016-02-01 22:58:08 +00:00
Madan Jampani
551d0d269e DistributedPrimitives updates:
Adds a ferderated distributed primitive creator
    Adds a DistributedPrimitives utility class
    Adds a transcoding async consistent map for transcoding between map types

Change-Id: I7bc30e4a8aee9d4286175d7081bbbd0f28b9928f
2016-02-01 22:56:37 +00:00
Sho SHIMIZU
2f26fb2682 Remove mutating methods in IntentData
Change-Id: I1d9ac694922f4a12b2d94a92b64be2c336c31ae3
2016-02-01 14:02:32 -08:00
Madan Jampani
068a438f9d TypeSerializerFactory for using store Serializer with Catalyst serialization
Change-Id: If69eef3b1e41f9f104f760b99f15a5075cd87bd9
2016-02-01 18:54:01 +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
f778c96889 Use partitionId instead of clusterName in CopycatTransport
Change-Id: I8e7ab3863a36944ac9e48e187037fb43695ebde3
2016-01-31 22:56:38 -08:00
Madan Jampani
dbe8a813b8 Fixes NPE in ConsistentDeviceMastershipStore
Change-Id: Id07c8d41338a48e58d7e3ea98312691a2011eeef
2016-01-31 21:10:46 -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
Madan Jampani
f6c973a08d DefaultConsistentMap to automatically retry compute* calls failing due to ConcurrentModification
Change-Id: If59e432e423d323282eb8fe7b1b438899154aae9
2016-01-31 06:44:57 +00:00
Sho SHIMIZU
07b7bc95aa Use specific types instead of using type parameters
Change-Id: I39dc222deb533c7201df1961f5ab2fd589fac39e
2016-01-31 06:31:08 +00: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
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
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
HIGUCHI Yuta
5b6dfbaaba - adding more log
Change-Id: I2626a25d5dde502f1954f492b54785ba5fbb540b
2016-01-29 17:47:08 +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
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
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
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
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
Madan Jampani
10073670ae Decorators for AsyncConsistentMap
Change-Id: Ie5f325ecb825951456bd950055ba88bb93af01b6
2016-01-23 17:47:43 +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
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