3094 Commits

Author SHA1 Message Date
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
Sho SHIMIZU
2fbc33c1bf Fix the compilation error introduced by be394c8
Change-Id: I9104d91541f0f2fcd8476264772a920b59626003
2016-02-09 14:04:30 -08:00
Naoki Shiota
be394c82ba bug fix: ResourceManager#unregisterResources only unregisters given resources and didn't unregister descendants (ONOS-3827).
Change-Id: I48956234553053e2a54834129b5f10357ca116ea
2016-02-09 21:41:51 +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
Shashikanth VH
387a1cad9d null dereference fix.
Change-Id: I98b6226fea3f457fef11c65c092453ffa881b59e
2016-02-09 20:35:35 +05:30
Andrea Campanella
fe1d473f97 Dropping log level of device not having driver for default provider to DEBUG
Change-Id: I79d14ec87ffe24f71407e10f9beb5438c41ac54b
2016-02-09 07:41:18 +00:00
Simon Hunt
3da1a1827d Fix incorrect method prerequisite checks in NetworkConfigManager.
Change-Id: I460190952a4493544cf94dd0e2cec70ad1292ecb
2016-02-09 01:20:37 +00:00
Andrea Campanella
b8d3f3dfcb Adding device information to log of default driver providers
Change-Id: Ie25f6aee76e9ef72052570177dcf2f4a6da8edf4
2016-02-08 15:31:09 -08: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
Andrea Campanella
e427390195 Logging information about device not being driver programmable instead of throwing exception
Change-Id: I1d64e83ca0cabc9378bcaf19badddbba584128f8
2016-02-08 22:28:42 +00:00
Naoki Shiota
bbc7ead126 Fixed a bug that optical intent compilers never release resources reserved during compilation.
Removed tempoary code from optical app (ONOS-2129).

Change-Id: Iee0343964f886196922469eaabe4a72c3f404888
2016-02-08 18:39:39 +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
Michele Santuari
0ff59c27e4 fix on VLAN intent encapsulation ONOS-3467
Change-Id: Ia0a72d13a551fd4183531d35c04ca19d87b85280
2016-02-06 00:58:01 +00:00
Jonathan Hart
b68919e831 Catch and print Errors as well as exceptions in CoreEventDispatcher
Change-Id: I8c41404aba26ad9c09b9b1bdc2e31b8350b1924c
2016-02-05 23:47:40 +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
Madan Jampani
15b8ef5bec PartitionManager + StoragePartition{Service,Client} implementation classes
Change-Id: I2125c5678c760e9ed9fc856d1f9ba2ac4e4a3496
2016-02-04 16:09:27 +00:00
Ray Milkey
520750607a Fix NPE when a criterion does not specify a type
Change-Id: I79a115308d703ccec9e9c147df42a6a0a5b8d6dd
2016-02-04 02:07:16 +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
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
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
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
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
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
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
47b80ba72e Leader elector distributed primitive interfaces
Change-Id: Ieebf5ddfcf8c5c6a55e4d6d328829cc8dbeef38a
2016-01-31 23:40:38 -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
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
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
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