403 Commits

Author SHA1 Message Date
Kavitha Alagesan
8c9e410846 ONOS-6052
Change-Id: I8fb42d86fad6914cf61d309dffe20f8c348b902a
(cherry picked from commit 18f7ca959c65c564da752e3e2d3d7271a75c2c28)
2017-05-19 17:36:26 +00:00
Yuta HIGUCHI
4f8a377740 ONOS-6468 Fix for race condition between compilation and installation complete state.
- Fix for a bug where intent compilation complete state,
  can overwrites intent installation complete state,
  if intent installation completes before compilation complete state is written to the store.
  - Introduced internalState version on IntentData,
    which is effectively mutation count, in order to avoid
    batch write of compilation result overwriting installation result

Change-Id: I5d77dfbe496e690ebdf2b4f9643d2b64c4233182
2017-05-18 21:26:07 +00:00
Yoonseon Han
a578d76b0f [ONOS-6395] (vNet) Defining mastership service
Defines the interface for mastership service for virtual networks.
This service is needed to achieve HA and load balancing.

Change-Id: I5b68511c114ebd818429f4f6eb622dff95dd8630
2017-05-18 12:13:22 -07:00
Harold Huang
3fcf743537 [ONOS-6473] Refactor getPhysicalDevices method in VirtualNetworkService
Change-Id: I3f4549f3ea630283d72a1df1e59f24f33df1b672
2017-05-17 19:02:30 +00:00
Ray Milkey
048bf9af15 Remove deprecated API from the Interface class
Change-Id: Id25d58a74cf5511e964b24b3de5eba80da74104d
2017-05-17 17:12:33 +00:00
Ray Milkey
7639bf953a Remove deprecated API from virtual network flow rule store
Change-Id: I3de9a1bf56d87f0c95843f61ccc3f8f2e37d1c5b
2017-05-17 17:00:45 +00:00
Ray Milkey
08b03a9ec8 Starting snapshot 1.11.0-SNAPSHOT
Change-Id: I5aa84e241545dace6192243c0079924ddf899404
2017-05-15 18:40:20 +00:00
Yoonseon Han
9e04379a87 [ONOS-5919] (vCore) separate Intent store
Change-Id: I3b5b67d7286dafdf11bf3d8d4acafb59a3034e22
2017-05-15 18:17:20 +00:00
Jordi Ortiz
df28ecdae7 [ONOS-6188] Notify to MeterListeners meter installation and removal on device.
Using the MeterStats entries and the actual MeterStore state of the meters notify
just before MeterStore converts the state to ADDED. Remove case is different since
the PENDING_REMOVE state in meter store corresponds to MeterStats meter missing.

Change-Id: I0fe46e1618312b816534c6a7bda7d9e618ca1f7e
2017-05-12 23:19:11 +00:00
Jordi Ortiz
6c847764af [ONOS-5934] MeterId availability after withdraw.
Change-Id: Ib40b3ca53bae48d16ecbed9665a4061dd2f7eb0c
2017-05-12 21:49:26 +00:00
Saurav Das
1547b3ffd8 CORD-1180 Collection of fixes for hash-group buckets. Required the following changes:
Next-objectives that edited groups are now queued in the FlowObjectiveManager instead of the driver.
	  During linkup immediately checking for previous portups that should be added to a hash group.
	  A final retry 30 secs later to catch all ports that should be part of the same hash group.

Change-Id: I7ef450149d685890ca47932b8e559a0c11dc5ab4
2017-05-12 21:37:00 +00:00
Thomas Vachuska
2048c1f81b Cleaning up intent tests setup/teardown to avoid cascading failures
with respect to binding ID generator.

Change-Id: Ia4778f16ff5a3ecb26062e7d7b2c36493081140d
2017-05-11 09:39:42 -07:00
Yoonseon Han
aa25605b95 [ONOS-6241] (vNet) Can't find a virtual device Id
fix for ONOS-6241.
If there are two virtual devices with same deviceId on
the different tenant, our virtual network service failed
to return deviceId.

Change-Id: I7d2000a085406af9b003e52367d6de0f9990d6f0
2017-05-09 23:52:18 +00:00
Yoonseon Han
ffcc32f3bd (vNet) fix:introduce virtual network service adapter
Introduced virtual network servic (and amdin) service adapter as
a effort to refactor the test codes.

Change-Id: I4c809d90a76a9d8d636610ac6d5308693e2ab204
2017-05-09 20:42:00 +00:00
Andrea Campanella
65f9eb929f ONOS-4380 Refactor AlarmId and Alarm construction and update
Change-Id: I0117afda723ba27aadb1db306f7ce15b666f102d
2017-05-08 21:57:10 +00:00
Jonathan Hart
7485070616 Initialize both route stores on activation.
This should prevent bugs due to the distributed store being initialized
at runtime.

Change-Id: I5dde57cc5d06c4b0d36b029f0e05933e7a80eee9
2017-05-05 18:36:12 +00:00
Claudine Chiu
70e2db8f52 ONOS-6382 fail removal of non-existent virtual network with IllegalStateException
Change-Id: I50a81f79660ff6fc63a5426368f2edbcec993155
2017-05-04 22:01:52 +00:00
Thomas Vachuska
11b99fc941 Refining driver subsystem to facilitate coordinated start-up.
- for ONOS-6402

Change-Id: I7f64fc62ad1d451fcf55624b2422b60631a3c8e8
2017-05-04 15:55:16 +00:00
Yoonseon Han
e1a7e54ffc (vNet) fix: jenkins failure due to vnet test cases
Change-Id: I53f52306e9c30d4ebcc2e4ab0e60131b7e505bb7
2017-05-04 15:44:56 +00:00
Yoonseon Han
997c8426c1 fix: (vnet) sync batch flow rule batch operation
The current version of flow rule provider always returned success
regradless of physical flow rule's installation.
This commit makes to enable to  sync with virtual and physical rule
batch operation

Change-Id: I1c9bfc30d23e0e7b24bf8be8774f67e304f3b28e
2017-05-03 18:42:56 +00:00
Yoonseon Han
5cf483a5da fix: (vNet) solve the problem that vnet flows aren't removed
1. fixed to remove virtual flow rules
2. fixed to remove the installed rules after deactivation
3. minor refactoring

Change-Id: I3685d89840eeef8dbbf53f7afe819f39043b434f
2017-05-03 18:35:16 +00:00
Ray Milkey
8fd28c7b80 Starting snapshot 1.10.0-SNAPSHOT 2017-05-02 14:37:34 -07:00
Ray Milkey
f0099022d2 Tagging 1.10.0-rc1 2017-05-02 14:35:27 -07:00
Harold Huang
7362e677f7 [ONOS-6249] (vNet) Link mapping and end-to-end isolation for virtual network
A virtual tenant's topology graph should not be restricted to the substrate's subgraph.
Thus, we need to set up a tunnel on the physical path through which a virtual link passes.
Furthermore, isolating the traffic from different virtual networks is also needed.

Change-Id: Ia5dc49d34ec96d3a7b9c55ff7a6df3b10ad93697
2017-05-01 17:33:14 +00:00
Jordi Ortiz
588969102d ONOS-5958 Meter restoration to device
Change-Id: I55e72c5779c450027951016bbbc9cf93f076c34e
2017-04-26 16:18:55 +00:00
Claudine Chiu
cdc4b8ccca ONOS-6204 initial impl of dist. flow objective store
Change-Id: I968bea6f95d91b5b30e9d0e11c6948502684022c
2017-04-26 00:41:20 +00:00
Yuta HIGUCHI
90492529c3 bump gRPC version to 1.2.0
- updated Protouf to 3.2.0, which gRPC 1.2.0 depend on

Change-Id: If63d468c867680c3e57a36a37ba878b1daeb69ae
2017-04-25 20:09:29 +00:00
Yoonseon Han
c8089db9fa [ONOS-6179] Virtual Network Packet Propagation Issue
There is a problem that the packet request from virtual network
is not relay to real packet service because
VirtualNetworkPacketService cannot process requestPacket()
properly.
Moreover, the installed flow rules from vNet are not syncronized
with the physical rules.

Change-Id: I20c3e1fbb7668f563fafcb3a9d6a7d80ffba55fd
2017-04-18 22:26:51 +00:00
rohitsharan
914acb8bfb onos-6296: Null Pointer check before using null object
Change-Id: I67aac52eb95554c19379ca7bb585d15b9f5295e6
2017-04-13 20:30:39 +00:00
Claudine Chiu
1f036b8c99 ONOS-6096 initial impl of dist. virtual packet store; virtual PacketRequest CLI; PacketRequest codec
Change-Id: Iea0a159a977701685c4487e806b26c85a1fcc1a5
2017-04-12 22:41:00 +00:00
Jonathan Hart
f702168f1e Enhance the RouteEvent to notify listeners of alternative viable routes.
Traditionally the route event only notified listeners of the best selected
route for a given prefix, but some listeners are interested in all resolved
routes for the prefix.

CORD-905

Change-Id: Ia3e1e3a8e3e825ba894e6835e0860c3ed698d29b
2017-04-11 00:03:29 +00:00
Harold Huang
b7d6b8e795 ONOS-6164 Fix the add and remove command to the virtual network store
We fix the add and remove command to be more semantic:
1. When remove a virtual network element, all the other elements
that depend on it should also be removed.
2. Virtual link and virtual host should not be created until the virtual
ports they depend on are created.
3. Some bugs about NullPointerException are fixed.

Change-Id: I0346dfb54dbb9a388cd4a39637ee57601fecff02
2017-04-10 22:09:50 +00:00
Hyunsun Moon
ffaeac375e Fixed Maven build failure
Change-Id: I40aabf5ac0f9b51432fe670cd90b614b2b893691
2017-04-05 18:40:48 +00:00
Jian Li
8877d3c768 Bugfix: Fix unit test error caused by unreferenced OSGI package
Change-Id: I7c5452a57d2a56a2862e6e4d96e4873fe80f7ae6
2017-04-03 16:44:11 +00:00
Harold Huang
4a6521161d fix: (vNet) listener registry initialization issue
Problem:
1. Listener registry is only initialized in the addListener method.
It will cause NullPointerException in the EventSink's proces method.

Solutions:
1. Initialize the listener in the constructor.

Change-Id: I1eae5f2d52166b04f3e028d22b41414319f75b51
2017-03-31 19:06:03 +00:00
Ray Milkey
88cc3432cf Update checkstyle to version 6.19
Change-Id: I32787f2a5f4f4b17fd4cdcf9bd2eb3903dcecfff
2017-03-31 00:59:32 +00:00
Yoonseon Han
b14461bf48 fix: (vNet) class load issues for OSGi bundle.
Problem.
1. Inside incubator package, class loader can't search classes defined
   in the other bundles such as onos-core

Solution
1. Added a method to return bundle context, and obtain class loader.

Change-Id: If5ee4cb1a5b9ef5ab7d7e3bbc70408ea8257baea
2017-03-30 23:06:07 +00:00
Thomas Vachuska
0932ac5e56 Adding support for GUI TopologyView to visualize port packet stats as an alternative to port byte stats.
Change-Id: I323840c4fe98009759646eed0c4c66fa2bad0e61
2017-03-30 20:51:23 +00:00
Claudine Chiu
e502e9df6c ONOS-6201 Add next and filtering objective unit tests to VirtualNetworkFlowObjectiveManagerTest
Change-Id: Ida3d89c558cea148c5ff6741bf6e2b47d236866b
2017-03-29 17:30:26 +00:00
Yi Tseng
fa394defdc Fix for ONOS-5175. GroupId refactoring.
Science DefaultGroupId was deprecated, remove it from ONOS

Change-Id: I82394e58ec1ba10c37492ed77546e233de9f934f
2017-03-24 21:13:57 +00:00
Jon Hall
4b0eda8ad3 Remove usage of deprecated function
Change-Id: I7a587582d385b94dca19a729f2ac3e8ab79e216a
2017-03-24 18:58:04 +00:00
Jonathan Hart
f2e7a34ae8 Carry original route in ResolvedRoute object.
The original route may have information of interest to consumers, such
as the route source or VRF information.

Change-Id: I32df752c92e235423694b13d4ff239a38bae5a50
2017-03-22 20:23:45 +00:00
Charles Chan
92ca94dab0 Carry next hop VLAN in the resolved route
Also improve routes command to better display IPv6 routes

Change-Id: I72e78fc2a7ed19322c3b4281c7b93e19484f551e
2017-03-22 20:15:33 +00:00
Jonathan Hart
96c146bde5 Refactor route subsystem to support multiple routes for each prefix.
This resulted in a substantial refatoring of the route subsystem, including
some minor external API changes. The interface between the manager and the
store has been changed to deal with multiple routes per prefix. The distributed
route store has been updated to be able to distribute route table information.
The route subsystem no longer stores next hop information in the route store.
This information is already available from the host store so the routes system
simply fetches it from there.

Change-Id: I7657b3efb6dcb76afa6f17c931f154a970a16528
2017-03-22 20:15:07 +00:00
kdarapu
93722efa8f apperent infinite loop
Change-Id: I01180564d1ad7aeb6ff353649b8252bf5159f4cf
2017-03-21 01:11:49 +00:00
Claudine Chiu
465a2605af ONOS-5682 Trigger DeviceEvent when virtual device or port is added/updated/removed
Change-Id: I4f9b62551c4106c5dd8d2ccc977a09e4e8c93a43
2017-03-21 00:27:08 +00:00
Charles Chan
b3b09cd7a7 Allow interface service to provide all interface that contain given IP
Change-Id: Ic6bc02585ed66e598505b65e7d4f29828dac36a1
2017-03-16 20:28:07 +00:00
yoonseon
86bebed7ca [ONOS-5936] (vCore) Virtual FlowObjective Manager and Store
Changes
1. FlowObjective manager for virtual network is added
2. VirtualFlowObjective store is added
3. SimpleVirtualFlowObjectiveStore is implementation
4. Unit tests are added

Change-Id: I18ff1d440d1f85ca96fff36a33a8b67566031e2c
2017-03-09 04:45:22 +00:00
Saurav Das
b0ae6ee49e CORD-999 changes to support vlans
Major changes to the DhcpRelay app
   Bug fix to not depend on global variables that can be overwritten
   App is now vlan aware i.e. client and server can be in different vlans
   Added probing of dhcpServer to get mac/vlan instead of configuring these values
   Added optional gateway IP for cases where dhcpServer is "behind" external router
Added support in host monitor for trunk vlan configurations
Javadoc fix in Interface.java
Commented out unused log message in HostLocationProvider
Bug fix to make ALL group editing vlan aware.

Change-Id: Ib04ed6c1ef45055f771983db29724cfde24ac54b
2017-03-07 23:38:27 +00:00
Claudine Chiu
9a18f494a7 ONOS-6047 make VirtualNetworkServiceManager.ServiceKey class static + add test for VirtualNetworkManager.get
Change-Id: I531868746a2eee4b05a1cf1ec64ff104b15359da
2017-03-01 19:57:12 +00:00