netvirt.git
8 years agoL2Gateway: Fixes related to L2 gateway functionality. 04/39604/2
Somashekar Byrappa [Mon, 30 May 2016 13:21:36 +0000 (18:51 +0530)]
L2Gateway: Fixes related to L2 gateway functionality.

+ Removed the check isL2GwDeviceConnected during l2 gw connection delete.
- This change ensures cleaning of data from cache and config DS
  which avoids having stale data when l2gw device is down.
- The stale data was blocking deletion of configs from
  l2gw device during subsequent l2gw connection (having
  same network id) deletes.

+ Few L2GatewayDevice class variables are updated by
  using Set instead of List to avoid duplicates. Also
  toString() method is overridden to print minimal info.

+ doesLocalUcastMacExistsInCache check is added during
  handling of the newly discovered L2gw device mac. This
  check avoids unnecessary configurations found during
  scalability testing.

Change-Id: Iab6be8d67645518e0e78f9ce883b305867c81958
Signed-off-by: Somashekar Byrappa <somashekar.byrappa@ericsson.com>
8 years agoMerge "Enable NetVirt Maven site"
Sam Hague [Sun, 29 May 2016 17:01:28 +0000 (17:01 +0000)]
Merge "Enable NetVirt Maven site"

8 years agoEnable NetVirt Maven site 56/39356/1
Stephen Kitt [Tue, 24 May 2016 13:49:44 +0000 (15:49 +0200)]
Enable NetVirt Maven site

This patch enables the Maven site, fixes up all the URLs and corrects
blocking Javadoc errors.

Change-Id: I534e904a7bd31394bcf833c1403d77ec689ea2ef
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoL2Gateway: Handling Hwvtep node tunnel ip update. Plus two more fixes. 36/39336/2
Somashekar Byrappa [Tue, 24 May 2016 11:13:12 +0000 (16:43 +0530)]
L2Gateway: Handling Hwvtep node tunnel ip update. Plus two more fixes.

+ Hwvtep node tunnel ip update is handled only in case of first time
configuration of tunnel IP (i.e., None to valid IP address).
Subsequent updates i.e., changing from one tunnel IP to another is not
handled.

+ Replaced HwvtepNodeListener with HwvtepPhysicalSwitchListener which will
handle Hwvtep node add/remove/update scenarios.

+ Changed logical switch listener to cluster-wide DCN listener to cache
ELAN L2 Gw details on all the cluster nodes when logical switch is
created.

+ Changed remote mcast mac listener to cluster-wide DCN listener.

Change-Id: Icb5efe578102f22650fc9b4ce4dcc8b7022398fe
Signed-off-by: Somashekar Byrappa <somashekar.byrappa@ericsson.com>
8 years agoMerge "Remove unsued nic dependencies"
Anil Vishnoi [Mon, 23 May 2016 21:14:37 +0000 (21:14 +0000)]
Merge "Remove unsued nic dependencies"

8 years agoMerge "Remove fcapsmanager and application"
Sam Hague [Mon, 23 May 2016 14:41:29 +0000 (14:41 +0000)]
Merge "Remove fcapsmanager and application"

8 years agoRemove unsued nic dependencies 48/39248/1
Sam Hague [Mon, 23 May 2016 12:56:52 +0000 (08:56 -0400)]
Remove unsued nic dependencies

Change-Id: Ia9a8494f23a6da828c063da095089548eb938af3
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBug 5939 - Communications through external gateway not working 11/39211/1
Andre Fredette [Sat, 21 May 2016 14:10:02 +0000 (10:10 -0400)]
Bug 5939 - Communications through external gateway not working

The problem happens because the GatewayMacResolver is not resolving the
MAC address for the external gateway.  GatewayMacResolver is failing
because externalSubnet == null in triggerGatewayMacResolver.  This is
happening due to changes from [0] (a fix for BUG-5291).

In [0], a change was made to only set GatewayIP if port.getDeviceOwner()
== "network:router_interface"; however, in our case,
port.getDeviceOwner() == "network:router_gateway", so the Gateway IP
isn't set.

In this fix, I also set GatewayIP if port.getDeviceOwner() ==
"network:router_gateway".

[0] https://git.opendaylight.org/gerrit/#/c/37136/

Change-Id: I49b089900e4f85581beb8634580439dca2413ce5
Signed-off-by: Andre Fredette <afredette@redhat.com>
8 years agoRemove fcapsmanager and application 63/39163/1
Vishal Thapar [Fri, 20 May 2016 09:17:21 +0000 (14:47 +0530)]
Remove fcapsmanager and application

Fcaps manager and application have been moved to Genius
https://git.opendaylight.org/gerrit/#/c/39107/

Change-Id: Ic71cacb4fccb526e8ad1e70d5538289a6361ca84
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agouse the right hop for more than one sf 73/39073/1
Sam Hague [Wed, 18 May 2016 23:40:40 +0000 (19:40 -0400)]
use the right hop for more than one sf

Change-Id: I87bdfb54faef2f73709aba2d4da7907f15837529
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Added support for enable/disable security on a port dynamically."
Sam Hague [Wed, 18 May 2016 23:08:55 +0000 (23:08 +0000)]
Merge "Added support for enable/disable security on a port dynamically."

8 years agoMerge "BUG-5813: Vxlan ports should not be removed in table 110 flow entry unless...
Sam Hague [Wed, 18 May 2016 23:03:16 +0000 (23:03 +0000)]
Merge "BUG-5813: Vxlan ports should not be removed in table 110 flow entry unless last VM instance removed from the openstack node.   * Before deleting the Vxlan port in flow entry it should     check whether the deleted vm instance is last or not.     If it is the last vm instance Vxlan port should be delete from     source node in flow entry else vxlan port shouldn't be delete."

8 years agoupdates for sfc models 67/39067/1
Sam Hague [Wed, 18 May 2016 20:53:36 +0000 (16:53 -0400)]
updates for sfc models

Change-Id: Id0d28f2bfacffff7bb7f691615eb772ed1e0215f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdded support for enable/disable security on a port dynamically. 17/38917/2
Aswin Suryanarayanan [Mon, 16 May 2016 07:23:41 +0000 (12:53 +0530)]
Added support for enable/disable security on a port dynamically.

Change-Id: I96a3599927cbc7ca36a870187145380207e8f494
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
8 years agoChange BGP thrift port to 7744 24/38924/1
Vishal Thapar [Mon, 16 May 2016 10:36:32 +0000 (16:06 +0530)]
Change BGP thrift port to 7744

BGP Thrift port is 6644 which conlicts with NetIDE.
Refer: https://wiki.opendaylight.org/view/Ports

Change-Id: I8931fa78f53afea643d6856b005c740670036ef0
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoBUG-5813: Vxlan ports should not be removed in table 110 flow entry unless last VM... 02/38902/1
hari.pr [Tue, 10 May 2016 16:50:28 +0000 (22:20 +0530)]
BUG-5813: Vxlan ports should not be removed in table 110 flow entry unless last VM instance removed from the openstack node.
  * Before deleting the Vxlan port in flow entry it should
    check whether the deleted vm instance is last or not.
    If it is the last vm instance Vxlan port should be delete from
    source node in flow entry else vxlan port shouldn't be delete.

Change-Id: Iadc9003ed81b1e8e475d629f80ccd961242ef859
Signed-off-by: hari.pr <hari.pr@hcl.com>
8 years agoMerge "Fix Neutron VPN to handle Routers."
Sam Hague [Sun, 15 May 2016 13:37:04 +0000 (13:37 +0000)]
Merge "Fix Neutron VPN to handle Routers."

8 years agoMerge "Added support in neutron and it utils for SGs"
Sam Hague [Sun, 15 May 2016 13:34:21 +0000 (13:34 +0000)]
Merge "Added support in neutron and it utils for SGs"

8 years agoFix Neutron VPN to handle Routers. 55/38755/2
Vivekanandan Narasimhan [Thu, 12 May 2016 10:57:03 +0000 (16:27 +0530)]
Fix Neutron VPN to handle Routers.

This fix enables Neutron VPN module inside netvirt to
handle routers and router interfaces, thereby enabling
internal VPN to become functional.

Change-Id: I527e182c5ad38b0cabf457dee465763dcd30dd0c
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
8 years agoAdded support in neutron and it utils for SGs 55/38655/5
Josh [Wed, 11 May 2016 10:26:53 +0000 (12:26 +0200)]
Added support in neutron and it utils for SGs

Methods in NeutronUtils for creating SecurityGroups
Added param in NeutronNetItUtils.createPort for security groups

Initially commited in draft mode

Change-Id: I831278b8b262506e6d0bee3ca3667d89e226b9c9
Signed-off-by: Josh <jhershbe@redhat.com>
8 years agoUse Genius for all infra modules in vpnservice 13/38813/2
Vishal Thapar [Thu, 12 May 2016 15:23:01 +0000 (20:53 +0530)]
Use Genius for all infra modules in vpnservice

Change-Id: I30e64d9a0b0e80f463ef364da08ae7d9750b5d72
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoNamespace changes for vpnservice modules 63/38663/3
Vishal Thapar [Wed, 11 May 2016 09:14:12 +0000 (14:44 +0530)]
Namespace changes for vpnservice modules

Change-Id: I4830703f94a218c6b4ccd97076ca852472bb16d5
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoFix CSIT failures 41/38641/4
Vishal Thapar [Tue, 10 May 2016 16:54:54 +0000 (22:24 +0530)]
Fix CSIT failures

These changes bring in patch
https://git.opendaylight.org/gerrit/#/c/38361/ from vpnservice to address CSIT failures

Change-Id: I66064b35046d8078c82a0ba6cf68d20a763757f2
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoFix NPE in FibManagerProvider 92/38492/1
Vishal Thapar [Fri, 6 May 2016 07:26:13 +0000 (12:56 +0530)]
Fix NPE in FibManagerProvider

Change-Id: I216a5ca030472fce08e49ec49833d0a23988de5d
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoInitial merge of vpnservice code 78/38478/1
Sam Hague [Thu, 5 May 2016 19:57:31 +0000 (15:57 -0400)]
Initial merge of vpnservice code

Based on vpnservice hash: commit f267eb8b08e303ccc40131361fe82f2ad5ea1628

Change-Id: Ida263cfbbf8b74f213e8128f6f7334f515d876ed
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoImported vpnservice as a subtree
Thanh Ha [Wed, 4 May 2016 18:11:49 +0000 (14:11 -0400)]
Imported vpnservice as a subtree

Change-Id: I31c80009a31b0b97c1d10246e844be69e81125f4

8 years agoMerge "Integration of fcaps applications"
Vivek Srivastava [Wed, 4 May 2016 12:18:57 +0000 (12:18 +0000)]
Merge "Integration of fcaps applications"

8 years agoMerge "IDManager fixes for restart scenario"
Vivek Srivastava [Wed, 4 May 2016 12:16:34 +0000 (12:16 +0000)]
Merge "IDManager fixes for restart scenario"

8 years agoIntegration of fcaps applications
Viji J [Tue, 3 May 2016 13:48:48 +0000 (19:18 +0530)]
Integration of fcaps applications

Change-Id: If2fffa37ebed025b203b280ebf7b88a606c4823d
Signed-off-by: Viji J <viji.j@ericsson.com>
8 years agoMerge "Integration of Fcaps framework"
Vivek Srivastava [Wed, 4 May 2016 10:56:57 +0000 (10:56 +0000)]
Merge "Integration of Fcaps framework"

8 years agoUpdated L2Gw changes in "neutronvpn", "elanmanager" and "dhcpservice" modules
Shashidhar R [Tue, 3 May 2016 12:59:19 +0000 (18:29 +0530)]
Updated L2Gw changes in "neutronvpn", "elanmanager" and "dhcpservice" modules

- Used entity ownership service to handle l2gw requests only in one cluster node.
- Registered for entity ownership for elan entity to process all the l2gw requests.
- Taken out the datastore jobcoordinator jobs into separate classes.
- Handled external tunnel state events.

Change-Id: I39a2a24c8927e48fc7d0299de008cfff9ca6d2b4
Signed-off-by: Shashidhar R <shashidhar.raja@ericsson.com>
8 years agoMerge "Remove ovsdb related in resources"
Sam Hague [Wed, 4 May 2016 01:26:38 +0000 (01:26 +0000)]
Merge "Remove ovsdb related in resources"

8 years agoMerge "Implementing Host Config data update"
Sam Hague [Wed, 4 May 2016 01:22:19 +0000 (01:22 +0000)]
Merge "Implementing Host Config data update"

8 years agoMerge "Added isPortSecurityEnabled check to enable/disable SG."
Sam Hague [Wed, 4 May 2016 01:20:22 +0000 (01:20 +0000)]
Merge "Added isPortSecurityEnabled check to enable/disable SG."

8 years agoIntegration of Fcaps framework
Viji J [Tue, 3 May 2016 12:59:19 +0000 (18:29 +0530)]
Integration of Fcaps framework

Change-Id: I68429a51ba6cd8a7d49a426b78fad866efdf126e
Signed-off-by: Viji J <viji.j@ericsson.com>
8 years agoMerge "Natservice module bug fixes"
Vivek Srivastava [Tue, 3 May 2016 10:58:22 +0000 (10:58 +0000)]
Merge "Natservice module bug fixes"

8 years agopostman: use 1 for netvirt table offset 92/38292/1
Sam Hague [Mon, 2 May 2016 19:34:38 +0000 (15:34 -0400)]
postman: use 1 for netvirt table offset

Change-Id: I015a181f8a08a41154a10e05e2b5aa86f8c03369
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoNatservice module bug fixes
Sumanth MS [Mon, 2 May 2016 12:10:14 +0000 (17:40 +0530)]
Natservice module bug fixes

Change-Id: I8535d504b50d6b1a1a7fa8e14d51212596017b4c
Signed-off-by: Sumanth MS <sumanth.ms@ericsson.com>
8 years agoVxlan/Gre co-existence,Alarms,tunnelstate,TR fixes
HemaTG [Mon, 2 May 2016 09:27:40 +0000 (14:57 +0530)]
Vxlan/Gre co-existence,Alarms,tunnelstate,TR fixes

Change-Id: Ia253c413dc198dce371b6f87c2c67af2bdb324b5
Signed-off-by: HemaTG <hema.gopalkrishnan@ericsson.com>
8 years agoMerge "DHCP Handling for TOR VM"
Vishal Thapar [Sat, 30 Apr 2016 17:45:13 +0000 (17:45 +0000)]
Merge "DHCP Handling for TOR VM"

8 years agoFixes in interface manager and aliveness monitor
Kiran N Upadhyaya [Fri, 29 Apr 2016 10:50:56 +0000 (16:20 +0530)]
Fixes in interface manager and aliveness monitor

Removing HwVTEP tunnel entries from topology configuration and operational
datastores
cli command to display internal tunnels is fixed to show the interface
name along with the datapath node identifier
A check has been add to update interface operational state only of it
exists in the datastore
Tunnel to DC gateway should not have key "flow" set
Tap interface not getting deleted from interface operational datastore is
fixed
Interface operational status has been handled to get updated based on port
up/down events
Repopulation of monitor configuration after re-enabling tunnel monitor has
been fixed
Optimizations in aliveness monitor error handling code

Change-Id: I19f0ec5fb0133575e6e08a741f3f0f9c4b805ba7
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Signed-off-by: Kiran N Upadhyaya <kiran.n.upadhyaya@ericsson.com>
8 years agoDHCP Handling for TOR VM
Kency Kurian [Fri, 22 Apr 2016 10:04:52 +0000 (15:34 +0530)]
DHCP Handling for TOR VM

- As the TOR floods the packets to the CSS mesh, some logic should be
  added such that only one CSS punts the DHCP packet to the controller and
  the other CSS drops the DHCP packet.
- The designated CSS is chosen for each TOR-ELAN pair and it is stored in
  the datastore.

Change-Id: I695f1a7600938c1e4f6411f9752de20bf44349cd
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
8 years agoImplementing Host Config data update 63/37463/3
Ritu Sood [Sun, 10 Apr 2016 22:22:40 +0000 (15:22 -0700)]
Implementing Host Config data update

This patch implements the logic to fill host config data
based on the yang model defined in the Neutron Northbound
https://git.opendaylight.org/gerrit/#/c/36767/.

Updated patch after addressing review comments

Change-Id: I1ea6b315ab9de70dc1c1849ba905eee2eb51d94e
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
8 years agoBFD monitoring changes
Kiran N Upadhyaya [Wed, 13 Apr 2016 14:06:19 +0000 (19:36 +0530)]
BFD monitoring changes

Enabling/Disabling BFD monitor was fixed. Updates to the  monitor
parameters were not being considered while writing to the data store.

Change-Id: Iaa9a71b353a78d8ac626a81dbe43e1587b8bbdf8
Signed-off-by: Kiran N Upadhyaya <kiran.n.upadhyaya@ericsson.com>
8 years agoMerge "BUG 5783: Ping test is FAILED from VM to Invisible IP which is hosted non...
Vishal Thapar [Wed, 27 Apr 2016 11:36:21 +0000 (11:36 +0000)]
Merge "BUG 5783: Ping test is FAILED from VM to Invisible IP which is hosted non-nexthop."

8 years agoTunnel monitoring changes
Kiran N Upadhyaya [Mon, 4 Apr 2016 13:22:12 +0000 (18:52 +0530)]
Tunnel monitoring changes

Code revision in Aliveness Monitor files related to fetching mac address
from data store.
Monitor profile creation for both the tunnel endpoints was fixed.
Changes in JUNIT test cases related to tunnel monitoring.

Change-Id: I0843ee855f854a3fd98d212516292d8b34a8409c
Signed-off-by: Kiran N Upadhyaya <kiran.n.upadhyaya@ericsson.com>
8 years agoMerge "LLDP monitor interval update fixes"
Vishal Thapar [Tue, 26 Apr 2016 17:05:59 +0000 (17:05 +0000)]
Merge "LLDP monitor interval update fixes"

8 years agoBUG 5783: Ping test is FAILED from VM to Invisible IP which
Suraj Ranjan [Tue, 26 Apr 2016 07:20:24 +0000 (12:50 +0530)]
BUG 5783: Ping test is FAILED from VM to Invisible IP which
is hosted non-nexthop.

a. Ensure that SubnetRoutePacketHandler can
work in deployments where DPNs (i.e., Computes)
are connected to different PLs of an ODL Cluster
(i.e., different ODL instances).  More specifically,
this leads to a deployment where the nexthop
reports to one PL but the invisible IP is in a DPN
that is reporting to a different PL in a clustered
environment.

b. Ensure that SubnetRoutePacketHandler can
work with apply_actions rule used in FIB Table
(i.e., Table 22).

c. Create Table 22 (SubnetRoute Table) rules
as default Table Miss Flows instead of dynamically
creating them on the fly in FibManager.

Change-Id: I86e0b3ff8761b054603bc9bb7853340078ad653d
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
Co-Authored-By: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
8 years agoRemove ovsdb related in resources 94/38094/1
Guo Ruijing [Tue, 26 Apr 2016 05:10:36 +0000 (13:10 +0800)]
Remove ovsdb related in resources

Change-Id: I17d413dfbed037e8ddda3adaa2c85c345b219997
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
8 years agomove back to non -li openflowplugin features 75/38075/2
Jamo Luhrsen [Mon, 25 Apr 2016 18:46:09 +0000 (11:46 -0700)]
move back to non -li openflowplugin features

openflowplugin is removing the -li feature set in Boron
(M3 offset 2) and the non -li naming will be the only
ofp available.

Change-Id: I4c1ee90905ce577553338b5127f19972450ce577
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
8 years agoAdded isPortSecurityEnabled check to enable/disable SG. 49/38049/1
Aswin Suryanarayanan [Mon, 25 Apr 2016 16:37:11 +0000 (22:07 +0530)]
Added isPortSecurityEnabled check to enable/disable SG.

The fixed and custom security group rules will be added only if
isPortSecurityEnabled is enabled. This applies for add/remove/update of
SecurityGroup/ security rules.

Cherry picked from ovsdb repo

Signed-off-by: Aswin Suryanarayanan <aswinsuryan@gmail.com>
8 years agoNeutron->netvirt port rendering 60/37460/7
Victor Pickard [Tue, 29 Mar 2016 18:21:11 +0000 (14:21 -0400)]
Neutron->netvirt port rendering

Patch set 7
-----------
Remove unneeded mdsal-util pom changes.

Patch set 6
------------
Fix NetvirtIT.

Patch set 5
-------------------------------------
This patch addresses comments from patch set 4.

Add unit test code for NeutronPortDataProcessor.

This patch supports add/delete/update for
neutron ports and networks.

Change-Id: Icf616683f169e96d0e9307ea2b00b455e5c820ab
Signed-off-by: Victor Pickard <vpickard@redhat.com>
8 years agoBug 5781: Ping test is FAILED from DC-GW to Invisible IP
Suraj Ranjan [Fri, 22 Apr 2016 04:37:20 +0000 (10:07 +0530)]
Bug 5781: Ping test is FAILED from DC-GW to Invisible IP
Bug 5782: Subnet route is not getting programmed for a Network

For issue 5781:
The packets received by SubnetRouteHandler are all MPLS Label
wrapped if the packets are initiated by DC-GW.  As a result,
such packets are ignored by SubnetRoutePacketHandler.

This fix changes the SubnetRoute rule in Table 20 (LFIB Table)
to pop-off the mpls label before shipping packet to the
controller.

For issue 5782:
The race to fetch the RD by both VPNManager and SubnetRouteHandler
results in RD fetch failing in SubnetRouteHandler.  The fix is
for SubnetRouteHandler will now rely on VPNInstance config produced by
NeutronVpn rather than using vpn-instance-to-vpn-id config mapping
produced by VpnManager.

Change-Id: I73af156d0d55d7f79dca592c053f26398788b719
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
8 years agoMerge "Add postman for sff with ovs node in uuid format"
Sam Hague [Fri, 22 Apr 2016 00:49:48 +0000 (00:49 +0000)]
Merge "Add postman for sff with ovs node in uuid format"

8 years agoMerge "Basic neutron IT netvirt test"
Sam Hague [Thu, 21 Apr 2016 20:09:02 +0000 (20:09 +0000)]
Merge "Basic neutron IT netvirt test"

8 years agoAdd postman for sff with ovs node in uuid format 90/37990/1
Sam Hague [Thu, 21 Apr 2016 20:06:14 +0000 (16:06 -0400)]
Add postman for sff with ovs node in uuid format

Change-Id: I10d3987ea70635e9f55f3202df63f36083dd5c8f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBasic neutron IT netvirt test 11/37811/2
Josh [Tue, 19 Apr 2016 07:22:19 +0000 (09:22 +0200)]
Basic neutron IT netvirt test

Tests that flows are properly created for a neutron
network with a dhcp and two "vms"

Change-Id: Ibbb0fc5eef323ee9ed3bb245fe8e1f6f07a19430
Signed-off-by: Josh <jhershbe@redhat.com>
8 years agoBug 5770: Ensuring proper cleanup of VPNControlpath.
Suraj Ranjan [Thu, 21 Apr 2016 06:39:41 +0000 (12:09 +0530)]
Bug 5770: Ensuring proper cleanup of VPNControlpath.

1. Fix to ensure proper cleanup of Config and Oper DS
for VPN on removal of VPNs.

2. Fix for delayed release of VPN IDs by ensuring that
we release IDs for VPN and VPNInterfaces only when
the IDs are removed from respective OpDataStores.

Change-Id: Idda295e845af77355c2d7bdf0f60864782a9538c
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
Co-Authored-By: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
8 years agoUpdate NetvirtSFC postman collection 47/37947/2
Sam Hague [Thu, 21 Apr 2016 03:07:11 +0000 (23:07 -0400)]
Update NetvirtSFC postman collection

Change-Id: I3cf946b8fed8696dfde299cfc94be0e1eaee4315
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoTR: Local routes not appeared on deletion of VPN
Suraj Ranjan [Wed, 20 Apr 2016 06:27:15 +0000 (11:57 +0530)]
TR: Local routes not appeared on deletion of VPN

-Datapath broken when router dissociated from VPN

-Enables tentative fixes to ensure clean up of datapath
on removal of an external VPN, when routers are present in it.

-Similarly enables a tentative fix to ensure clean up of datapath
on disassociation of routers from a VPN.

Change-Id: I224d39b33181d52c1332b1548a91eee167814a85
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
Co-Authored-By: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
8 years agoMerge "Clean up subnet routes when vpn is out of a dpn."
Vivek Srivastava [Wed, 20 Apr 2016 05:21:57 +0000 (05:21 +0000)]
Merge "Clean up subnet routes when vpn is out of a dpn."

8 years agoadd southound-impl-ui as part of openstack features to give restconf 51/37851/2
Jamo Luhrsen [Wed, 20 Apr 2016 00:33:43 +0000 (17:33 -0700)]
add southound-impl-ui as part of openstack features to give restconf

Change-Id: Ic54de77a14df6a537b4de2bd4d472109c75240e2
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
8 years agoIDManager fixes for restart scenario
unknown [Thu, 7 Apr 2016 09:03:19 +0000 (14:33 +0530)]
IDManager fixes for restart scenario

* ID Entry list is added to parent instead of child. During id
* allocation, check is added for existing id in parent pool.
* Without this fix, each node in cluster used to check only in the
* child pool. And when leader changes during restart, child pool
* didn't have the corresponding id-entry, resulting in a new
* different id.

Change-Id: I479da293eb557915c6a20eaaacc364b5e90c2bc1
Signed-off-by: Manu B <manu.b@ericsson.com>
8 years agoMerge "Support for SNAT and DNAT features in L3 forwarding services."
Vishal Thapar [Tue, 19 Apr 2016 07:39:10 +0000 (07:39 +0000)]
Merge "Support for SNAT and DNAT features in L3 forwarding services."

8 years agoSupport for SNAT and DNAT features in L3 forwarding services.
Sumanth MS [Wed, 13 Apr 2016 11:50:29 +0000 (17:20 +0530)]
Support for SNAT and DNAT features in L3 forwarding services.

Change-Id: I86c62a4ed639fc8859960f281a8bce7f535ef6a6
Signed-off-by: Sumanth MS <sumanth.ms@ericsson.com>
8 years agoUse neutron-utils 02/37702/1
Josh [Sun, 17 Apr 2016 14:00:22 +0000 (16:00 +0200)]
Use neutron-utils

Change-Id: Ibe4a5aee6f4b1d4a48584d9a7a0a750ce1aeaa11
Signed-off-by: Josh <jhershbe@redhat.com>
8 years agoMerge "Use dpl portId"
Sam Hague [Fri, 15 Apr 2016 18:01:13 +0000 (18:01 +0000)]
Merge "Use dpl portId"

8 years agoMerge "Remove the unused shared network validation check as its a bit misleading"
Sam Hague [Fri, 15 Apr 2016 18:00:57 +0000 (18:00 +0000)]
Merge "Remove the unused shared network validation check as its a bit misleading"

8 years agoMerge "Postman for L2GW and L2GWConnection"
Sam Hague [Fri, 15 Apr 2016 16:36:18 +0000 (16:36 +0000)]
Merge "Postman for L2GW and L2GWConnection"

8 years agoUse dpl portId 76/37676/1
Sam Hague [Thu, 14 Apr 2016 20:51:23 +0000 (16:51 -0400)]
Use dpl portId

Change-Id: Ib5418ca31a4e6f696c47230016fcb59eed97726d
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agosplit it-utils: ovsdb-it-utils + netvirt-it-utils 87/37487/4
Josh [Tue, 12 Apr 2016 12:04:49 +0000 (14:04 +0200)]
split it-utils: ovsdb-it-utils + netvirt-it-utils

Relies on https://git.opendaylight.org/gerrit/#/c/37485/

Change-Id: I2e04c1e8fe0be5f3529ca7ce787847ef7b5431cd
Signed-off-by: Josh <jhershbe@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoRemove the unused shared network validation check as its a bit misleading 52/37652/1
Sridhar Gaddam [Fri, 15 Apr 2016 09:36:33 +0000 (15:06 +0530)]
Remove the unused shared network validation check as its a bit misleading

ODL Neutron northbound is now MDSAL based (from Beryllium).
The canCreateNetwork/canUpdateNetwork checks are no longer
invoked in NetworkHandler of netvirt.

Observations with stable/Beryllium and master branch.
-----------------------------------------------------
In stable/beryllium and master branches an admin is able
to create a shared network. Two tenants are able to spawn
VMs (on the shared network), which successfully acquire
dhcp-ip and are able to communicate with the VM belonging
to the other tenant. Verified this use-case on a multi-node
setup.

It appears like shared networks are indeed supported. So, we
can remove this un-used validation as its misleading.

Observations with stable/Lithium SR4 release.
---------------------------------------------
An admin is unable to create a shared tenant network but shared
external networks are supported. Before removing the validation
for Lithium branch we have to see if there was any specific
reason why the check was inplace.

Change-Id: I62ab980110c58f07a9e161431b64a64590c1e410
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoLLDP monitor interval update fixes
Kiran N Upadhyaya [Fri, 1 Apr 2016 09:40:00 +0000 (15:10 +0530)]
LLDP monitor interval update fixes

Updating LLDP monitor interval by deleting the old monitor profile and
creating a new one based on existing monitor profiles

Change-Id: I42c105e40eecfab02cb8da78327cd2733720ec5a
Signed-off-by: Kiran N Upadhyaya <kiran.n.upadhyaya@ericsson.com>
8 years agoMerge "JUnit test cases for: 1> SubnetOpDpnManager.java 2> VpnSubnetRouteHandler...
Vishal Thapar [Fri, 15 Apr 2016 08:19:35 +0000 (08:19 +0000)]
Merge "JUnit test cases for: 1> SubnetOpDpnManager.java 2> VpnSubnetRouteHandler.java"

8 years agoClean up subnet routes when vpn is out of a dpn.
Suraj Ranjan [Fri, 15 Apr 2016 07:22:30 +0000 (12:52 +0530)]
Clean up subnet routes when vpn is out of a dpn.

Fix to clean up subnet route flows on a dpn for a vpn
when the vpn is removed from that dpn.

Change-Id: I8fe43b3c80493f72fc08a1801d2a6cb81260f79a
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
Co-Authored-By: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
8 years agoJUnit test cases for:
Suraj Ranjan [Tue, 5 Apr 2016 09:31:02 +0000 (15:01 +0530)]
JUnit test cases for:
1> SubnetOpDpnManager.java
2> VpnSubnetRouteHandler.java

Change-Id: I1932479338fdeef857ab18bc8725c909034b5295
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
8 years agoFixing Braodcast stroms
Nikolas Hermanns [Wed, 13 Apr 2016 17:26:23 +0000 (19:26 +0200)]
Fixing Braodcast stroms

When a broadcast package is received
through the internal tunnel it should
not be broadcasted to all internal
tunnels again. It shall only be
broadcasted in the ElanLocal
Broadcast group.

Change-Id: I9c96d6c5ed05203133e0d980a277613191ffde5a
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
8 years agoRemove features-ovsdb
Vishal Thapar [Wed, 13 Apr 2016 16:50:55 +0000 (22:20 +0530)]
Remove features-ovsdb

VPNService only needs southbound features. Use southbound-features instead of features-ovsdb.

Change-Id: I152f70501e2052ec3fc98f5fccd5a86dcd4c987f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoPostman for L2GW and L2GWConnection 04/37504/1
Vishal Thapar [Tue, 12 Apr 2016 15:29:16 +0000 (20:59 +0530)]
Postman for L2GW and L2GWConnection

Change-Id: I5e9a371856d636b32c2e7ce1716caf658b0b5c8c
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoMerge "HwVTEP JUNITs, and fixing show:vxlan CLI"
Vishal Thapar [Tue, 12 Apr 2016 12:52:22 +0000 (12:52 +0000)]
Merge "HwVTEP JUNITs, and fixing show:vxlan CLI"

8 years agoMerge "L2 Gw connection support and Elan manager changes"
Vishal Thapar [Tue, 12 Apr 2016 12:20:29 +0000 (12:20 +0000)]
Merge "L2 Gw connection support and Elan manager changes"

8 years agoL2 Gw connection support and Elan manager changes
Shashidhar R [Thu, 7 Apr 2016 10:07:17 +0000 (15:37 +0530)]
L2 Gw connection support and Elan manager changes

- Handled L2 Gw Connection CRUD related to Logical switch creation/Ucast/Mcast table updates in elanmanager module.
- Updated to use VXLAN provider segmentation id as the ELAN VNI for SR-IOV use cases.

Change-Id: If7bcc0a45a51773a75c7b7117a6a89e713e7eddc
Signed-off-by: Shashidhar R <shashidhar.raja@ericsson.com>
8 years agoUse the netvirt distro 05/37405/1
Sam Hague [Sun, 10 Apr 2016 16:19:09 +0000 (12:19 -0400)]
Use the netvirt distro

Change-Id: Icc55ef96f500a31e50e0aa13a2b9b25bc4e3e742
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoInitial pass at changing groupId 89/37389/2
Sam Hague [Sun, 10 Apr 2016 01:36:46 +0000 (21:36 -0400)]
Initial pass at changing groupId

Change-Id: I123f96e0810f8777f0b5e5634f0224140ac13137
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoUpdate .gitreview for new repo 56/37356/2
Sam Hague [Fri, 8 Apr 2016 18:46:40 +0000 (14:46 -0400)]
Update .gitreview for new repo

netvirt is split from ovsdb

netvirt HEAD == 437e5ff1b33b47ae6db2026267510183adb3c674 maps to OVSDB SHA 723a6250573fea7b64fee8da12e7676d83ecd7cd

Change-Id: Ib07f4480f08631af0697105d230426cfe4193e3f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoDo not deploy the karaf artifact
Thanh Ha [Wed, 16 Mar 2016 20:44:13 +0000 (16:44 -0400)]
Do not deploy the karaf artifact

The karaf artifact is only used for testing. It does not need to be
released to the world.

Change-Id: I7f25d1310345c27417871fb94a79ef0348863dd5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoMerge "Switch from fig to docker-compose"
Sam Hague [Fri, 8 Apr 2016 00:02:50 +0000 (00:02 +0000)]
Merge "Switch from fig to docker-compose"

8 years agoMerge "BUG-5291:Flows are not removed from control and compute nodes."
Sam Hague [Thu, 7 Apr 2016 21:02:37 +0000 (21:02 +0000)]
Merge "BUG-5291:Flows are not removed from control and compute nodes."

8 years agoMerge "Test for NetvirtSFC config"
Sam Hague [Thu, 7 Apr 2016 21:02:28 +0000 (21:02 +0000)]
Merge "Test for NetvirtSFC config"

8 years agoBUG-5291:Flows are not removed from control and compute nodes.
hari.pr [Tue, 5 Apr 2016 15:22:58 +0000 (20:52 +0530)]
BUG-5291:Flows are not removed from control and compute nodes.

  * When the VM instance is deleted from control and compute nodes,
  * Found still flows are existed in table-40 and table-90 in L2 scenario.

Signed-off-by: hari.pr <hari.pr@hcl.com>
Change-Id: I6e0873e979cdbd8dc3037fe012477413faf95a92
(cherry picked from commit ad36780546ecbe1adbf9f081fca0f1eca7287713)

8 years agoTest for NetvirtSFC config
Sam Hague [Thu, 7 Apr 2016 19:42:02 +0000 (15:42 -0400)]
Test for NetvirtSFC config

Change-Id: I3fd13785ca51a55f8137679a68add283d3e3df5c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBug 5651 - southbound-impl failed to find utils.yang-utils in Boron
Sam Hague [Thu, 7 Apr 2016 19:04:35 +0000 (15:04 -0400)]
Bug 5651 - southbound-impl failed to find utils.yang-utils in Boron

Change-Id: I5b7ac318f701bf8d410103a5218a1c69931b57d2
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoSwitch from fig to docker-compose
Stephen Kitt [Thu, 7 Apr 2016 14:40:02 +0000 (16:40 +0200)]
Switch from fig to docker-compose

docker-compose no longer supports fig.yml files, so finish the switch
completely.

Change-Id: I2faec3ebd04a129368a3c40f99ff7b0389c998eb
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "OVS 2.5.1 docker image in fig.yml"
Sam Hague [Wed, 6 Apr 2016 21:56:43 +0000 (21:56 +0000)]
Merge "OVS 2.5.1 docker image in fig.yml"

8 years agoOVS 2.5.1 docker image in fig.yml
Josh [Tue, 5 Apr 2016 08:39:53 +0000 (10:39 +0200)]
OVS 2.5.1 docker image in fig.yml

Change-Id: Iefab500c304c99742c5ecd0877404c8ebbb10efb
Signed-off-by: Josh <jhershbe@redhat.com>
8 years agoHwVTEP JUNITs, and fixing show:vxlan CLI
Kiran N Upadhyaya [Wed, 30 Mar 2016 13:29:36 +0000 (18:59 +0530)]
HwVTEP JUNITs, and fixing show:vxlan CLI

JUNIT Test cases for HwVTEPInterface Helpers.
Fix for show:vxlan command output when switch is stopped.

Change-Id: Ic1a4d561a8e508bef1b896fcb2f77eb5caab4d3e
Signed-off-by: Kiran N Upadhyaya <kiran.n.upadhyaya@ericsson.com>
8 years agoUse stateless transaction commands
Stephen Kitt [Tue, 29 Mar 2016 11:56:37 +0000 (13:56 +0200)]
Use stateless transaction commands

Changing the transaction command model to one where all the required
information is passed to the execute() method makes the commands much
simpler to convert to a DataTreeChangeListener-based model.

Change-Id: I7458ed91646a6f0848afda86f72cf003c9704466
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoSubnetRoute enhancements to VPN Service models
Suraj Ranjan [Fri, 1 Apr 2016 12:18:39 +0000 (17:48 +0530)]
SubnetRoute enhancements to VPN Service models

This commit deals with changes required to construct
internal data structures to provide SubnetRoute
facility in VPN Service.  With SubnetRoute facility
all packets intended for a cloud coming from a
DC gateway will be punted to one DPN that will be
considered as designated DPN.

Change-Id: Ie33ad0c62bf686496460b94bd4de6f9e28e1ae5b
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
Co-Authored-By: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Co-Authored-By: Karan Raj Singh <karan.raj.s.singh@ericsson.com>
Co-Authored-By: Achuth Maniyedath <achuth.maniyedath@ericsson.com>
8 years agoMerge "BUG-5648 - delete qos and queues from udpates"
Sam Hague [Mon, 4 Apr 2016 23:22:44 +0000 (23:22 +0000)]
Merge "BUG-5648 - delete qos and queues from udpates"

8 years agoSplit listeners from data processors
Stephen Kitt [Fri, 1 Apr 2016 15:10:07 +0000 (17:10 +0200)]
Split listeners from data processors

Listening for changes is different from processing them, so separate
the two concerns. This should make the data processors easier to
test.

Change-Id: I7a385b13c37ac2d02f12799042fc956084bd3670
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>