1484 Commits

Author SHA1 Message Date
Ray Milkey
cc6310fc9c Unit test for default partition class
Also added javadocs to DefaultPartition constructors

Change-Id: I4ba37800d61b82fabc60fd5a226850d3a3536913
2016-02-16 14:43:27 -08:00
Madan Jampani
39fff107c4 Method name refactor in DistributedPrimitive + Builder for AsyncLeaderElector
Change-Id: I59be6e66665c0b12d02106bd5c722e9fa38dd7a1
2016-02-15 03:49:12 +00:00
Sho SHIMIZU
37a038b4dd Update Javadoc
Change-Id: Ieefd3650c1f11875d22602174a7bdf9537acf0d6
2016-02-12 18:28:41 -08:00
Brian Stanke
9bf8d7c9b7 ONOS-3655 - Adding username and password support into the device key subsystem.
Change-Id: I196984479126ae3776093a0bded4b3c820a3eab8
2016-02-12 20:06:46 +00:00
Sho SHIMIZU
0e1a47635f Add precondition check to guarantee non-null
Change-Id: I2691fb980ee57befce14a870a2a9f7317e06ea18
2016-02-11 23:00:14 +00:00
Sho SHIMIZU
3163a64dbf Remove an unnecessary blank line
Change-Id: Ia17602bd8c1a0507aeca26ac212e6be322f61a5d
2016-02-11 21:41:47 +00:00
Sho SHIMIZU
b08d58635c Refactor: Rename Resource#isTypeOf() to isSubTypeOf()
Change-Id: I83eed95d53ecc06cd14695cae22bd4e71646040a
2016-02-11 12:46:25 -08:00
Sho SHIMIZU
446fdf09e9 Cosmetics: Rearrange the method definitino order
Change-Id: I978ea1cdf04ad0f4984de35a509b2020378d1c2c
2016-02-11 12:33:05 -08:00
Jonathan Hart
56151262f8 Roll back resource API changes that triggered a bug in the Java compiler
Change-Id: I9e6891fe156148692e59476cb2bec6defb1f9a70
2016-02-11 20:18:21 +00:00
Madan Jampani
e14a09c5dc Implementation for StorageAdmin and PartitionAdmin APIs
Change-Id: I48cbfae6f410425294196884cdb2ce4705fa2c3d
2016-02-11 19:15:31 +00:00
Sho SHIMIZU
fc64ffe4d5 Refactor: change method parameter type of ResourceStore#release()
Use ResourceAllocation as parameter of ResourceStore#release()

Change-Id: I1833b9b23985cd42820093633591fa21daf2f98e
2016-02-11 17:47:32 +00:00
Madan Jampani
538be7420f Refactored primitive builders to consolidate methods into the base DistributedPrimitiveBuilder
Change-Id: I9a24117b41d1feeb5cf460c6adfa484aabcbb8c1
2016-02-11 06:00:52 +00:00
Sho SHIMIZU
84515f36cc Use lower bound wildcard for API to be more flexible
Change-Id: Ia6bcec5afb2e872b55bae4bbd9139ad35ce01284
2016-02-11 02:38:20 +00:00
Thomas Vachuska
e3ea9a4c17 Fixing javadocs
Change-Id: I8e7f6451876c6733bf33667face30b32e5378c99
2016-02-11 01:56:41 +00:00
Sho SHIMIZU
3547d5b156 Remove obsolete ToDo comment
Change-Id: I6343d0dc528eef5e2446eea6c9f370dcaf6ed7e9
2016-02-11 01:25:41 +00:00
Charles Chan
cb13d12979 Expose cookie information in packet context
Change-Id: I7f2cb331a19aeca1a578aade6488a6480d15496c
2016-02-11 01:14:49 +00:00
Jian Li
230ce4fdba Fix incorrect description of getPreviousStatistic method
Change-Id: I803ca5ee86e4a605c06916687d55a37059fe2ad2
2016-02-10 21:51:00 +00:00
Madan Jampani
74da78b62b AsyncConsistentMap methods for supporting transactional updates
Change-Id: Iaeb0aa0abf9f52d514a2c040598599a5b8a55ee8
2016-02-10 21:48:12 +00:00
Brian Stanke
ca93d9aaef ONOS-3655 - This Device key subsystem update adds the implementation of the
DeviceKeyManager and the distributed device key store.

Change-Id: I32544040590b31a59e20f3375fca453a117f940c
2016-02-10 21:45:57 +00:00
Sho SHIMIZU
7b32697856 Simplify method names by removing redundancy
Change-Id: I36df7e23792f7004dfae823a8700f6c887ea1efd
2016-02-10 21:36:33 +00:00
Sho SHIMIZU
72f81b1830 Use ResourceId when unregistering resources instead of Resource
Change-Id: Ib3d1c611ad9eb4491693ea10ee50ea0123f20ee2
2016-02-10 20:06:50 +00:00
Sho SHIMIZU
49fff75f7d Avoid creating an instance when calling resource()
Change-Id: I0d831cc51199bce0e0dc2b7bb1b5bc2df9fbf90b
2016-02-10 03:00:17 +00:00
Sho SHIMIZU
9c02f3af02 Hide underlying components from public use
- Remove components() method from Resource
- Add isTypeOf() method to Resource

Change-Id: I390eb6057fc7e2c3e93eb2a18d161f661ad6c180
2016-02-10 02:59:33 +00:00
Jian Li
8bac5766c9 Not allow to assign values to appId and cookie at the same time
With current implementation, flow id can be either assigned by
fromApp method or withCookie method. This misleads the end-user
to properly instantiate a new flow rule. This commit restricts the
flow id assignment which does not allow to assign cookie and
appId at the same time.

Change-Id: I8d7e27517c7ef636d427c3d8b8f9cc267fcb0702
2016-02-10 01:58:43 +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
Marc De Leenheer
6215fbcf60 Fix bug in OchSignal toString
Change-Id: Ice411f3ea2ed3b3a89069993752427f4298d4134
2016-02-08 18:38:24 +00:00
Ray Milkey
cd6ab18c8c Unit tests for NetworkCongifLinksProvider
Also fixed a few bugs in the provider that were turned up by the new tests.

Change-Id: Icafc945251b4d35ac3f285302af150c0a4d646d6
2016-02-08 18:37:31 +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
Andrea Campanella
5b240530a0 ONOS-3759 Packet fallback driver provider
Change-Id: I8d526f66200b68d21aad3bd88575f6021d10c9a1
2016-02-05 19:46:47 +00:00
Charles Chan
023a898881 Passing current and previous config value in NetworkConfigEvent
Change-Id: I4ed16f17b5fc991594d1b83b6c0ffca7aa2130fa
2016-02-04 22:04:40 +00:00
Andrea Campanella
6ee7392adb ONOS-3759 Group default provider
Change-Id: I318c8036a1836d13f57187bfd28464c740e09f08
2016-02-04 19:34:49 +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
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