391 Commits

Author SHA1 Message Date
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
yoonseon
97b9b59682 fix: Virtual flow rule and packet store
Changes.
1. Simple Packet store is declared as OSGi component
2. some description is added

Change-Id: Iaffa6786bbca5b967926b19183f45b723b8ab211
2017-03-01 19:45:59 +00:00
sangyun-han
3c3e99eaaa (vCord) Add a convenience method for providing a list of physical device
Change-Id: Ibc33ced05ee15a068e06c531240fa5cb6af16e38
2017-02-27 21:14:16 +00:00
Claudine Chiu
e7f6b91adf ONOS-6047 fix VirtualNetworkManager.get() to return existing service class
Change-Id: I6c5001793d60eecbb903475d19d783b54ba9e0da
2017-02-27 17:57:21 +00:00
Jonathan Hart
79a0abd52d Lift route config access into its own component on top of the RouteService.
Also implement isValid for route config.

Change-Id: I5f4819ffa7c0e87e83407c3c30af7cf91d63c83b
2017-02-27 17:11:41 +00:00
Jonathan Hart
c4c2d624ea Factor out createBinaryString method
Change-Id: I28366d04db29a313728bd4ef71f002737b51f008
2017-02-24 18:17:24 +00:00
Yoonseon Han
33821fb858 Fix: to register eventlisteners for virtualnetwork
Changes.
1. Virtual network service inherite listener service

Change-Id: Ie2911916b2912e3c8cbd2069e9563e1f5e2c837f
2017-02-24 16:30:12 +00:00
Michal Mach
ce774338fa [ONOS-5911] Port removal after receiving OFPR_DELETE port status reason.
Change-Id: I1f3f6c752da5f989a2d727f378e9f04fbbb71341
2017-02-23 00:24:21 +00:00
Jon Hall
8c7b06ad07 Remove unnessasry semicolons
Change-Id: I8363e54ecaf80ad0a755d997ca1b9bbae2f1fa6e
2017-02-22 23:05:51 +00:00
Claudine Chiu
93ce3e84c1 ONOS-6027 add request/cancelPackets tests to VirtualNetworkPacketManagerTest
Change-Id: Id1316a3768061bb61980a33f0e664805249eaa18
2017-02-19 15:57:49 -05:00
yoonseon
dc3210da53 [ONOS-5897] (vCore) Create Group Manager and Store
Chages.
1. Virtual Group Manager is added
2. Virtual Group Store interface is added
3. Simple Virtual Group Store is added
4. Virtual Group Manager Test cases are added

Change-Id: I6fc1fae99f5b85fd50437b396f57f78e914ad978
2017-02-17 18:50:52 +00:00
Luca Prete
670ac5dd95 Resource group to share resources between intents
Change-Id: I5bf7d4261197449924d07dabac841cf8ccbe9389
2017-02-16 21:14:05 +00:00
Ray Milkey
54a78514d2 Starting snapshot 1.10.0-SNAPSHOT
Change-Id: Icd6983be6a52293fb8a846a02d5e314c2c7aeaf0
2017-02-13 11:13:52 -08:00