netvirt.git
8 years agoBug 6673 : DCN to DTCN Changes for various modules 02/46402/2
Kency Kurian [Fri, 23 Sep 2016 06:03:48 +0000 (11:33 +0530)]
Bug 6673 : DCN to DTCN Changes for various modules

- Moved all DCN in DHCP module to DTCN.
- Also added DhcpSubnetListener and DhcpHwvtepListener to blueprint xml.
- Moved bind and unbind method from DhcpManager to DhcpServiceUtils.

Change-Id: I03a5ed6af26a2f110b0712a6c1ced160a5cdebf0
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
8 years agoBug 6691: Fix exceptions in natservice for a dual-stack network 86/45986/3
Sridhar Gaddam [Mon, 12 Sep 2016 06:54:34 +0000 (12:24 +0530)]
Bug 6691: Fix exceptions in natservice for a dual-stack network

This patch also updates some debug messages.

Change-Id: I840b0782d3e6b5978df63d8885cdc7c3b6c8cc9e
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoBug 6089: Fix for communication between VM's according to SG. 39/45639/6
bharathi.m [Fri, 16 Sep 2016 06:11:24 +0000 (02:11 -0400)]
Bug 6089: Fix for communication between VM's according to SG.

 * Added default wildcard subnet drop rules for ICMP and UDP.
 * Added default dhcp agent allow rule for UDP.
 * Added dhcp agent allow rule for ICMP during custom ICMP SG
   rules applied to particular VM.

Change-Id: I1b0c156f9636718283819cc155a69a10f9e3a842
Signed-off-by: bharathi.m <bharathi.m@hcl.com>
8 years agoThrift interface changes to support EVPN operations over Quagga BGP stack 01/46401/2
Sumanth MS [Mon, 19 Sep 2016 04:36:26 +0000 (10:06 +0530)]
Thrift interface changes to support EVPN operations over Quagga BGP stack

Quagga BGP stack enhancement to support EVPN leads to Thrift interface modifications, which specifically include the following:
Type changes:
a) new AFI parameter - L2VPN
b) new SAFI parameter - EVPN
c) encapsulation types as per RFC 5512
d) layer type - whether a VRF belongs to Layer-1 or Layer-2
e) protocol type - No Overlay config/L3VPN/EVPN/ANY
f) FIB update structure updated with new parameters: l2label, ethtag, esi, macaddress, routermac
API changes:
a) addVrf() includes new layer type parameter
b) pushRoute() includes new protocol type parameter
c) withdrawRoute() includes new protocol type, ethernet tag, esi and macaddress parameter
d) getRoutes() includes protocol type parameter
BGPUpdater Service API changes:
a) onUpdatePushRoute: includes protocol type parameter
b) onUpdateWithdrawRoute: includes nexthop, ethernet tag, esi, macaddressm, l2label, l3label protocol-type parameter

Change-Id: I0b9a397b8ed6b62aaec30ef753726f185d1afd88
Signed-off-by: Sumanth MS <sumanth.ms@ericsson.com>
8 years agoBug 6716:Fix NPE in NeutronvpnNatManager 87/45987/3
Sridhar Gaddam [Wed, 14 Sep 2016 11:43:12 +0000 (17:13 +0530)]
Bug 6716:Fix NPE in NeutronvpnNatManager

Change-Id: If77b4ae30eb8e4608da571153f3dfdf28649d853
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoMask IPv6Prefix in ACL flows 98/46398/2
Sridhar Gaddam [Fri, 16 Sep 2016 10:44:37 +0000 (16:14 +0530)]
Mask IPv6Prefix in ACL flows

When programming an OVS flow that includes an IPv6 prefix
(like in allowed_address_pairs), the IPv6 prefix has to be
properly masked, without which the flow is not programmed
and it results in an OFPT_ERROR.

example:
IPv6 prefix 2001:db8::111f:c0cf/64 has to be masked as
2001:db8::/64 in the flow that is programmed on the switch.

Change-Id: I162bd6e20ae513f103d0e50d9c0fa60085152bd5
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoBug 6589 adding support for hwvtep devices ha 97/46397/2
Akash [Tue, 13 Sep 2016 10:55:51 +0000 (16:25 +0530)]
Bug 6589 adding support for hwvtep devices ha

Added template code to copy the data between ha and child nodes.
When a child node connects copy its operational data to its ha operational
node.
When operational update is received on child node , copy that operational
update to its ha operational node.
When some config update happens on ha node, copy that config update to
child node.

An add/delete logical switch update from child is immediately pushed to
parent ha node.
Duplicate updates from childs is properly filtered out while copying to
the parent ha node.Adding unt Testcase file for l2gw.

Change-Id: Iee182888d25fc45d1cddce5894272335b9650d56
Signed-off-by: Akash <a.k.sahu@ericsson.com>
8 years agobgp logging fixes 96/46396/2
Sam Hague [Wed, 7 Sep 2016 13:22:12 +0000 (09:22 -0400)]
bgp logging fixes

Change-Id: I805ed00d95f2700e30b363f4eaf1067abeab22ab
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoaclservice-impl *Listener without dumb @PreDestroy super.close() 23/45423/4
Michael Vorburger [Tue, 6 Sep 2016 17:20:19 +0000 (19:20 +0200)]
aclservice-impl *Listener without dumb @PreDestroy super.close()

and with @Override init() instead @PostConstruct start()

This goes with (requires, depends on)
https://git.opendaylight.org/gerrit/#/c/45258/, and complements
https://git.opendaylight.org/gerrit/#/c/45249/

I've manually tested this in Karaf and made sure BP (diag) is OK.

Change-Id: Ia09ec0ffb87adfdf3e1c43e5655253eed18bd5ab
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
(cherry picked from commit a4a8b93bb98e7979cf63c9d96a782908e824ffaa)

8 years agoFix WARNING when port is updated with allowed_address_pairs 85/45985/2
Sridhar Gaddam [Mon, 12 Sep 2016 15:22:19 +0000 (20:52 +0530)]
Fix WARNING when port is updated with allowed_address_pairs

When a port is updated with allowed_address_pairs, a WARNING message is
logged in karaf eventhough the necessary ACL flows are programmed on
the port. This patch fixes this issue.

Warning logs seen in karaf:
Acl action UPDATE invoking listener org.opendaylight.netvirt.
aclservice.StatefulIngressAclServiceImpl failed

Change-Id: I5e3b20032ecd32b52d55995bad98253990e2858a
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoFix 6693 84/45984/2
Ravit Peretz [Tue, 13 Sep 2016 10:54:07 +0000 (13:54 +0300)]
Fix 6693
-DHCP Server responds to DHCP requests punted from its table(60) only
-DHCP server should not run at all when the controller-dhcp-enabled flag is false

Change-Id: I5e39ba4c7ee982f98ccb5499e902659147881f06
Signed-off-by: Ravit Peretz <ravit.peretz@hpe.com>
8 years agoBug 6708 91/45991/2
Ravit Peretz [Thu, 15 Sep 2016 15:17:19 +0000 (18:17 +0300)]
Bug 6708
Neighbor NAPT switches group table buckets remain empty
Fix race by triggering NAPT neighbor group table update
upon tunnel interface state addition

Change-Id: If1774c91eb9a42a5da575ec25ca83935fbb178b2
Signed-off-by: Ravit Peretz <ravit.peretz@hpe.com>
8 years agoBug 6727 88/45988/2
Ravit Peretz [Thu, 15 Sep 2016 15:21:18 +0000 (18:21 +0300)]
Bug 6727
ExternalRouterListener ignore multiple routers implementation

Change-Id: I390a666dd61304816f73b7405cc3abbccc45028b
Signed-off-by: Ravit Peretz <ravit.peretz@hpe.com>
8 years agoBug 6628 - DMAC for L3 entities flows installation only after reversal 89/45989/2
yair [Tue, 13 Sep 2016 09:00:56 +0000 (12:00 +0300)]
Bug 6628 - DMAC for L3 entities flows installation only after reversal

Will install router interface, router GW and floating IPs DMAC table flows
only when L2 is before L3 in the Netvirt pipeline.

Change-Id: Ibcb025ecf44811ce02259c1e1aaf4d32782ece16
Signed-off-by: yair <yair.zinger@hpe.com>
8 years agoMerge "aclservice-impl use infrautils AbstractLifecycle" into stable/boron
Sam Hague [Thu, 29 Sep 2016 13:56:02 +0000 (13:56 +0000)]
Merge "aclservice-impl use infrautils AbstractLifecycle" into stable/boron

8 years agoMerge "Bug-6741: eth1 flows on table 0 are missing from d2 ovs" into stable/boron
Sam Hague [Wed, 21 Sep 2016 19:10:38 +0000 (19:10 +0000)]
Merge "Bug-6741: eth1 flows on table 0 are missing from d2 ovs" into stable/boron

8 years agoMerge "Fix wiring issue in openstack.sfc-translator-impl" into stable/boron
Sam Hague [Wed, 21 Sep 2016 17:32:51 +0000 (17:32 +0000)]
Merge "Fix wiring issue in openstack.sfc-translator-impl" into stable/boron

8 years agoMerge "Bug 6707 - FIB table rules are not created when DPNTEPInfo is not available...
Andre Fredette [Wed, 21 Sep 2016 16:07:48 +0000 (16:07 +0000)]
Merge "Bug 6707 - FIB table rules are not created when DPNTEPInfo is not available" into stable/boron

8 years agoFix wiring issue in openstack.sfc-translator-impl 90/45990/1
Alexis de Talhouët [Sat, 17 Sep 2016 22:01:11 +0000 (18:01 -0400)]
Fix wiring issue in openstack.sfc-translator-impl

The bundle is pulling in the rpc-service RenderedServicePathService.
But in order to use it, we should use the odl-sfc-provider feature,
providing the implementation of this rpc-service, and also, registering
it in the OSGi service regisry.

Using the odl-sfc-model is exposing the class RenderedServicePathService
but don't register any implementation for this service in the OSGi
service registry.

Change-Id: I8b583bae9cdff7804b204d63ee88765a24679441
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoBug-6741: eth1 flows on table 0 are missing from d2 ovs 81/45981/1
Olga [Mon, 19 Sep 2016 04:39:41 +0000 (07:39 +0300)]
Bug-6741: eth1 flows on table 0 are missing from d2 ovs

Change-Id: Iaf5b6a7b8787c89af9d13d23059f15a56b72231e
Signed-off-by: Olga <olga.schukin@hpe.com>
8 years agoMerge "Bug 6732: ARP Replies Intermittent for Floating IP Addresses" into stable...
Sam Hague [Wed, 21 Sep 2016 14:23:37 +0000 (14:23 +0000)]
Merge "Bug 6732: ARP Replies Intermittent for Floating IP Addresses" into stable/boron

8 years agoMerge "Bug 6742 FloatingIPHanlder should use the external interface-name" into stable...
Sam Hague [Wed, 21 Sep 2016 14:22:20 +0000 (14:22 +0000)]
Merge "Bug 6742 FloatingIPHanlder should use the external interface-name" into stable/boron

8 years agoBug 6707 - FIB table rules are not created when DPNTEPInfo is not available 01/45901/2
Tali [Thu, 15 Sep 2016 12:00:30 +0000 (15:00 +0300)]
Bug 6707 - FIB table rules are not created when DPNTEPInfo is not available

When new TunnelEndPoint gets created, attempt to re-process
associated adjacencies that were skipped when the VM port
was initially broght up as the TEP was still missing

Change-Id: I67b0ce164dbcb6217bcbf0b16cd771e4249e0a4c
Signed-off-by: Tali <tali.ben-meir@hpe.com>
(cherry picked from commit a4e0e75c075c51f7bd846ad4ed4ba3aded11ee96)

8 years agoBug 6732: ARP Replies Intermittent for Floating IP Addresses 17/45917/2
Koby Aizer [Mon, 19 Sep 2016 21:15:51 +0000 (00:15 +0300)]
Bug 6732: ARP Replies Intermittent for Floating IP Addresses

Don't stop ARP responder logic in case there is an ARP cache entry
for targetIp.
Even though this cache entry should never exist for IPs that the ARP responder
is responsible for, there is no reason to stop the ARP request
processing because of that.

Change-Id: I392d9d9132350201e8d5761fe99c348223ea858d
Signed-off-by: Koby Aizer <koby.aizer@hpe.com>
8 years agoBug 6690 - when mixing dpdk & non-dpdk OVS with the same ODL 21/45921/2
Tali [Mon, 19 Sep 2016 12:01:56 +0000 (15:01 +0300)]
Bug 6690 - when mixing dpdk & non-dpdk OVS with the same ODL
no way to configure different datapath types

Change-Id: I0c23e8ecc4bc998a1694d1ca2196666264a43011
Signed-off-by: Tali <tali.ben-meir@hpe.com>
8 years agoBug 6742 FloatingIPHanlder should use the external interface-name 20/45920/4
Ravit Peretz [Sun, 18 Sep 2016 17:04:38 +0000 (20:04 +0300)]
Bug 6742 FloatingIPHanlder should use the external interface-name

Change-Id: I9fb58b26139afec6d09fa7792b7e94570804244d
Signed-off-by: Ravit Peretz <ravit.peretz@hpe.com>
(cherry picked from commit e8250b1cfe3e911ea6d1fdf194326295782a7af0)

8 years agoMerge "Bug 6752: DHCP service is not bound" into stable/boron
Sam Hague [Wed, 21 Sep 2016 12:51:39 +0000 (12:51 +0000)]
Merge "Bug 6752: DHCP service is not bound" into stable/boron

8 years agoMerge "Bug 6748: ACL mechanism uses reg5 instead of reg6." into stable/boron
Sam Hague [Wed, 21 Sep 2016 12:45:28 +0000 (12:45 +0000)]
Merge "Bug 6748: ACL mechanism uses reg5 instead of reg6." into stable/boron

8 years agoMerge "Bug 6756: Fix related to missing ACL flows" into stable/boron
Sam Hague [Wed, 21 Sep 2016 12:44:21 +0000 (12:44 +0000)]
Merge "Bug 6756: Fix related to missing ACL flows" into stable/boron

8 years agoMerge "Fixes default SG remote groups rules. 1))Remote default SG rules are not added...
Vishal Thapar [Wed, 21 Sep 2016 10:23:08 +0000 (10:23 +0000)]
Merge "Fixes default SG remote groups rules. 1))Remote default SG rules are not added with Ip addres asn same is fixed 2)Flow id is fixed for ipv4 and ipv6 rules." into stable/boron

8 years agoBug 6756: Fix related to missing ACL flows 57/45957/1
Somashekar Byrappa [Tue, 20 Sep 2016 13:37:28 +0000 (19:07 +0530)]
Bug 6756: Fix related to missing ACL flows

When two SG's having common rules are swapped for a VM, ACL flows related
to common rules were missing.

Fix:
+ When SG's having common rules are swapped for a VM, delete the flows
related to previous SG and then add flows related to new SG instead of the
reverse order.

+ Fixed a NPE in AclInterfaceCacheUtil.

Change-Id: Ifdb3139b737ec53cd75378851593d0b096efedc1
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
8 years agoMerge "aclservice AclInterfaceStateListener update() TODO replace with comment" into...
Sam Hague [Wed, 21 Sep 2016 01:13:49 +0000 (01:13 +0000)]
Merge "aclservice AclInterfaceStateListener update() TODO replace with comment" into stable/boron

8 years agoBug 6748: ACL mechanism uses reg5 instead of reg6. 19/45919/1
Tomer [Mon, 19 Sep 2016 14:53:06 +0000 (17:53 +0300)]
Bug 6748: ACL mechanism uses reg5 instead of reg6.

Also, removed match on MACs in learned flows

Change-Id: I7d686532abe60585c7f4294c27da044716127cb0
Signed-off-by: Tomer <tomer.pearl@hpe.com>
8 years agoFixes default SG remote groups rules. 15/45915/1
Aswin Suryanarayanan [Fri, 9 Sep 2016 07:49:49 +0000 (13:19 +0530)]
Fixes default SG remote groups rules.
1))Remote default SG rules are not added with Ip addres asn same is
fixed
2)Flow id is fixed for ipv4 and ipv6 rules.

Change-Id: Ibe61e3b218cf51a9da1f6118f23591de4ded113d
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
8 years agoBug 6752: DHCP service is not bound 71/45871/1
Kency Kurian [Tue, 20 Sep 2016 07:30:18 +0000 (13:00 +0530)]
Bug 6752: DHCP service is not bound

After making the changes in genius for ACL as highest priority both ACL
and DHCP were sharing the same service index because of which the service
was not getting bound.

Fixed this by making use of the service index provided in NwConstants.

Change-Id: I7a110ce0d454bc33c2f7e8c00690a4e800178ab1
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
8 years agoaclservice-impl use infrautils AbstractLifecycle 24/45424/2
Michael Vorburger [Tue, 6 Sep 2016 15:43:50 +0000 (17:43 +0200)]
aclservice-impl use infrautils AbstractLifecycle

and do NOT use (repeat) @PostConstruct and @PreDestroy - they are on
AbstractLifecycle, which does correct exception handling etc.

Based on https://git.opendaylight.org/gerrit/#/c/44554/ &
https://git.opendaylight.org/gerrit/#/c/45248/ (follow-up); on which
this is dependent.

Also includes fixed up features.xml in line with above.

I've manually tested this in Karaf and made sure BP (diag) is OK.

Change-Id: I4fbc088fee359b74d9d47b89bb441cdeaecc2f84
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
(cherry picked from commit 4c93877c4e34a10a969c224d46e93f5fe1ae5b22)

8 years agoBUG 6452: Error logs when deleting neutron network 16/45616/4
epgoraj [Thu, 15 Sep 2016 06:01:14 +0000 (11:31 +0530)]
BUG 6452: Error logs when deleting neutron network

Change-Id: Id3448e93d3dd0f8bcea83a178e6abe81de75a8da
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
8 years agoaclservice AclInterfaceStateListener update() TODO replace with comment 63/45763/1
Michael Vorburger [Tue, 6 Sep 2016 10:26:58 +0000 (12:26 +0200)]
aclservice AclInterfaceStateListener update() TODO replace with comment

Change-Id: Ic3bd87e29e35b9d424c5fcfefed43fc88cc0bd1d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
(cherry picked from commit 3754686eba6045589371ad429eaa1dec80e7b2e6)

8 years agoMerge "Bug 6688 - Patch port is not correctly associated to ELAN" into stable/boron
Vishal Thapar [Sat, 17 Sep 2016 14:27:11 +0000 (14:27 +0000)]
Merge "Bug 6688 - Patch port is not correctly associated to ELAN" into stable/boron

8 years agoMerge "Bug 6677: Create ext-routers when a router is created with ext-gw" into stable...
Vishal Thapar [Sat, 17 Sep 2016 14:26:28 +0000 (14:26 +0000)]
Merge "Bug 6677: Create ext-routers when a router is created with ext-gw" into stable/boron

8 years agoMerge "Bug 6687: Fix NPE when updating ExternalNetwork" into stable/boron
Vishal Thapar [Sat, 17 Sep 2016 14:26:07 +0000 (14:26 +0000)]
Merge "Bug 6687: Fix NPE when updating ExternalNetwork" into stable/boron

8 years agoMerge "Code for myMAC in the L3VPN pipeline" into stable/boron
Vishal Thapar [Sat, 17 Sep 2016 14:25:47 +0000 (14:25 +0000)]
Merge "Code for myMAC in the L3VPN pipeline" into stable/boron

8 years agoMerge "Bug 6628 - Handling missing router entities DMAC table flows" into stable...
Vishal Thapar [Sat, 17 Sep 2016 14:25:30 +0000 (14:25 +0000)]
Merge "Bug 6628 - Handling missing router entities DMAC table flows" into stable/boron

8 years agoMerge "Bug 6609: when 2 vm belonging to the same NETWORK/SUBNET get created in differ...
Vishal Thapar [Fri, 16 Sep 2016 14:48:46 +0000 (14:48 +0000)]
Merge "Bug 6609: when 2 vm belonging to the same NETWORK/SUBNET get created in different COMOUTE NODE - ping between those 2 did not work" into stable/boron

8 years agoMerge "Support multiple routers per external GW" into stable/boron
Vishal Thapar [Fri, 16 Sep 2016 14:48:07 +0000 (14:48 +0000)]
Merge "Support multiple routers per external GW" into stable/boron

8 years agoMerge "Fix bad design of AclClusterUtil to make it pluggable for e2e tests" into...
Vishal Thapar [Fri, 16 Sep 2016 14:47:11 +0000 (14:47 +0000)]
Merge "Fix bad design of AclClusterUtil to make it pluggable for e2e tests" into stable/boron

8 years agoMerge "Bug 6666: Making sure no 0 datapathID is used when adding interfaces to the...
Vishal Thapar [Fri, 16 Sep 2016 14:45:27 +0000 (14:45 +0000)]
Merge "Bug 6666: Making sure no 0 datapathID is used when adding interfaces to the model, and when the node updated with the datapathID, create the relevant interfaces" into stable/boron

8 years agoBumping versions by 0.0.1 for next dev cycle 26/45726/1
Anil Belur [Fri, 16 Sep 2016 11:40:59 +0000 (21:40 +1000)]
Bumping versions by 0.0.1 for next dev cycle

Change-Id: Ie3881039c368b1f5f60d1a1a9003f291f2e3ef86
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
8 years agoBug 6677: Create ext-routers when a router is created with ext-gw 11/45511/1
Koby Aizer [Sat, 10 Sep 2016 09:52:23 +0000 (12:52 +0300)]
Bug 6677: Create ext-routers when a router is created with ext-gw

When a router is created with an External Network, no ext-routers entry
is created. This flow is used by horizon & several tempest tests.

Change-Id: I33d520a24db1c6f455c98213e31e081c8c8509e9
Signed-off-by: Koby Aizer <koby.aizer@hpe.com>
8 years agoBug 6687: Fix NPE when updating ExternalNetwork 10/45510/1
Koby Aizer [Sat, 10 Sep 2016 09:29:33 +0000 (12:29 +0300)]
Bug 6687: Fix NPE when updating ExternalNetwork

Happens when there are routers which are not associated with
a DPN yet.

Change-Id: I80f25439484d2e8c9f813826bec880a406421ee2
Signed-off-by: Koby Aizer <koby.aizer@hpe.com>
8 years agoBug 6688 - Patch port is not correctly associated to ELAN 09/45509/1
Tali [Sun, 11 Sep 2016 11:27:13 +0000 (14:27 +0300)]
Bug 6688 - Patch port is not correctly associated to ELAN

Change-Id: Iaa96881879ea1fc32dfa3001abd45bbb0595ce91
Signed-off-by: Tali <tali.ben-meir@hpe.com>
8 years agoCode for myMAC in the L3VPN pipeline 06/45506/1
eceghkl [Mon, 29 Aug 2016 11:17:56 +0000 (16:47 +0530)]
Code for myMAC in the L3VPN pipeline

Code to program the L3_GW_MAC_TABLE.

Change-Id: I02252a9904c24c8ff37338b4b52cef49e73e9382
Signed-off-by: eceghkl <manu.b@ericsson.com>
8 years agoBug 6666: Making sure no 0 datapathID is used when adding interfaces to the model... 79/45379/1
Tomer [Wed, 7 Sep 2016 13:38:19 +0000 (16:38 +0300)]
Bug 6666: Making sure no 0 datapathID is used when adding interfaces to the model, and when the node updated with the datapathID, create the relevant interfaces

Change-Id: I213afac94544dc4e806cb684fc12126e358747b3
Signed-off-by: Tomer <tomer.pearl@hpe.com>
(cherry picked from commit 63056c5d9b18fc030b26c5c810172ea6302ae297)

8 years agoBug 6628 - Handling missing router entities DMAC table flows 74/45374/1
yair [Thu, 1 Sep 2016 11:11:56 +0000 (14:11 +0300)]
Bug 6628 - Handling missing router entities DMAC table flows

This is part of the L2 L3 pipeline reversal.

Change-Id: If91c3cf3a06ddfb5dbf1317fc8dea0a72616e25f
Signed-off-by: yair <yair.zinger@hpe.com>
8 years agoSupport multiple routers per external GW 73/45373/1
Koby Aizer [Thu, 1 Sep 2016 10:23:47 +0000 (13:23 +0300)]
Support multiple routers per external GW

Was finally able to see the basic tempest scenario test
passing with this patch! (with a small tempest workaround
to disable ping to router interface, which is currently not
supported in netvirt)

It includes the following changes:
 * Create a vpninstance (with a new vpnId) for the neutron external network
 * Associate the external interface with that vpninstance
 * Partially revert changes done in [1] & [2], to make sure external
   floating IP & NAT rules are associated with the new vpnId
 * Fix ExternalNetworkGroupInstaller to look for the gateway IP in the
   under the new vpnId. Also do some refactoring to allow better debug messages
   for ARP resolving.
   Also, drop traffic sent to external gw traffic if its mac is not resolved (Bug 6653)

This code leverages current implementation of NAT tables to translate external vpnId
to internal vpnIds for specific floating / PNAT IPs.

[1] https://git.opendaylight.org/gerrit/#/c/43303/
[2] https://git.opendaylight.org/gerrit/#/c/43102/

Change-Id: I8d3019389d7fe6fc923a509082e7a13d61a91444
Signed-off-by: Koby Aizer <koby.aizer@hpe.com>
8 years agoFix bad design of AclClusterUtil to make it pluggable for e2e tests 72/45372/1
Michael Vorburger [Fri, 2 Sep 2016 16:48:16 +0000 (18:48 +0200)]
Fix bad design of AclClusterUtil to make it pluggable for e2e tests

Having AclClusterUtil as a "Bean" with a @PostContruct start() method
but then a static method (isEntityOwner()) which relies on that start()
is bad design - it's either static or it's not, not half-half.  It's
better not be static, and have an interface; this way the (upcoming)
end-to-end AclServiceTest can easily plug in an "always true"
implementation.

Change-Id: Ia2c07ba1cfc5b7447fcd10ad88e1008fca3df35f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
(cherry picked from commit cc82e251a77ad76659036a9bb57516539dd17cef)

8 years agoBug 6609: when 2 vm belonging to the same NETWORK/SUBNET get created in different... 61/45361/1
Gobinath [Thu, 1 Sep 2016 12:59:07 +0000 (18:29 +0530)]
Bug 6609: when 2 vm belonging to the same NETWORK/SUBNET get created in different COMOUTE NODE - ping between those 2 did not work

Fix for avoiding race condition while programming remote BC
group in participating DPNs. With earlier code, there was a chance of this
group getting overwritten by another thread

Change-Id: I09ae213c69ae971011661e713aaa92788eec1ea7
Signed-off-by: Gobinath <gobinath@ericsson.com>
8 years agoMerge "Bug 6623: Fix NPE in AclServiceUtils" into stable/boron
Sam Hague [Fri, 2 Sep 2016 19:22:00 +0000 (19:22 +0000)]
Merge "Bug 6623: Fix NPE in AclServiceUtils" into stable/boron

8 years agoBug 6623: Fix NPE in AclServiceUtils 65/45065/2
Sridhar Gaddam [Fri, 2 Sep 2016 11:35:30 +0000 (17:05 +0530)]
Bug 6623: Fix NPE in AclServiceUtils

This patch fixes couple of exceptions when an IPv6 address
is present in allowed_address_pairs.

Change-Id: If0660b299500b7c00609d97484ea42961bb73dd9
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
8 years agoFixes Bug 6624 06/45106/1
Aswin Suryanarayanan [Fri, 2 Sep 2016 13:12:07 +0000 (18:42 +0530)]
Fixes Bug 6624

Null check is added for dpid and aclUuidList.

Change-Id: Ib11bcd599474d474ee8157d44249d0e82484363b
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
8 years agoMerge "Fix Checkstyle violations related to exception handling in elanmanager." into...
Sam Hague [Thu, 1 Sep 2016 22:40:28 +0000 (22:40 +0000)]
Merge "Fix Checkstyle violations related to exception handling in elanmanager." into stable/boron

8 years agoFix Checkstyle violations related to exception handling in elanmanager. 39/45039/2
Michael Vorburger [Mon, 29 Aug 2016 12:07:07 +0000 (14:07 +0200)]
Fix Checkstyle violations related to exception handling in elanmanager.

read
https://wiki.opendaylight.org/view/BestPractices/Coding_Guidelines#IllegalCatch

This change also includes a few additional non-Exception handling
related minor Checkstyle fixes, and can now enable enforcement of
Checkstyle for elanmanager.  (This is not directly related to the
exception handling fixes, but those were simply the last Checkstyle
violations left, and in order to ensure future non-regression, we can
now, finally, enable enforcement.)

Change-Id: If233f3d856b2f5402ef551f8ceceb242376b671c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoFix NPE and other exceptions 40/45040/1
Sam Hague [Thu, 1 Sep 2016 20:32:54 +0000 (16:32 -0400)]
Fix NPE and other exceptions

Change-Id: I691c475c6d032e543d741872afee7bbe8ec0c0ea
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdd config for neutronvpn 30/45030/1
Sam Hague [Thu, 1 Sep 2016 18:12:38 +0000 (14:12 -0400)]
Add config for neutronvpn

Change-Id: I63945c786808a93a8c825ee4862eb8f76cc7593c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Use right docker instance" into stable/boron
Sam Hague [Thu, 1 Sep 2016 18:38:33 +0000 (18:38 +0000)]
Merge "Use right docker instance" into stable/boron

8 years agoMerge "Bug 6614: Fix NPE in AclInterfaceCacheUtil" into stable/boron
Sam Hague [Thu, 1 Sep 2016 18:24:23 +0000 (18:24 +0000)]
Merge "Bug 6614: Fix NPE in AclInterfaceCacheUtil" into stable/boron

8 years agoMerge "Fix FloatingIp add GARP handling" into stable/boron
Sam Hague [Thu, 1 Sep 2016 18:21:48 +0000 (18:21 +0000)]
Merge "Fix FloatingIp add GARP handling" into stable/boron

8 years agoUse right docker instance 07/45007/3
Sam Hague [Thu, 1 Sep 2016 13:03:32 +0000 (09:03 -0400)]
Use right docker instance

Change-Id: Id30c7034674fdf08557a8fccd63a37b7b4fa1fed
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBug 6608: Solve TZ name mismatch 16/45016/1
Slava [Thu, 1 Sep 2016 12:10:44 +0000 (15:10 +0300)]
Bug 6608: Solve TZ name mismatch

Change-Id: I1d567bec97773a44ce16f1127b4ee43bdb0cf1c5
Signed-off-by: Slava <slava.radune@hpe.com>
8 years agoBug 6614: Fix NPE in AclInterfaceCacheUtil 13/45013/1
Sridhar Gaddam [Thu, 1 Sep 2016 15:24:12 +0000 (20:54 +0530)]
Bug 6614: Fix NPE in AclInterfaceCacheUtil

Change-Id: I9337c8fb2beffb6e5b07d186974c75a3ec25740f
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoFix FloatingIp add GARP handling 90/44990/4
Ravit Peretz [Wed, 31 Aug 2016 15:49:20 +0000 (18:49 +0300)]
Fix FloatingIp add GARP handling

Consolidate VpnFloatingIPHanlder
Send GARP only for VM OVS
Reuse SendArpRequestInput
Change-Id: I0ff992d3175470163a77f4f216c5febeeb6b53a3
Signed-off-by: Ravit Peretz <ravit.peretz@hpe.com>
8 years agoMerge "BUG 6598 listen to a change on BridgeRefEntry" into stable/boron
Sam Hague [Thu, 1 Sep 2016 14:02:52 +0000 (14:02 +0000)]
Merge "BUG 6598 listen to a change on BridgeRefEntry" into stable/boron

8 years agoMerge "Fix NPE when updating vpnInterface" into stable/boron
Sam Hague [Thu, 1 Sep 2016 14:01:32 +0000 (14:01 +0000)]
Merge "Fix NPE when updating vpnInterface" into stable/boron

8 years agoMerge "Fix DMAC flows for Vlan E/W provider" into stable/boron
Sam Hague [Thu, 1 Sep 2016 14:01:02 +0000 (14:01 +0000)]
Merge "Fix DMAC flows for Vlan E/W provider" into stable/boron

8 years agoFix NPE when updating vpnInterface 92/44992/1
Koby Aizer [Wed, 24 Aug 2016 22:40:49 +0000 (01:40 +0300)]
Fix NPE when updating vpnInterface

Change-Id: Ib7c3a8ab804947d018fc21c2fedcbf8894346c03
Signed-off-by: Koby Aizer <koby.aizer@hpe.com>
8 years agoBUG 6598 listen to a change on BridgeRefEntry 67/44967/2
Shlomi [Wed, 31 Aug 2016 22:16:08 +0000 (01:16 +0300)]
BUG 6598 listen to a change on BridgeRefEntry

in cases a bridge is created without dpnId the creation of TZ fails. we need to re-try when the entry is updated.

Change-Id: Ifc808b8895911df69703adf4122828a7056a0d6e
Signed-off-by: Shlomi <shlomi.alfasi@hpe.com>
8 years agoBUG: 6582 copying DHCP service config file to etc/..config 89/44989/2
epgoraj [Wed, 31 Aug 2016 09:50:38 +0000 (15:20 +0530)]
BUG: 6582 copying DHCP service config file to etc/..config

cherry-picked from Icaf6e9e9f18f70b74d98dcfbbbc6ba2b5f0531ad

Change-Id: Iec72489b4c8c38703524608af7dc116680b9fd6d
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Revert "BUG: 6582 copying DHCP service config file to etc/..config"" into...
Sam Hague [Thu, 1 Sep 2016 11:09:56 +0000 (11:09 +0000)]
Merge "Revert "BUG: 6582 copying DHCP service config file to etc/..config"" into stable/boron

8 years agoRevert "BUG: 6582 copying DHCP service config file to etc/..config" 87/44987/1
Sam Hague [Thu, 1 Sep 2016 11:07:29 +0000 (11:07 +0000)]
Revert "BUG: 6582 copying DHCP service config file to etc/..config"

This reverts commit 3fe4cd801dbd0305d82502be19fe7f76e86f499b.

Change-Id: I7410bdf98cd76e4ca4d1f14dd137167d195f32e3
Author: Sam Hague <shague@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agofix security groups IT 69/44969/1
Sam Hague [Thu, 1 Sep 2016 00:54:03 +0000 (20:54 -0400)]
fix security groups IT

Change-Id: I6cb9b226ed15241cb206e412352e9af02ef5a766
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "BUG: 6582 copying DHCP service config file to etc/..config" into stable/boron
Sam Hague [Thu, 1 Sep 2016 00:27:21 +0000 (00:27 +0000)]
Merge "BUG: 6582 copying DHCP service config file to etc/..config" into stable/boron

8 years agoMerge "Bug 6592: Adding output to group of external network when using NAPT" into...
Sam Hague [Thu, 1 Sep 2016 00:26:52 +0000 (00:26 +0000)]
Merge "Bug 6592: Adding output to group of external network when using NAPT" into stable/boron

8 years agoMerge "Bug 6509 - External network group tables removal is not working - indirect...
Sam Hague [Wed, 31 Aug 2016 20:11:59 +0000 (20:11 +0000)]
Merge "Bug 6509 - External network group tables removal is not working - indirect type" into stable/boron

8 years agoBug 6592: Adding output to group of external network when using NAPT 22/44922/2
Tomer [Mon, 29 Aug 2016 09:33:44 +0000 (12:33 +0300)]
Bug 6592: Adding output to group of external network when using NAPT

https://bugs.opendaylight.org/show_bug.cgi?id=6592

Change-Id: I40b40f5f65c177b3a77a3206c95a4720ed0e66de
Signed-off-by: Tomer <tomer.pearl@hpe.com>
8 years agoFix DMAC flows for Vlan E/W provider 50/44950/2
Josh [Wed, 24 Aug 2016 18:30:09 +0000 (20:30 +0200)]
Fix DMAC flows for Vlan E/W provider

This fix addresses two bugs related only in that
they both prevent vlan provider networks from
working:

1) Wrong (remote) dmac flows generated for Vlan provider networks
https://bugs.opendaylight.org/show_bug.cgi?id=6583

2) Mac learning in vlan provider networks clobbers static flows with wrong flows
https://bugs.opendaylight.org/show_bug.cgi?id=6584

The fix for the (1) is to test if the net is
of type vlan and then retrieve the correct action.

The fix for (2) is to simply disable configuration
of remote dmac flows when the interface from whence
entered the unknown smac is a vlan or flat network
provider interface.

Change-Id: Id3431e94d96dac5230679fcb70fe0a79efbd96a4
Signed-off-by: Josh <jhershbe@redhat.com>
8 years agoReduce IPv6 Periodic Unsolicited RA timer interval 56/44956/1
Sridhar Gaddam [Wed, 31 Aug 2016 17:32:04 +0000 (23:02 +0530)]
Reduce IPv6 Periodic Unsolicited RA timer interval

In some situations it was noticed that flow programming is taking
some time. Due to this, the Router Soliciation requests from the
VMs are not punted to the controller (VMs are able to acquire IPv6
address only upon arrival of unsolicited Router Advts from the ODL
controller). Currently the periodic unsolicited RA interval is set
to 5 mins. This patch reduces the interval to 60 seconds to mitgate
such situations.

In a future patch, we would enhance the periodic RA interval to an
updated algorithm which will provide a better user experience.

Change-Id: I2eb4061b487cfa709ef02b7d093481799294adb3
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
8 years agoMerge "BUG: 6569 Exceptions thrown while removing mac-entries" into stable/boron
Sam Hague [Wed, 31 Aug 2016 16:26:10 +0000 (16:26 +0000)]
Merge "BUG: 6569 Exceptions thrown while removing mac-entries" into stable/boron

8 years agoMerge "aclservice Java @Inject etc. instead of XML for "inner" wiring" into stable...
Sam Hague [Wed, 31 Aug 2016 16:23:53 +0000 (16:23 +0000)]
Merge "aclservice Java @Inject etc. instead of XML for "inner" wiring" into stable/boron

8 years agoBug 6509 - External network group tables removal is not working - indirect type 23/44923/1
yair [Wed, 31 Aug 2016 09:10:31 +0000 (12:10 +0300)]
Bug 6509 - External network group tables removal is not working - indirect type

Change external network group tables type to All instead of Indirect

This is a workaround fix to the 6509
https://bugs.opendaylight.org/show_bug.cgi?id=6509
The real cause for the bug will be solve in Openflowplugin in the future
https://bugs.opendaylight.org/show_bug.cgi?id=6492

Change-Id: I8bb48a644e6d815f1fe52588aef6ddc668df4956
Signed-off-by: yair <yair.zinger@hpe.com>
8 years agoBUG: 6582 copying DHCP service config file to etc/..config 15/44915/1
epgoraj [Wed, 31 Aug 2016 09:50:38 +0000 (15:20 +0530)]
BUG: 6582 copying DHCP service config file to etc/..config

Change-Id: Icaf6e9e9f18f70b74d98dcfbbbc6ba2b5f0531ad
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
8 years agoBUG: 6569 Exceptions thrown while removing mac-entries 14/44914/1
epgoraj [Wed, 31 Aug 2016 09:41:53 +0000 (15:11 +0530)]
BUG: 6569 Exceptions thrown while removing mac-entries

Change-Id: I40b3ad8865994f9481dedff3c14074dc55c9db9e
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
8 years agoFixes the SSH drop from DHCP namespace 86/44886/1
Aswin Suryanarayanan [Tue, 30 Aug 2016 16:59:17 +0000 (22:29 +0530)]
Fixes the SSH drop from DHCP namespace

1)Changed netvirt neutron DCL to match the neutron object
representation.

2)Changed the TCP_SYN rule per to make it per port. Added IPv6 SYN drop
rule.

Change-Id: I94cef12de99f87b156e54cc07d7ea135a1549522
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
8 years agoMerge "correct default prootcol handling in stateless ACL" into stable/boron
Sam Hague [Tue, 30 Aug 2016 21:12:12 +0000 (21:12 +0000)]
Merge "correct default prootcol handling in stateless ACL" into stable/boron

8 years agoaclservice Java @Inject etc. instead of XML for "inner" wiring 74/44874/1
Michael Vorburger [Fri, 19 Aug 2016 16:50:13 +0000 (18:50 +0200)]
aclservice Java @Inject etc. instead of XML for "inner" wiring

Some of the painfully hand-written, and often wrong and
out-of-sync with code, ODL Blueprint XML can be automatically generated
by the blueprint-maven-plugin from annotations in Java code.

This has two main advantages: 1. less XML to hand write (wrong
sometimes), and maintain;  2. easy to get a DI framework (blueprint or
another one..) to inject classes - great e.g. for more upcoming end2end
style tests.

Change-Id: Ifb86b00de680bec8ca494519225a55a7a1e6fbb1
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBug 6559: Create TZ for routed networks 73/44873/1
Slava [Tue, 30 Aug 2016 10:15:44 +0000 (13:15 +0300)]
Bug 6559: Create TZ for routed networks

Change-Id: Id3fda9454b5c73aaa6c5de696036309a8cc0f53b
Signed-off-by: Slava <slava.radune@hpe.com>
8 years agocorrect default prootcol handling in stateless ACL 72/44872/1
Slava [Thu, 25 Aug 2016 12:25:39 +0000 (15:25 +0300)]
correct default prootcol handling in stateless ACL

Change-Id: I0f87bfc77bd8c2d44fb4f8c522486779138a9df2
Signed-off-by: Slava <slava.radune@hpe.com>
8 years agoMerge "Fixed the use of index NwConstants" into stable/boron
Sam Hague [Tue, 30 Aug 2016 16:23:54 +0000 (16:23 +0000)]
Merge "Fixed the use of index NwConstants" into stable/boron

8 years agoBug 6486: add security-group-mode options 54/44854/1
Sam Hague [Mon, 29 Aug 2016 21:30:15 +0000 (17:30 -0400)]
Bug 6486: add security-group-mode options

Change-Id: I62d46b4fec6f2e406b319972a068671647330477
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoFixed the use of index NwConstants 53/44853/1
yair [Thu, 25 Aug 2016 09:52:16 +0000 (12:52 +0300)]
Fixed the use of index NwConstants

There was a change to support L2 before L3
https://git.opendaylight.org/gerrit/#/c/43126/
Change the use of constnats to the new way of work

Change-Id: I493e80fac8c49d667cf7d9a498d0f7a82892b687
Signed-off-by: yair <yair.zinger@hpe.com>
8 years agoMerge "Fix Checkstyle violations (formatting only, no real changes)" into stable...
Sam Hague [Tue, 30 Aug 2016 12:39:40 +0000 (12:39 +0000)]
Merge "Fix Checkstyle violations (formatting only, no real changes)" into stable/boron