3094 Commits

Author SHA1 Message Date
Sho SHIMIZU
7b1ef13662 Check preconditions when registering/unregistering resources
Change-Id: Ibe7897fcdef791fb83eb6521c5e48e795612f8f5
2015-08-20 16:25:52 +00:00
Sho SHIMIZU
ea17b831fa Fix parent resource path and set the correct child
Change-Id: I2cbb21d2d8e63cfc2181c16b0c4131e3aec7fd82
2015-08-20 16:25:51 +00:00
alshabib
58fe6dc46f fixes for Meter Service
Change-Id: I83d5b8a2e0a955c050f7afe96761d5709d4f9f18
2015-08-20 16:21:08 +00:00
Madan Jampani
bad538c7c4 ECLinkStore: LinkStore based on EventuallyConsistentMap (disabled right now)
Change-Id: Ib271ad6da90eb8b4d39db160e13c84b7bb695c9b
2015-08-20 16:19:13 +00:00
CNlucius
b786e618be ONOS-2624
Fix host annotations of host description

Change-Id: I4822741e8cdef5c9620f5f2b8cf260fc0f523bf9
2015-08-20 16:03:43 +00:00
Simon Hunt
a17fa676cf ONOS-1479 -- GUI - augmenting topology view for extensibility: WIP.
- Major refactoring of TopologyViewMessageHandler and related classes.

Change-Id: I920f7f9f7317f3987a9a8da35ac086e9f8cab8d3
2015-08-19 18:42:32 -07:00
Sho SHIMIZU
08fdbd2302 ONOS-2691: Register a port as resource when is is added
Change-Id: I8acdf4752cb349c3b87a23240695ffb369c4c48e
2015-08-20 00:51:25 +00:00
Madan Jampani
483d0a2245 Support null timestamps during EC Map remove
Change-Id: I250cc08d6b2570fd9febe5fc50ab0556bedfa410
2015-08-20 00:42:48 +00:00
Sho SHIMIZU
2a1b2332ef Refactor: Rename a method
Change-Id: I43f94df138b63c6312ef317f8dd18063dc1938f6
2015-08-19 23:47:24 +00:00
Sho SHIMIZU
2d8a13a3a8 ONOS-2692: Implement methods to unregister resources
Change-Id: Iae88207c5edecf6645aeff3c15875178b5266634
2015-08-19 23:47:23 +00:00
Thomas Vachuska
0fa2aa1167 ONOS-2486 Adding swagger-based REST API documentation.
Change-Id: I237d973d73549ad30ddc638c1c201f024d344c70
2015-08-19 18:46:38 +00:00
alshabib
10c810b199 added treatment support and conversion to an instruction
moved to meter api to onos-api

Change-Id: I0504f06fdc503953fa7696224d97edda43596d6e
2015-08-19 18:28:09 +00:00
Ray Milkey
a4122367b0 ONOS-2190 - Move org.onosproject.net.config.* out of the incubator
Change-Id: I57cac27ae370ce1155b4f637646d6c25732844e9
2015-08-19 08:59:12 -07:00
Sho SHIMIZU
d97a950028 ONOS-2690: Register a device as resource when it is added
Change-Id: I37f931665e06cb2415d569e61e8c6592faea485a
2015-08-18 11:01:51 -07:00
Sho SHIMIZU
47e7b804de ONOS-2689: Register a link as resource when it is added
Change-Id: I64c6065411731ba3ad5032730ce7b9ae122d01cc
2015-08-18 08:54:30 -07:00
Ray Milkey
810d6e7412 Coverage and SONAR improvements for Objectives classes
- cleaned up constructors to take a builder rather
  than a long list of parameters
- improved coverage of unit tests
- added missing APIs to builder interfaces

Change-Id: I4c4eac302d41f785d401f21e9935bc659ca5f892
2015-08-18 00:27:45 +00:00
Madan Jampani
e10652215f Support for a java.util.Map implementation backed by ConsistentMap
Change-Id: I73240b69d0913f7534bd4006411ab217a40b254c
2015-08-18 00:26:36 +00:00
Simon Hunt
8d22c4ba2d ONOS-1479 -- GUI - augmenting topology view for extensibility: WIP.
Change-Id: I11820a9ff8f446c0d10a0311cee5ce448c15f402
2015-08-17 23:29:56 +00:00
Sho SHIMIZU
726a358841 Pull up methods from ResourceManager to ResourceService
Change-Id: Ia4ac8e06561d38f2c60c44084dd5d6a7784cceb9
2015-08-17 23:17:59 +00:00
Sho SHIMIZU
ba41fc1942 ONOS-2446: Implement API to declare resource hierarchy
Remove API to define resource boundary
(ResourceAdminService.defineResourceBoundary) to integrate with API for
resource hierarchy

Change-Id: Iffa28dec16320122fe41f4f455000596fa266acb
2015-08-17 23:17:36 +00:00
Sho SHIMIZU
1f5e591196 Resource API changes as preparation for hierarchy support (ONOS-2446)
The changes:
- Introduce ResourcePath to point a resource
- Remove Resource interface
- Make ResourceAllocation concrete class and remove DefaultResourceAllocation
- Remove DefaultResource
- Changes in interfaces due to the above changes

Change-Id: I0f3f846be67b0f7917117943aac31e3099c851ec
2015-08-17 23:17:05 +00:00
Madan Jampani
a29c677596 Added RetryingFunction for simplified retry support.
Moved retry logic out of primitives (AtomicCounter) to the caller site.

Change-Id: I319d61f153f98d421baf32a1b5cd69d20dc63427
2015-08-17 23:15:19 +00:00
Madan Jampani
7ffe53db35 Added a valueOrElse static method to Versioned
Change-Id: Icf6406aca716fd2b427fec52e86f6482ce44f393
2015-08-17 23:09:00 +00:00
Hyunsun Moon
7080a0d126 ONOS-2581 Add codec for tunnel id
Change-Id: I6ff456b0419b427945cc53fb74fd0a91cdfa758e
2015-08-14 19:19:33 -07:00
Madan Jampani
01e05fbed2 Removed usage of deprecated ClusterCommunicationService APIs
Change-Id: Id306dadad48d1bad7b3fbde3a40ba3e0fdac4cbc
2015-08-14 11:18:02 -07:00
Madan Jampani
d352010259 Added missing copyright and license text
Change-Id: Id14dbbdb7e95ef4b6168889c3585d00752e126e5
2015-08-14 11:06:03 -07:00
Madan Jampani
d33b07736a ONOS-2626: Make a immutable copy of multimap before iterating over it
Change-Id: I04cddc4fb9a007920783e44b62143d5d2c0553ba
2015-08-14 10:31:29 -07:00
Madan Jampani
9eb55d114a ONOS-2495: Workaround for the fact that kryo deserialization is not thread safe
Change-Id: Id1bd3334f9a5c122984d08f97dbbbf622b27cf33
2015-08-14 14:59:06 +00:00
Sho SHIMIZU
d29847f404 Refactor to avoid trivial errors in transactions
Include Fixing a bug not to commit the transaction on success

Change-Id: Ie1f823ab6d8fc6f54091d443d24ecc61336155da
2015-08-13 21:01:39 +00:00
Jonathan Hart
96c5a4ab2f ONOS-2513 Fix entire MP2SP intent failing on partial connectivity loss
* Added PartialFailureContraint to MP2SP intent to allow partial connectivity.
   This means the intent remains installed as long as at least one ingress point
   can reach the egress point.
 * Intents with this constraint are recompiled on ObjectiveTracker triggers
   even if not in FAILED state
 * MP2SP intent compiler can compute a partial tree if constraint is set
 * ObjectiveTracker recompiles intents on any link event
 * SDN-IP MP2SP intents now use PartialFailureConstraint

Ported from onos-1.2 branch.

Change-Id: I32eaa198fae1dfba021d9251c8f855573f0e1d7d
2015-08-13 17:38:55 +00:00
Madan Jampani
1151b55409 Remove usage of deprecated ClusterCommunicationService API
Change-Id: I56deac9f5b6977096a680a6eb7198d09aeb4f924
2015-08-12 16:11:55 -07:00
Madan Jampani
c156dd0418 Use mastershipService instead of replicaInfoService to determine device mastership
Change-Id: I9d07351bbd024e02b2b116dc011a8eac2f79cda1
2015-08-12 23:10:49 +00:00
Ray Milkey
24e60b3353 Unit tests for the flow objective store
Change-Id: I6223d973bba5e680396c338a3d8d0663a028d02b
2015-08-12 22:16:09 +00:00
Ray Milkey
b3c5ce2109 Unit tests for the distributed group store.
Change-Id: Ie8f00b9bbc1ba46a6f80e70f63d1fd853d64154b
2015-08-12 22:16:09 +00:00
Sho SHIMIZU
264e4b7136 Catch a specific exception, not generic Exception
Change-Id: I7e087de452e093b2d7bc3d098847d51b4dff9460
2015-08-12 12:22:14 -07:00
Madan Jampani
3d6a2f6612 ONOS-2429: Support for a relaxed read consistency mode in ConsistentMap
Change-Id: I7866d8d15de369fd23e482d66cc1c918c033f169
2015-08-12 11:24:30 -07:00
Madan Jampani
632f16bfd8 Destroy ECMap instances on deactivate
Change-Id: I2437582b8d878bbf57d8447cb7d93636c9fc0246
(cherry picked from commit 0fa172fd1bf39495b1f763bbfead6257e815027a)
2015-08-11 23:33:47 +00:00
Madan Jampani
a6d787bf41 ONOS-2440: Simplify DistributedQueue implementation by leveraging state change notification support
Change-Id: Id0a48f07535d8b7e1d0f964bd1c0623ca81d4605
2015-08-11 19:05:15 +00:00
Madan Jampani
bab51a4104 ONOS-2097: Ensure updates made via transactional map result in state change notifications
Change-Id: Iecc1b54d2c4c976278e77dbd825d3e3954c53602
2015-08-11 17:06:09 +00:00
Jonathan Hart
eb8c9476af Created InterfaceService which maintains an inventory of interfaces
based on configuration data.

Change-Id: I98a360fd1b833885fcb41bf9bb8a6e81dc436fd1
2015-08-11 16:51:59 +00:00
Flavio Castro
41b1f3ab34 ONOS-2456 Added usage metrics to Atomic Counter and Distributed Queue plus refactored the code a bit
Refactored code plus instrumented AtomicValue and DistributedSet

Change-Id: I9c5f7c9f23d530131f15d3c98250ea33238dd2ec
2015-08-11 16:43:11 +00:00
Madan Jampani
15687d120a Use thread-safe multimaps
Change-Id: I4e2d1d39fff29caa90159673dd3bd7ff82682c3c
2015-08-11 07:19:35 -07:00
Jonathan Hart
f44e42cf63 Fix for flow equality bug which can cause:
* multiple flows with the same match to be simultaneously present in the flow
   store, and
 * similar but different rule in switch and store, resulting in flows stuck in
   PENDING_ADD state.

Fixes ONOS-2426.

Ported from onos-1.2 branch.

Change-Id: I4b4e444c3a6dba7e4d3278e9469069e2dbdb9b67
2015-08-10 21:16:19 -04:00
Madan Jampani
8566863454 Removed deprecated map change notification support
Change-Id: Ibff2e403129ee026092a24fc15b82e80ffb8dc48
2015-08-10 12:39:57 -07:00
Marc De Leenheer
0b8b2ef8db ONOS-2041: Flows don't stay in PENDING_ADD forever on LINC-OE
Change-Id: I2f4aa8a9a714f0f2a1d8da5987467d5c3282a503
2015-08-07 17:49:01 +00:00
Sho SHIMIZU
70ee1ee340 ONOS-2445: Implement API to declare resource boundary
Change-Id: I91cd59a068a1ec2624089c3a60eb21e0bf7e12c7
2015-08-07 01:54:31 +00:00
Ayaka Koshibe
5373e76dc1 Managers refactored to use ConfigOperators:
o Device, Host, and LinkManagers now use respecive ConfigOperator
implementations to combine Descriptions with Network Configs. This
refactors work done in 3a0cdd57e7b2c2bbdc44743b780b072cb0475f2d.

o Touchups on ConfigOperator impls

Change-Id: I735e7e6bfa0c47c8727433aab804cb2782eebfff
2015-08-07 01:53:00 +00:00
Thomas Vachuska
b2c47a771a Adding ability to synchronize topology clusters' broadcast trees.
Proxy ARP now supports deferred ARP replies until instance learns of the subject host location.

Change-Id: Ib3ee97c0812858b5b4972d945e9e6d2bd397d4c5
2015-08-06 17:38:02 +00:00
Ayaka Koshibe
f1cedf48e0 host config operator
Combination operator for host-related configuration information,
including tests.

Change-Id: I3631db111b7a1140badf1b9f323a3a5811ac7297
2015-08-06 16:06:37 +00:00
Ayaka Koshibe
0891129167 Refactoring BasicDeviceOperator:
It's no longer a subclass of BasicDeviceConfig.

Change-Id: Icb7cc7e133428a19ddd739e4135c59854b082488
2015-08-06 01:19:47 +00:00