netvirt.git
7 years agofix checkstyle for NetvirtIT 36/44736/1
Sam Hague [Fri, 26 Aug 2016 20:42:40 +0000 (16:42 -0400)]
fix checkstyle for NetvirtIT

Change-Id: I51517f242d063ab2b68be692a96cf7c7b24bfec8
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoFix broken legacy NetvirtIT 32/44732/1
Sam Hague [Fri, 26 Aug 2016 18:52:59 +0000 (14:52 -0400)]
Fix broken legacy NetvirtIT

Change-Id: I60cd9814190a162302b6bad15348010f63c9324b
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoadd missing exception throws for ElanUtils 30/44730/2
Sam Hague [Fri, 26 Aug 2016 17:47:56 +0000 (13:47 -0400)]
add missing exception throws for ElanUtils

Change-Id: Ib3e941d3985719406399ba64b589bec0e1fa98f9
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoAdd two node IT 31/44731/1
Sam Hague [Fri, 26 Aug 2016 17:39:21 +0000 (13:39 -0400)]
Add two node IT

Change-Id: Idd5aa1cf2be711420d96938769a293a1822b7407
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMerge "Fix bugs related to wrong exception handling"
Sam Hague [Fri, 26 Aug 2016 16:31:45 +0000 (16:31 +0000)]
Merge "Fix bugs related to wrong exception handling"

7 years agoMerge "elanmanager CLI console commands impl should never catch Exception (II)"
Sam Hague [Fri, 26 Aug 2016 13:19:14 +0000 (13:19 +0000)]
Merge "elanmanager CLI console commands impl should never catch Exception (II)"

7 years agoMerge "Fixes Bug 6514"
Sam Hague [Fri, 26 Aug 2016 11:39:55 +0000 (11:39 +0000)]
Merge "Fixes Bug 6514"

7 years agoMerge "Bug 6532: Fix ACL IPv6 VM to VM communication on same network"
Sam Hague [Fri, 26 Aug 2016 11:38:53 +0000 (11:38 +0000)]
Merge "Bug 6532: Fix ACL IPv6 VM to VM communication on same network"

7 years agoMerge "Removing Blind imports across the module"
Sam Hague [Fri, 26 Aug 2016 01:16:55 +0000 (01:16 +0000)]
Merge "Removing Blind imports across the module"

7 years agoMerge "Gratitious ARP handling added in ARP cache feature of L3VPN"
Sam Hague [Fri, 26 Aug 2016 01:12:58 +0000 (01:12 +0000)]
Merge "Gratitious ARP handling added in ARP cache feature of L3VPN"

7 years agoMerge "Fix NPE in FloatingIpGarpHandler.sendGarpOnInterface"
Sam Hague [Fri, 26 Aug 2016 01:11:28 +0000 (01:11 +0000)]
Merge "Fix NPE in FloatingIpGarpHandler.sendGarpOnInterface"

7 years agoMerge "VpnPortIpToPort Listener for ELAN"
Sam Hague [Fri, 26 Aug 2016 01:11:23 +0000 (01:11 +0000)]
Merge "VpnPortIpToPort Listener for ELAN"

7 years agoMerge "Move odl-netvirt-openstack-it to IT bundle"
Stephen Kitt [Thu, 25 Aug 2016 12:02:20 +0000 (12:02 +0000)]
Merge "Move odl-netvirt-openstack-it to IT bundle"

7 years agoFixes Bug 6514 07/44607/4
Aswin Suryanarayanan [Wed, 24 Aug 2016 14:00:22 +0000 (19:30 +0530)]
Fixes Bug 6514

The AclInterface cache was getting cleaned on a interface state change.
Now it will be cleaned up only on port delete.

Change-Id: Ia7fbb3fa77055271bed4ccad1d0155ce1615f309
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoBug 6532: Fix ACL IPv6 VM to VM communication on same network 53/44653/2
Sridhar Gaddam [Thu, 25 Aug 2016 10:35:19 +0000 (16:05 +0530)]
Bug 6532: Fix ACL IPv6 VM to VM communication on same network

This patch programs the necessary flows in the ACL (Stateful version)
to allow IPv6 VM to VM communication on the same network.

Change-Id: I1fa4bf5210c1ebfe73658800796f2c53ec88441f
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoGratitious ARP handling added in ARP cache feature of L3VPN 26/44226/7
Gobinath [Thu, 18 Aug 2016 05:18:33 +0000 (10:48 +0530)]
Gratitious ARP handling added in ARP cache feature of L3VPN

As a part of the ARP cache feature of L3VPN, a timer runs once the ARP of an enterprise host is learned and is cleared as soon as this timer expires. When this host sends ARP packets(GARP for instance),the ARP cache timeout has to be reset again. Handling for it has been added.

Change-Id: I6411448c85fa739ba513b9ceff3fef4c6536108d
Signed-off-by: Gobinath <gobinath@ericsson.com>
7 years agoFix NPE in FloatingIpGarpHandler.sendGarpOnInterface 44/44644/1
Ravit Peretz [Thu, 25 Aug 2016 08:24:43 +0000 (11:24 +0300)]
Fix NPE in FloatingIpGarpHandler.sendGarpOnInterface

Change-Id: I03ecf452559649391ffee5b3597ef9cf95479224
Signed-off-by: Ravit Peretz <ravit.peretz@hpe.com>
7 years agoVpnPortIpToPort Listener for ELAN 85/44585/3
eceghkl [Wed, 24 Aug 2016 05:31:30 +0000 (11:01 +0530)]
VpnPortIpToPort Listener for ELAN

* Listens to VpnPortIpToPortListener changes
* Add SMAC and DMAC flows
* Update ELAN operational DS

Change-Id: I70280b5b4e1560e9725015d54f2345401d66f432
Signed-off-by: eceghkl <manu.b@ericsson.com>
7 years agoMerge "Bug 6515: Fix NPE for an IPv6 subnet without gateway"
Sam Hague [Wed, 24 Aug 2016 21:56:05 +0000 (21:56 +0000)]
Merge "Bug 6515: Fix NPE for an IPv6 subnet without gateway"

7 years agoMerge "BUG-6455 - passing of OvsdbInventoryService dependency to the constructor...
Sam Hague [Wed, 24 Aug 2016 20:40:45 +0000 (20:40 +0000)]
Merge "BUG-6455 - passing of OvsdbInventoryService dependency to the constructor is not required"

7 years agoMove odl-netvirt-openstack-it to IT bundle 24/44624/2
Sam Hague [Wed, 24 Aug 2016 19:23:33 +0000 (15:23 -0400)]
Move odl-netvirt-openstack-it to IT bundle

Change-Id: I6041e27ee2ef8ec213b2301981c9a15364175448
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMerge "Fix boron rc1 build by removing netvirt-it-utils"
Sam Hague [Wed, 24 Aug 2016 19:25:23 +0000 (19:25 +0000)]
Merge "Fix boron rc1 build by removing netvirt-it-utils"

7 years agoBUG-6455 - passing of OvsdbInventoryService dependency to the constructor is not... 23/44623/1
Bertrand [Wed, 24 Aug 2016 19:08:36 +0000 (12:08 -0700)]
BUG-6455 - passing of OvsdbInventoryService dependency to the constructor is not required

Follow up to patch https://git.opendaylight.org/gerrit/#/c/44572/1

Change-Id: I3d7ed1af1e4745dceac90bc3b3f275d68bad2860
Signed-off-by: Bertrand <bertrand.low@hcl.com>
7 years agoMerge "BUG-6455 - due to blueprint migration, the order in which the respective Confi...
Sam Hague [Wed, 24 Aug 2016 17:59:59 +0000 (17:59 +0000)]
Merge "BUG-6455 - due to blueprint migration, the order in which the respective ConfigActivator.start() methods is called for Netvirt and Netvirt-Providers is now random. This could cause timing issues where dependencies are not yet loaded when modules like NetVirt starts up. We need to inject the dependency of OvsdbInventoryService for NetvirtProviders so that NetvirtProviders has that service loaded before it starts."

7 years agoFix boron rc1 build by removing netvirt-it-utils 01/44601/1
Sam Hague [Wed, 24 Aug 2016 12:29:59 +0000 (08:29 -0400)]
Fix boron rc1 build by removing netvirt-it-utils

Change-Id: I0661c19bbbfdc53ef59f1ab01f489c90e80d3c48
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoBug 6515: Fix NPE for an IPv6 subnet without gateway 92/44592/1
Sridhar Gaddam [Wed, 24 Aug 2016 10:02:03 +0000 (15:32 +0530)]
Bug 6515: Fix NPE for an IPv6 subnet without gateway

This patch addresses the exception in ipv6service when a IPv6
subnet is created without the gateway_ip.

Change-Id: Ibfa71e1775e15a51e717557ad080634d46d1220c
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoMerge "Netvirt - Neutron QoS rate limit support"
Sam Hague [Tue, 23 Aug 2016 21:26:47 +0000 (21:26 +0000)]
Merge "Netvirt - Neutron QoS rate limit support"

7 years agoBUG-6455 - due to blueprint migration, the order in which the respective ConfigActiva... 72/44572/1
Bertrand [Tue, 23 Aug 2016 17:05:12 +0000 (10:05 -0700)]
BUG-6455 - due to blueprint migration, the order in which the respective ConfigActivator.start() methods is called for Netvirt and Netvirt-Providers is now random.
This could cause timing issues where dependencies are not yet loaded when modules like NetVirt starts up.
We need to inject the dependency of OvsdbInventoryService for NetvirtProviders so that NetvirtProviders has that service loaded before it starts.

Change-Id: I431554dbd76c9cad71e6d49916a8eb9e4d456f71
Signed-off-by: Bertrand <bertrand.low@hcl.com>
7 years agoMerge "Bug 6473: Fix for CSIT SSH issue."
Sam Hague [Tue, 23 Aug 2016 20:53:43 +0000 (20:53 +0000)]
Merge "Bug 6473: Fix for CSIT SSH issue."

7 years agoMerge "Fixed the vpninstance creation"
Sam Hague [Tue, 23 Aug 2016 17:55:33 +0000 (17:55 +0000)]
Merge "Fixed the vpninstance creation"

7 years agoMerge "Refactor aclservice to for all the acl types to inherit the same abstract...
Sam Hague [Tue, 23 Aug 2016 17:55:22 +0000 (17:55 +0000)]
Merge "Refactor aclservice to for all the acl types to inherit the same abstract class"

7 years agoMerge "Change the register that is used in acl learn actions"
Sam Hague [Tue, 23 Aug 2016 16:43:58 +0000 (16:43 +0000)]
Merge "Change the register that is used in acl learn actions"

7 years agoFixed the vpninstance creation 30/44530/3
yair [Mon, 22 Aug 2016 13:54:27 +0000 (16:54 +0300)]
Fixed the vpninstance creation

The vpn instance was created in the NeutronVpnManager and there was a bug.
It could not create it without the external gateway info.
Should now create it after external gateway info creation

Change-Id: I203693ca69a48d06b69bb8acc9868a899371fcea
Signed-off-by: yair <yair.zinger@hpe.com>
7 years agoRefactor aclservice to for all the acl types to inherit the same abstract class 31/44531/2
Slava [Mon, 22 Aug 2016 11:58:30 +0000 (14:58 +0300)]
Refactor aclservice to for all the acl types to inherit the same abstract class

Depends on:
https://git.opendaylight.org/gerrit/#/c/44453

Change-Id: I7bb81dc1249a4fcf2684bad879198be00aff0be4
Signed-off-by: Slava <slava.radune@hpe.com>
7 years agoBug 6473: Fix for CSIT SSH issue. 40/44540/2
bharathi.m [Wed, 24 Aug 2016 00:15:29 +0000 (20:15 -0400)]
Bug 6473: Fix for CSIT SSH issue.

 * If security rules created with CIDR as 0.0.0.0/0 in TCP Custom rules
   it creates nw_dst=0.0.0.0 because of this behavior TCP packets are
   getting dropped.
 * Fix: If CIDR created with 0.0.0.0/0, nw_dst and nw_src will be
   removed from table 40 and table 90.

Change-Id: I82fdfa49d4da545619259572de8e0d2f571107b1
Signed-off-by: bharathi.m <bharathi.m@hcl.com>
7 years agoMerge "Add support for using kernel modules with docker for IT"
Sam Hague [Tue, 23 Aug 2016 12:20:23 +0000 (12:20 +0000)]
Merge "Add support for using kernel modules with docker for IT"

7 years agoMerge "BUG-6495 BC Grp wrong for E/W VLAN provider net"
Sam Hague [Tue, 23 Aug 2016 12:19:03 +0000 (12:19 +0000)]
Merge "BUG-6495 BC Grp wrong for E/W VLAN provider net"

7 years agoChange the register that is used in acl learn actions 35/44535/1
Slava [Tue, 23 Aug 2016 09:52:48 +0000 (12:52 +0300)]
Change the register that is used in acl learn actions

Change-Id: I72e7d285cbd914ea3ed5392553b0a91323b50cde
Signed-off-by: Slava <slava.radune@hpe.com>
7 years agoRemoving Blind imports across the module 33/44533/3
Suraj Ranjan [Tue, 23 Aug 2016 07:36:07 +0000 (13:06 +0530)]
Removing Blind imports across the module

This commit removes blind imports across the netvirt module.

Change-Id: I3b6d70cd6e83384eaf54f2a2f97495ae47df9e49
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Fix IndexOutOfBoundsException when a port with IPv6 address is deleted"
Sam Hague [Mon, 22 Aug 2016 20:46:47 +0000 (20:46 +0000)]
Merge "Fix IndexOutOfBoundsException when a port with IPv6 address is deleted"

7 years agoMerge "Addition of BgpAlarms"
Sam Hague [Mon, 22 Aug 2016 20:46:40 +0000 (20:46 +0000)]
Merge "Addition of BgpAlarms"

7 years agoAdd support for using kernel modules with docker for IT 51/44451/4
Sam Hague [Mon, 22 Aug 2016 03:50:35 +0000 (23:50 -0400)]
Add support for using kernel modules with docker for IT

This enabled support for using the kernel modules with Docker containers. Also the default seucity-group-mode is set to transparent until the proper support for stateful and stateless are included in the IT.

Use the following commands to test netvirt from the netvirt/vpnservice directory:

1. Using DockerOvs in userspace
mvn -nsu -f it/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet -Dovsdb.userspace.enabled=yes -Dsgm=transparent

2. Using DockerOvs with kernel modules.
mvn -nsu -f it/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet -Dsgm=transparent

3. Using an externally started Docker container (or vm)
mvn -nsu -f it/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet -Dovsdb.userspace.enabled=yes -Dsgm=transparent -Dovsdbserver.ipaddress=127.0.0.1 -Dovsdbserver.port=6641

Use the following commands to test legacy netvirt from the netvirt/openstack directory:

mvn -nsu -f net-virt-it/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet -Dovsdb.userspace.enabled=yes
mvn -nsu -f net-virt-it/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet
mvn -nsu -f net-virt-it/pom.xml verify -Pintegrationtest -Dovsdb.controller.address=172.17.0.1 -Dit.test=NetvirtIT#testNeutronNet -Dovsdb.userspace.enabled=yes -Dovsdbserver.ipaddress=127.0.0.1 -Dovsdbserver.port=6641

Change-Id: I9e8fac1fa25d9e55f763f66bc87984ebab8738d3
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMerge "BUG-6501: avoid NPE if sgm isn't defined"
Sam Hague [Mon, 22 Aug 2016 19:20:23 +0000 (19:20 +0000)]
Merge "BUG-6501: avoid NPE if sgm isn't defined"

7 years agoMerge "BUG 6489: Routes to InterVpnLink not advertised on BGP"
Sam Hague [Mon, 22 Aug 2016 19:17:16 +0000 (19:17 +0000)]
Merge "BUG 6489: Routes to InterVpnLink not advertised on BGP"

7 years agoFix IndexOutOfBoundsException when a port with IPv6 address is deleted 00/44500/1
Sridhar Gaddam [Mon, 22 Aug 2016 15:41:30 +0000 (21:11 +0530)]
Fix IndexOutOfBoundsException when a port with IPv6 address is deleted

This patch avoids the following exception.
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
 at java.util.ArrayList.rangeCheck(ArrayList.java:653)[:1.8.0_101]
 at java.util.ArrayList.get(ArrayList.java:429)[:1.8.0_101]
 at *netvirt.neutronvpn.NeutronPortChangeListener.addPortToSubnets(NeutronPortChangeListener.java:552)
 at *.netvirt.neutronvpn.NeutronPortChangeListener.handleNeutronPortUpdated(NeutronPortChangeListener.java:355)
 <SNIP>

Change-Id: If9de109b22dde15da07dcd9284b8525ffba2b6fb
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoBUG 6489: Routes to InterVpnLink not advertised on BGP 60/44460/2
Suraj Ranjan [Mon, 22 Aug 2016 09:00:39 +0000 (14:30 +0530)]
BUG 6489: Routes to InterVpnLink not advertised on BGP

 + Missing functionality: when a route pointing to an interVpnLink
   endpoint is added/removed to a Neutron Router, CSC must advertise
   the prefix. The nexthop(s) for the BGP are the DPNs where the
   endpoint of the InterVpnLink was instantiated

 + Moves some InterVpnLink utility methods from VpnUtil.java to
   InterVpnLinkUtil.java

 + Changes some return values to Optional.

Change-Id: I9e671b34400151099e501d26a8a7839c7730d0b7
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoBUG-6501: avoid NPE if sgm isn't defined 97/44497/2
Stephen Kitt [Mon, 22 Aug 2016 15:00:51 +0000 (17:00 +0200)]
BUG-6501: avoid NPE if sgm isn't defined

System.getProperty("sgm") returns null if the system property isn't
defined, which throws a NullPointerException on the equals() call.
Inverting the equals() avoids this.

Change-Id: I6060d07a1958ab60de9e816cdfdbe477e4503cf2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoFix bugs related to wrong exception handling 47/44147/4
Michael Vorburger [Wed, 17 Aug 2016 13:23:09 +0000 (15:23 +0200)]
Fix bugs related to wrong exception handling

see discussion in thread "Re: [netvirt-dev] Exception Handling in
elanmanager-impl" on netvirt-dev@lists.opendaylight.org.  Checkstyle
raised these, and is right.

This resolves all Checkstyle related violations related to IllegalCatch.

Change-Id: Ie826b4688cd4b5dee8e0f33e98542319093cfa8c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAddition of BgpAlarms 57/44457/7
Chintan Apte [Mon, 22 Aug 2016 07:42:26 +0000 (13:12 +0530)]
Addition of BgpAlarms

Change-Id: I14071695fa0ed858627b0bb1ea16e90ae2188cdc
Signed-off-by: Chintan Apte <chintan.apte@ericsson.com>
7 years agoLearn Security Groups bug fixes 85/44485/1
Slava [Mon, 22 Aug 2016 06:19:55 +0000 (09:19 +0300)]
Learn Security Groups bug fixes

Change-Id: I0d0b93847520b349c9e5c6a1ef05d6ddce62adb6
Signed-off-by: Slava <slava.radune@hpe.com>
7 years agoMerge "Fix bug wherein console commands would not work with Karaf ssh session"
Sam Hague [Mon, 22 Aug 2016 12:44:58 +0000 (12:44 +0000)]
Merge "Fix bug wherein console commands would not work with Karaf ssh session"

7 years agoBUG-6495 BC Grp wrong for E/W VLAN provider net 66/44466/1
Josh [Mon, 22 Aug 2016 12:40:54 +0000 (14:40 +0200)]
BUG-6495 BC Grp wrong for E/W VLAN provider net

As per the explanation in the bug, this group
is configured twice and one of these times is
broken for VLAN and only works for VxLan.
Easy way to solve this it to only call the second
method when the network type is VxLan. That's
what this patch does. Would be better if this
group was configured in one place, coherently.

Change-Id: Ia5d8f003d2f591b6a3d366928683c9e1a3515eb6
Signed-off-by: Josh <jhershbe@redhat.com>
7 years agoFix bug wherein console commands would not work with Karaf ssh session 56/44456/1
epgoraj [Mon, 22 Aug 2016 07:47:04 +0000 (13:17 +0530)]
Fix bug wherein console commands would not work with Karaf ssh session

Change-Id: I672e5498cc5d8be2e3d6d3d08e1c72f73bf597c8
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
7 years agoBug 6477 - Fixes dissc of rtr from VPN & VPNPortFixedIpToPort 83/44383/4
Abhinav Gupta [Fri, 19 Aug 2016 08:27:20 +0000 (13:57 +0530)]
Bug 6477 - Fixes dissc of rtr from VPN & VPNPortFixedIpToPort

1. Fix to ensure adjacencies are deleted properly for learnt routes upon
dissociation.
2. Refactor to reduce reads/writes/builders
3. Added synchronization on interfacename for Arp and NeutronVPN while
updating vpninterface-adjacencies.
4. Fix in remove FibManager to not call leakRouteIfNeeded for non-BGP
routes
5. Renamed ArpRemoveCacheTask and ArpAddCacheTask classes to have proper name.
6. Eliminated reads upon DS deletes for VpnPortIPToPortData DS.

Change-Id: Ib6580c71cbce6451d411e1c5f030582225830b4d
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
7 years agoMerge "Use node conn info remote ip for sff"
Sam Hague [Sun, 21 Aug 2016 19:34:33 +0000 (19:34 +0000)]
Merge "Use node conn info remote ip for sff"

7 years agoMerge "Copy default aclservice-config.xml to etc/...config"
Sam Hague [Sun, 21 Aug 2016 17:46:04 +0000 (17:46 +0000)]
Merge "Copy default aclservice-config.xml to etc/...config"

7 years agoUse node conn info remote ip for sff 46/44446/1
Sam Hague [Fri, 19 Aug 2016 21:41:05 +0000 (17:41 -0400)]
Use node conn info remote ip for sff

Change-Id: I789e650fb465bc2f8123cd021c242d315320c906
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoCopy default aclservice-config.xml to etc/...config 36/44436/4
Sam Hague [Sun, 21 Aug 2016 01:42:58 +0000 (21:42 -0400)]
Copy default aclservice-config.xml to etc/...config

Change-Id: I13c3f7618830c8864a1c3cd1a91bba4c7efe7989
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoFix read of VpnPortipToPort to read from Operational 44/44444/2
Koby Aizer [Sun, 21 Aug 2016 14:13:24 +0000 (17:13 +0300)]
Fix read of VpnPortipToPort to read from Operational

In patchset https://git.opendaylight.org/gerrit/#/c/43719/
VpnPortipToPort is written operational DS.

This commit fixes NatUtil/SubnetGwMacChangeListener to read from
the updated location.

Change-Id: I7045c9bff47ef0bde7fc3e9a9d8a3b526e54e125
Signed-off-by: Koby Aizer <koby.aizer@hpe.com>
7 years agoHandle learn security groups 12/43712/6
Slava [Thu, 11 Aug 2016 12:04:10 +0000 (15:04 +0300)]
Handle learn security groups

Change-Id: I9d3385502a1e902ba6dd1a034927595d04b54ee8
Signed-off-by: Slava <slava.radune@hpe.com>
7 years agoBUG 6487: Extra routes to IVpnLink endpoint not in FIB 30/44430/2
Suraj Ranjan [Sat, 20 Aug 2016 07:34:10 +0000 (13:04 +0530)]
BUG 6487: Extra routes to IVpnLink endpoint not in FIB

 + LportTag range for InterVpnLink endpoints has changed to a range of
   [170001..270000]. Those values does not fit in a uint16 attribute

 + Also applies a bit of refactoring to reduce the duplication of code
   as much as possible

 + It also aligns the system properties names to the ones defined
   in sdnc repository

 Apart from above bug fix this commit also deals with:

 1> Fixes in metadata writing
 2> InterVpnLink Active even if VPN not exists

Change-Id: Iafe72a651153a7ca48e68748c6b7b271541e835c
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Bug 6486 - Add waits for IT Utils"
Andre Fredette [Sat, 20 Aug 2016 17:38:14 +0000 (17:38 +0000)]
Merge "Bug 6486 - Add waits for IT Utils"

7 years agoBug 6486 - Add waits for IT Utils 34/44434/1
Sam Hague [Sat, 20 Aug 2016 16:31:31 +0000 (12:31 -0400)]
Bug 6486 - Add waits for IT Utils

Change-Id: I315706be5e216d23de4f4a0d037cd272b698f734
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMerge "Allow non-default controller-dhcp-enabled at init"
Sam Hague [Sat, 20 Aug 2016 02:12:18 +0000 (02:12 +0000)]
Merge "Allow non-default controller-dhcp-enabled at init"

7 years agoMerge "Fixes Bug 6469 "
Sam Hague [Sat, 20 Aug 2016 02:10:53 +0000 (02:10 +0000)]
Merge "Fixes Bug 6469 "

7 years agoMerge "code optimization for cluster environment"
Sam Hague [Sat, 20 Aug 2016 02:09:44 +0000 (02:09 +0000)]
Merge "code optimization for cluster environment"

7 years agoMerge "Fixes Bug 6478"
Sam Hague [Sat, 20 Aug 2016 02:07:56 +0000 (02:07 +0000)]
Merge "Fixes Bug 6478"

7 years agoBUG 6389: ServChain not applied to VMs in VPN 62/43862/4
Suraj Ranjan [Fri, 12 Aug 2016 14:15:29 +0000 (19:45 +0530)]
BUG 6389: ServChain not applied to VMs in VPN

Service Chaining Traffic should be forwarded to the DPN connected to
the Fist VM of SC Path.

Aprt from fixing above bug, this review also deals with the following:

1> Fixes bug in InterVpnLink static route provision
2> Removes NPE protection from NeutronVpnmanager

Change-Id: Ic31e0399e5684d7512571a4d63f4ab01fd3400a3
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoelanmanager CLI console commands impl should never catch Exception (II) 10/44410/1
Michael Vorburger [Fri, 19 Aug 2016 15:00:09 +0000 (17:00 +0200)]
elanmanager CLI console commands impl should never catch Exception (II)

Thank You to Checkstyle for pointing these out.  Please see
https://wiki.opendaylight.org/view/BestPractices/Coding_Guidelines#IllegalCatch
for background & details.

This finishes up & completes had started in a previous Gerrit.

Change-Id: Iddd35fa699010bc4934e55c8bf6b339997effd38
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 6390 Fix ArpNotificationHandler initialization. 91/44391/1
Achuth [Fri, 19 Aug 2016 11:38:38 +0000 (17:08 +0530)]
Bug 6390 Fix ArpNotificationHandler initialization.

Change-Id: If9b755be9dab216e75c945bc9c28e9943f954e06
Signed-off-by: Achuth <achuth.maniyedath@ericsson.com>
7 years agoFixes Bug 6478 85/44385/1
Aswin Suryanarayanan [Fri, 19 Aug 2016 09:28:50 +0000 (14:58 +0530)]
Fixes Bug 6478

Changed the code to match the destination port for TCP and UDP in both
egress and ingress.

Change-Id: I6da8373e6526ef621dfe90ecdfc51ed80db12c80
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoNetvirt - Neutron QoS rate limit support 63/42363/9
Eric Multanen [Wed, 20 Jul 2016 06:32:40 +0000 (23:32 -0700)]
Netvirt - Neutron QoS rate limit support

Adds Neutron QoS support to Neutronvpn.

Supports listening to neutron nb for
qos policy and bandwidth limit rule changes and configuring
corresponding ovsdb ports.

Supports:
- add, update, remove of qos policy assigned to Neutron port
- add, update and delete of bandwidth limit
  rules assigned to a Neutron port.
- add, update and delete of bandwidth limit rules
  assigend to a Neutron network.

todo:
- dscp marking rules (for port and network)

Testing procedure:
1.  Create neutron network, subnet and instance.
2.  Create neutron qos policy and rules via postman.
3.  using postman assign policy to postman, remove, add rules, etc.
4.  Result:  corresponding ovsdb port ingress policing attributes
    are configured appropriately.

v2 - rebase with master
v3 - rebase with master - blueprint changes
v4 - address review comments
     use different source for mdsalutils
     fix LOGGER class
v5 - rebase to master
v6 - rebase to master

Change-Id: Ibc9e0c8c2883eebf83d5f836a91ab8bc6c5e6469
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
7 years agoFixes Bug 6469 06/44306/2
Aswin Suryanarayanan [Thu, 18 Aug 2016 18:00:14 +0000 (23:30 +0530)]
Fixes Bug 6469

CtZone is added while submitting the packet to the netfilter. This help
addressing the issue with overlapping ip address as each elanId will be
tracked separately.

Change-Id: I70867cfb89e279926128bbe794cc8164affc115f
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoMerge "Bug 6390 VpnPortIpToportData to use Oper DS"
Sam Hague [Fri, 19 Aug 2016 01:01:03 +0000 (01:01 +0000)]
Merge "Bug 6390 VpnPortIpToportData to use Oper DS"

7 years agoMerge "No need to create br-ex any more. br-ex(it) ;)"
Sam Hague [Thu, 18 Aug 2016 16:04:01 +0000 (16:04 +0000)]
Merge "No need to create br-ex any more. br-ex(it) ;)"

7 years agoAllow non-default controller-dhcp-enabled at init 73/44273/1
Vishal Thapar [Thu, 18 Aug 2016 14:31:58 +0000 (20:01 +0530)]
Allow non-default controller-dhcp-enabled at init

Currently controller-dhcp-enabled cn only be set through yang and defaults
to false. To change one must wait for bundles to come up and change
through restconf. This adds option to specif a different default at bring
up.

To set the default for controller-dhcp-enabled:

1. Change the value in dhcpservice/.../netvirt-dhcpservice.xml
2. Copy the file into the unzipped distribution before starting karaf:
  cd netvirt/vpnservice
  mkdir -p ./distribution/karaf/target/assembly/etc/opendaylight/datastore/initial/config
  cp dhcpservice/impl/src/main/resources/netvirt-dhcpservice.xml ./distribution/karaf/target/assembly/etc/opendaylight/datastore/initial/config

Change-Id: I6768e117515a4ff2c52e70961efb3aeac65c8d5f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoNo need to create br-ex any more. br-ex(it) ;) 50/44250/1
Josh [Thu, 18 Aug 2016 12:52:15 +0000 (14:52 +0200)]
No need to create br-ex any more. br-ex(it) ;)

devstack no longer checks for it and we
do not use it.

Change-Id: I4f72331e321e5094ffb7b378cbee894932001dbf
Signed-off-by: Josh <jhershbe@redhat.com>
7 years agoMerge "elanmanager CLI console commands impl should never catch Exception"
Sam Hague [Thu, 18 Aug 2016 12:33:51 +0000 (12:33 +0000)]
Merge "elanmanager CLI console commands impl should never catch Exception"

7 years agoBlueprint fix 35/44235/2
Kency Kurian [Thu, 18 Aug 2016 08:46:14 +0000 (14:16 +0530)]
Blueprint fix

Registration of entity type "elan" missed out. This is used by L2Gw in
order to identify the owner for type "elan".

Change-Id: I583ec617529a82ee8a0db1dbd34421c29ac9f571
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoMerge "Port cloud-servicechain to Blueprint"
Sam Hague [Thu, 18 Aug 2016 00:02:46 +0000 (00:02 +0000)]
Merge "Port cloud-servicechain to Blueprint"

7 years agoMerge "add local_ip to other_config to satisfy auto-tunnel"
Sam Hague [Thu, 18 Aug 2016 00:01:52 +0000 (00:01 +0000)]
Merge "add local_ip to other_config to satisfy auto-tunnel"

7 years agoMerge "Clean up a bunch of trival Checkstyle violations"
Sam Hague [Thu, 18 Aug 2016 00:01:16 +0000 (00:01 +0000)]
Merge "Clean up a bunch of trival Checkstyle violations"

7 years agoMerge "Bug 6449 - Issues in Service Function Forwarder translation"
Sam Hague [Thu, 18 Aug 2016 00:00:01 +0000 (00:00 +0000)]
Merge "Bug 6449 - Issues in Service Function Forwarder translation"

7 years agoMerge "clean isExternal NPE and string syntax"
Sam Hague [Wed, 17 Aug 2016 22:11:26 +0000 (22:11 +0000)]
Merge "clean isExternal NPE and string syntax"

7 years agoMerge "ACL Support for IPv6 IPAM"
Sam Hague [Wed, 17 Aug 2016 22:06:23 +0000 (22:06 +0000)]
Merge "ACL Support for IPv6 IPAM"

7 years agoMerge "More elan Blueprint clean-up"
Sam Hague [Wed, 17 Aug 2016 21:59:45 +0000 (21:59 +0000)]
Merge "More elan Blueprint clean-up"

7 years agoMerge "Remove elanUtils instance from ElanInstanceManager"
Sam Hague [Wed, 17 Aug 2016 21:59:40 +0000 (21:59 +0000)]
Merge "Remove elanUtils instance from ElanInstanceManager"

7 years agoadd local_ip to other_config to satisfy auto-tunnel 11/44211/2
Sam Hague [Wed, 17 Aug 2016 20:51:51 +0000 (16:51 -0400)]
add local_ip to other_config to satisfy auto-tunnel

Change-Id: I06b6688572440f2445a0a0f64f9fe6a6933ac18b
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoclean isExternal NPE and string syntax 10/44210/1
Sam Hague [Wed, 17 Aug 2016 20:51:09 +0000 (16:51 -0400)]
clean isExternal NPE and string syntax

Change-Id: I5aed5a3bcc830a9df461e7c76fa92d0095ff796f
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMerge "Fixing external network group table lifecycle"
Sam Hague [Wed, 17 Aug 2016 20:17:34 +0000 (20:17 +0000)]
Merge "Fixing external network group table lifecycle"

7 years agoMerge "Neutronvpn caches require update upon Router/Network changes"
Sam Hague [Wed, 17 Aug 2016 20:15:13 +0000 (20:15 +0000)]
Merge "Neutronvpn caches require update upon Router/Network changes"

7 years agoMerge "Rename JMX MBean's ObjectName from com.ericsson to org.opendaylight"
Sam Hague [Wed, 17 Aug 2016 19:11:57 +0000 (19:11 +0000)]
Merge "Rename JMX MBean's ObjectName from com.ericsson to org.opendaylight"

7 years agoMerge "Fix completely broken ElanStatusMonitor JMX MBean"
Sam Hague [Wed, 17 Aug 2016 19:11:26 +0000 (19:11 +0000)]
Merge "Fix completely broken ElanStatusMonitor JMX MBean"

7 years agoNeutronvpn caches require update upon Router/Network changes 81/44181/1
Tali [Wed, 17 Aug 2016 16:50:14 +0000 (19:50 +0300)]
Neutronvpn caches require update upon Router/Network changes

Change-Id: I1381bc8def2124a57b0daa29faa11341ecdd99f9
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoRename JMX MBean's ObjectName from com.ericsson to org.opendaylight 73/44173/1
Michael Vorburger [Wed, 17 Aug 2016 16:06:02 +0000 (18:06 +0200)]
Rename JMX MBean's ObjectName from com.ericsson to org.opendaylight

From com.ericsson.sdncp.services.status:type=SvcElanService to
org.opendaylight.netvirt.elan:type=SvcElanService

Change-Id: I598004f3272f267cdd1331aef0e96cac5ac82ef7
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoFix completely broken ElanStatusMonitor JMX MBean 72/44172/1
Michael Vorburger [Wed, 17 Aug 2016 15:52:59 +0000 (17:52 +0200)]
Fix completely broken ElanStatusMonitor JMX MBean

including a test for future non-regression of this problem:

javax.management.NotCompliantMBeanException: MBean class
org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitorJMX does
not implement DynamicMBean, and neither follows the Standard MBean
conventions (javax.management.NotCompliantMBeanException: Class
org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitorJMX is not
a JMX compliant Standard MBean) nor the MXBean conventions
(javax.management.NotCompliantMBeanException:
org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitorJMX: Class
org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitorJMX is not
a JMX compliant MXBean)
at
com.sun.jmx.mbeanserver.Introspector.checkCompliance(Introspector.java:176)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:317)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
at
org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitorJMX.registerMbean(ElanStatusMonitorJMX.java:30)
at
org.opendaylight.netvirt.elan.statusanddiag.ElanStatusMonitorJMX.init(ElanStatusMonitorJMX.java:24)

Change-Id: Ic269921840effd7ffae1c3c51dba88afd78999d5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoPort cloud-servicechain to Blueprint 11/43711/3
Stephen Kitt [Thu, 11 Aug 2016 12:12:21 +0000 (14:12 +0200)]
Port cloud-servicechain to Blueprint

This also enables the feature.

Change-Id: Ia65d372c291fea413661b33be93e5b5731ddee71
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoACL Support for IPv6 IPAM 48/44148/1
Sridhar Gaddam [Wed, 17 Aug 2016 13:37:16 +0000 (19:07 +0530)]
ACL Support for IPv6 IPAM

This patch implements the following support.
1. Programs the anti-spoofing rules not to allow a VM to run an IPv6 Router.
2. Allows the necessary ICMPv6 traffic in the VM-egress pipeline.
3. Allows the necessary ICMPv6 traffic in the VM-ingress pipeline.
4. Fixes the DHCPv6 ports

Pending:
Some of the flows should be made more restrictive by taking into
consideration the MAC address of the IPv6 Router/DHCP server. This
change is required for both V4 and V6 rules and will be handled in
a separate patch.

Change-Id: I5e64d989dfa4d03ad6ce941201e32f2f2caef308
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoClean up a bunch of trival Checkstyle violations 31/44131/2
Michael Vorburger [Wed, 17 Aug 2016 10:10:26 +0000 (12:10 +0200)]
Clean up a bunch of trival Checkstyle violations

None of these changes has any real impact on code, so please merge this
ASAP, to avoid re-re-re-base.

Change-Id: Ie83af4724b183ed94f093c80e21a81a12ed8186e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Create VLAN trunk once for multiple VLAN networks"
Sam Hague [Wed, 17 Aug 2016 12:21:39 +0000 (12:21 +0000)]
Merge "Create VLAN trunk once for multiple VLAN networks"