netvirt.git
6 years agoBug 8811 : BGP Manager / bgp-nbr shell config with afi vpnv6 / evpn 60/60060/4
Philippe Guibert [Thu, 6 Jul 2017 14:39:53 +0000 (15:39 +0100)]
Bug 8811 : BGP Manager / bgp-nbr shell config with afi vpnv6 / evpn

This commit brings some changes related to VPNv6 and EVPN capabilities,
since it is becoming possible to create neighbours with  VPNv6 or EVPN.

Change-Id: I821475d5d44790fb8ec0f86b6eb3a4d4577f1e57
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agoBug 8818 : BGP Manager. VPNv6 prefixes injected to QBGP 61/60061/4
Philippe Guibert [Fri, 7 Jul 2017 08:09:41 +0000 (09:09 +0100)]
Bug 8818 : BGP Manager. VPNv6 prefixes injected to QBGP

This issue is related to VPNv6 prefixes under the format prefix/length.
Indeed, the prefix/length format is not recognized by bgp manager when
analysing the prefix. Then it fails and considers it as IPv4.
Subsequently, an inconsistency is detected by QBGP, and it is rejected.
The fix consists in striping the length part so that the prefix can be
analysed correctly.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Change-Id: Ic396fe795eb6704c92b099c74631c96774034427

6 years agoBUG 8868: Override the Aries Blueprint Maven plugin configuration 56/60556/1
David Suarez [Wed, 19 Jul 2017 09:28:11 +0000 (11:28 +0200)]
BUG 8868: Override the Aries Blueprint Maven plugin configuration

Override the Aries Blueprint Maven plugin configuration inherited from
odlparent to specify a more restrictive scanPath avoiding the generation
of spurius references in the autowire.xml files that force the SFT to
fail.

This fix will allow [1] to pass enabling again the SFC feature in
Netvirt.

[1] https://git.opendaylight.org/gerrit/#/c/60480/

Change-Id: Iee51511050995fae055dc4c9c39347693bc964b2
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoBug 8822 : Bgp Manager / bgp-cache dumps unknown address-families 74/60074/2
Philippe Guibert [Fri, 7 Jul 2017 13:55:38 +0000 (14:55 +0100)]
Bug 8822 : Bgp Manager / bgp-cache dumps unknown address-families

The fix consists in parsing the various afi/safis of neighbour contained
in address-family list, and identify as VPNv6 or EVPN address-families.

Change-Id: Ifffa01aef4f6f8e27b6750d1c7dde6c3bca8e008
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agoBug 8770: Stale NAT entries are not getting removed for external FLAT 08/59908/8
karthikeyan [Tue, 4 Jul 2017 04:30:51 +0000 (10:00 +0530)]
Bug 8770: Stale NAT entries are not getting removed for external FLAT

Problem Description:
=====================
Stale NAT entries are not getting removed for external FLAT/VLAN network
on following flows

Stale FIB Entry =>L3_FIB_TABLE(21)-> INBOUND_NAPT_TABLE(44)
Stale Tunnel Entry =>INTERNAL_TUNNEL_TABLE(36)-> OUTBOUND_NAPT_TABLE(46)
Stale LFIB Entry =>NAPT_PFIB_TABLE(47)->L3_FIB_TABLE(21)

Solution:
=============
As part of hairpinning feature support, external vpn name was generated
from external-subnet Id instead of external-network Id. To accomplish this
changes have done the changes in all the places to install and remove the
NAT related flows for external FLAT/VLAN use cases.

Change-Id: I0bd0c79ca638cf6664eaa4237334c6524f2d2c1f
Signed-off-by: karthikeyan <karthikeyan.k@altencalsoftlabs.com>
6 years agoSpec to support dualstack VMs in L3VPN 89/54089/44
Philippe Guibert [Thu, 30 Mar 2017 09:51:16 +0000 (10:51 +0100)]
Spec to support dualstack VMs in L3VPN

This specification brings the ability for a BGPVPN configured VPN to
distribute IPv4 and IPv6 addresses within the same VPN, and by using two
distinct routers to respectively handle IPv4 and IPv6 routing issues.

Change-Id: Ia46965797d35a3493b3065c6725aea1501f3941f
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agonatservice-impl: propagate upstream non-null annotations 30/60030/3
Stephen Kitt [Thu, 6 Jul 2017 15:04:35 +0000 (17:04 +0200)]
natservice-impl: propagate upstream non-null annotations

Change-Id: I458244f842dd1266ae8560032151f6f8224b79ba
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoAdd a private constructor to this utility class 32/60432/1
David Suarez [Sun, 16 Jul 2017 14:26:03 +0000 (16:26 +0200)]
Add a private constructor to this utility class

Add a private constructor to this utility class so that it cannot be
instantiated.

Change-Id: Iba69fb65160e8fd905c477cec8c89f4d59c1c538
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoBug 8835: Java NullPointerException in display-bgp-config command 98/60198/2
Siva Kumar Perumalla [Tue, 11 Jul 2017 17:32:34 +0000 (23:02 +0530)]
Bug 8835: Java NullPointerException in display-bgp-config command

Change-Id: I8df4de8620c1147d4d9f30152339e2db840f5787
Signed-off-by: Siva Kumar Perumalla <sivakumar.perumalla@ericsson.com>
6 years agoBug 8567: Addition of new flows after addng extra route 23/60423/1
eswanit [Tue, 11 Jul 2017 16:59:59 +0000 (22:29 +0530)]
Bug 8567: Addition of new flows after addng extra route

  When the extra routes are configured on VMs, ping between
  them works and these extra route IP entries appear in list
  of adjacencies and new flows are added in table 21.

  This is fixed by adding a check of, if an extra route IP
  is present in any of the adjacencies' listed subnets,
  then do not execute ProcessArpLearning.

Change-Id: I49f691b48b7f838bdc42d14ee81daff1e96d7e16
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
6 years agoNew Yang model container for Neutron DHCP Port service. 49/60249/5
Achuth Maniyedath [Wed, 12 Jul 2017 13:55:54 +0000 (19:25 +0530)]
New Yang model container for Neutron DHCP Port service.
Updated spec with correct yang.

Change-Id: I8ee02c72db01dcb840683584a1bacc24f20448c9
Signed-off-by: Achuth Maniyedath <achuth.m@altencalsoftlabs.com>
6 years agoEnforce non-null collection returns in NatUtil 27/60027/4
Stephen Kitt [Thu, 6 Jul 2017 14:27:53 +0000 (16:27 +0200)]
Enforce non-null collection returns in NatUtil

Collection-returning methods shouldn’t return null; this fixes
NatUtils appropriately and propagates the non-null guarantees.

Change-Id: Ibf7a1c87ba37098df1abb1d1dbbd8517a9c7e454
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoBug 8844: CSIT Job: NullPointerException from NAT feature 29/60229/3
karthikeyan [Wed, 12 Jul 2017 06:53:35 +0000 (12:23 +0530)]
Bug 8844: CSIT Job: NullPointerException from NAT feature

Problem Description:
====================
Retrieving router-name from router-id NAT DS
"odl-nat/router-id-name/routerIds" sometimes returning with empty as
resulting Nullpointer exceptions are been thrown from NAT module. Since
there is no check to handle for null values.

Solution:
============
As part of fixing this Nullpointer exception, we have added the
appropriate check to validate the null values in cll the aller methods.

Change-Id: I6b7b057632fb430ae61af00a31a212684edb1e9a
Signed-off-by: karthikeyan <karthikeyan.k@altencalsoftlabs.com>
6 years agoSNAT performance improvement for Controller-Based SNAT 02/59602/4
cgowdru [Wed, 28 Jun 2017 09:10:10 +0000 (14:40 +0530)]
SNAT performance improvement for Controller-Based SNAT

Description : Updated log statements and reduced number of retry
threads required for processing.

Change-Id: I41a4d03088efbe2c8c2e5c000e68b665c215453e
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
6 years agoRevert "Ship aaa-cli-jar.jar in the distribution" 22/60422/2
Sam Hague [Sat, 15 Jul 2017 04:11:17 +0000 (04:11 +0000)]
Revert "Ship aaa-cli-jar.jar in the distribution"

This reverts commit c73a81ee42819e885c9f90ecf02d078649ab182e.

Change-Id: I596c13a7ff3a93f7bf4c61bf101881aa284f48aa
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agotemp rm netvirt-sfc feature while sfc is busted 11/60411/1
Sam Hague [Sat, 15 Jul 2017 00:24:06 +0000 (20:24 -0400)]
temp rm netvirt-sfc feature while sfc is busted

Change-Id: I84df385e3253573cc3664a424c1a445d3f2e2cfe
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoBug 8796: Fix of issue that vxlan port is created with remote_ip set to the node... 09/60409/1
kaoru sueda [Fri, 14 Jul 2017 05:48:34 +0000 (14:48 +0900)]
Bug 8796: Fix of issue that vxlan port is created with remote_ip set to the node itself

Issue:
  If start L2GW node (Open vSwitch HWVTEP emulator) without setting HA
  configuration and create L2GW GATEWAY and L2GW CONNECTION, after
  update (set) HA configuration for this L2GW Node, vxlan port which
  its remote_ip is set to the node itself will be created.

Cause of this issue:
  If there are multiple tep ips of the node itself in the tep ip list
  which is generated from L2GW devices information,
  the information of the node itself will be set in RemoteMcastMac.

Fix:
  Do not add the node information to tep ip list if the same tep ip
  exists in the list which is generated from L2GW devices information.

Change-Id: I8ca27a32248a9439a1f9d56077d6071fe4de30ac
Signed-off-by: kaoru sueda <k-sueda@zj.nes.jp.nec.com>
6 years agoShip aaa-cli-jar.jar in the distribution 93/60293/2
Stephen Kitt [Thu, 13 Jul 2017 14:34:30 +0000 (16:34 +0200)]
Ship aaa-cli-jar.jar in the distribution

This is a port of https://git.opendaylight.org/gerrit/49278 and
https://git.opendaylight.org/gerrit/54388

Change-Id: I1c3cf5efd60a017bc33f63c5872e21f1eef9eda3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
(cherry picked from commit aef3665fd41aa7e1fe7c64241b3df86551beb952)

6 years agoBug 8791 - L2gateway delete is not clearing l2gwCo 72/59872/4
eaksahu [Mon, 3 Jul 2017 12:51:33 +0000 (18:21 +0530)]
Bug 8791 - L2gateway delete is not clearing l2gwCo

L2gw delete was not clearing associated L2gateway Connection.
CLearing associated l2gwConnection as part of the review.

Change-Id: Ie8b6a9668c7a943041bb2cc7f20bbcab7e68b51d
Signed-off-by: eaksahu <a.k.sahu@ericsson.com>
6 years agoBug 8790 - Local Macs getting cleared 71/59871/2
eaksahu [Mon, 3 Jul 2017 12:38:35 +0000 (18:08 +0530)]
Bug 8790 - Local Macs getting cleared

Local Macs are getting cleared from HA parent node , in case only one of
the HA child node is diconnected.
It should be cleared if both the HA nodes are disconnected .

Change-Id: I222bc69aa7e4aa477870014a793e0ae5d73de26c
Signed-off-by: eaksahu <a.k.sahu@ericsson.com>
6 years agoFix dpnId handling in SRISCListener 84/60084/2
Stephen Kitt [Fri, 7 Jul 2017 14:32:39 +0000 (16:32 +0200)]
Fix dpnId handling in SRISCListener

In SubnetRouteInterfaceStateChangeListener::add, we call
vpnSubnetRouteHandler.onInterfaceUp() whether we get a dpnId or not.
But onInterfaceUp() immediately returns if dpnId is BigInteger.ZERO,
so there’s no point in doing so, and having both calls in the same try
blocks makes the whole process clearer.

Change-Id: Icfe7a1273305ec4825afa16484ee0a8e8f685d47
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoUse right version for statistics pom 63/60163/2
Sam Hague [Mon, 10 Jul 2017 19:34:23 +0000 (15:34 -0400)]
Use right version for statistics pom

Change-Id: I8e4de7dbb33fb06e42280a6bcb6d9c5ba3058fcb
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agotemp rm netvirt-sfc feature while sfc is busted 07/60407/1
Sam Hague [Fri, 14 Jul 2017 22:00:31 +0000 (18:00 -0400)]
temp rm netvirt-sfc feature while sfc is busted

Change-Id: Ic4495abedac67d2397e42e87ad61671ed419d6e4
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoFix cherry-pick of 59691 05/60405/1
Sam Hague [Fri, 14 Jul 2017 20:59:58 +0000 (16:59 -0400)]
Fix cherry-pick of 59691

Change-Id: Iea1ba77766679c5154f3d25134fe480c5c2c6022
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoBUG 8828: Fix NPE when no remote IP on interface 97/60397/2
Jaime Caamaño Ruiz [Mon, 10 Jul 2017 10:41:15 +0000 (12:41 +0200)]
BUG 8828: Fix NPE when no remote IP on interface

Fix NPE When new netvirt classifier fetches the remote IP address of an
egress interface that does not have one (for example, when it is not
a tunnel interface).

Change-Id: Ie76ca25847113d04d440c6497768e9f363ac9569
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoFilter notifications for unwanted interfaces 24/59924/10
Vishal Thapar [Tue, 4 Jul 2017 09:45:49 +0000 (15:15 +0530)]
Filter notifications for unwanted interfaces

Change-Id: I3e6a82c97bdd8fd467cf5f39cd59fdb88c121223
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoUse right version for statistics pom 04/60404/1
Sam Hague [Fri, 14 Jul 2017 20:11:16 +0000 (16:11 -0400)]
Use right version for statistics pom

Change-Id: I71099836cb81f55c9a590a565b4d244e7ed47d3a
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoBug 8838 - aclservice NPE's 55/60255/4
Aswin Suryanarayanan [Wed, 12 Jul 2017 18:14:19 +0000 (23:44 +0530)]
Bug 8838 - aclservice NPE's

Fixes NPE in programConntrackRecircRules in Egress and Ingress Acl
serivce.

Interface is now deleted from the cache after notify is called.

Change-Id: I42d6981f36e1309dc70e721e76b91176cae01319
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
6 years agoBug 8838 - aclservice NPE's 01/60301/2
Aswin Suryanarayanan [Thu, 13 Jul 2017 18:17:13 +0000 (23:47 +0530)]
Bug 8838 - aclservice NPE's

Ignoring notification for ports which are not present in AclInterface
cache.

Change-Id: I8492eb356482d0d84afe5843db74c9e0ac1496b7
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
6 years agoFix cherry-pick of 58749 62/60162/2
Sam Hague [Mon, 10 Jul 2017 19:03:59 +0000 (15:03 -0400)]
Fix cherry-pick of 58749

Change-Id: I04d4ae2946ba351fb602d85ba45e4ed348457bb4
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoFix cherry-pick of 56875 61/60161/2
Sam Hague [Mon, 10 Jul 2017 19:21:04 +0000 (15:21 -0400)]
Fix cherry-pick of 56875

Change-Id: Id471b8cdf32269d1551af4472a0e5ced2311a950
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoElanServiceTestModule using parent's bindTypesToInstance 95/58095/5
Michael Vorburger [Thu, 1 Jun 2017 05:06:15 +0000 (07:06 +0200)]
ElanServiceTestModule using parent's bindTypesToInstance

moved up in https://git.opendaylight.org/gerrit/#/c/58094/

Change-Id: Iab2a4a6a7ef56932530b64f050cb06b2ff32eed2
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoBug 8677: Bump odlparent from 2.0.0 to 2.0.2 23/59923/4
Michael Vorburger [Tue, 4 Jul 2017 09:33:25 +0000 (11:33 +0200)]
Bug 8677: Bump odlparent from 2.0.0 to 2.0.2

This lets Windows users build Karaf distributions
locally more easily (without requiring Git Bash/Cygwin).

see https://lists.opendaylight.org/pipermail/odlparent-dev/2017-June/001154.html

Change-Id: I8b184b63d0b4e5e78a211b389a25b35d74a2f395
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix ActionNxResubmit in FlowEntryObjectsStateless for aclservice 22/60222/1
Michael Vorburger [Tue, 11 Jul 2017 21:40:26 +0000 (03:10 +0530)]
Fix ActionNxResubmit in FlowEntryObjectsStateless for aclservice

This fixed a test failure I'm seeing locally in aclservice's
AclServiceStatelessTest>AclServiceTestBase.newInterface
(and which should fail on Jenkins as well; if it does not, I do not
understand how it can work on the build; we should find out more why).

The test failure message shown is confusing; with
https://git.opendaylight.org/gerrit/#/c/60219/ it becomes much clearer.

Change-Id: Ib69703c13b9bbfae12eaca7fab6a073cdeea4c54
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoAdding Log statements, helps during debugging 51/59551/9
kiranvasudeva [Tue, 27 Jun 2017 08:56:36 +0000 (14:26 +0530)]
Adding Log statements, helps during debugging

Change-Id: Iaff8515aeff1fed46b4552029c3520ed79015826
Signed-off-by: kiranvasudeva <kirankumar.v@altencalsoftlabs.com>
6 years agoRemove direct usage of OpenFlowJava models 13/60013/1
Tomas Slusny [Thu, 6 Jul 2017 10:19:25 +0000 (12:19 +0200)]
Remove direct usage of OpenFlowJava models

Remove direct usage of OpenFlowJava models in OpenFlow13Utils and
replace them with usage of OpenFlowPlugin models.

Resolves: bug 8808
See also: bug 8747

Change-Id: I43cc4e17172a53f827b62697804b69f958d3dae1
Signed-off-by: Tomas Slusny <tomas.slusny@pantheon.tech>
6 years agoFix funny character in ebgp.yang (slanted quotation mark) 04/60004/1
Josh [Thu, 6 Jul 2017 07:52:42 +0000 (10:52 +0300)]
Fix funny character in ebgp.yang (slanted quotation mark)

Change-Id: If8b5aa13c1884685f0d283ad2e622be42aa29f22
Signed-off-by: Josh <jhershbe@redhat.com>
6 years agoBug 8793: Null Pointer Exceptions in Carbon CSIT 86/59886/2
Vivekanandan Narasimhan [Mon, 3 Jul 2017 14:39:13 +0000 (20:09 +0530)]
Bug 8793: Null Pointer Exceptions in Carbon CSIT

Many NPEs are seen in Carbon CSIT on ACLService
and NAT Service.

This review fixes some of them.

Change-Id: I8949da5752a99825f8a0754be6349f4b7139273d
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
6 years agoBug 8793: Null Pointer Exceptions in Carbon CSIT 01/59901/3
Aswin Suryanarayanan [Mon, 3 Jul 2017 18:51:09 +0000 (00:21 +0530)]
Bug 8793: Null Pointer Exceptions in Carbon CSIT

Fixes NPE in  programConntrackRecircRules and syncSpecificAclFlow in
AclService

Change-Id: I3217efdb82d35acd1de34699edbb01ef8820a7fd
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
6 years agoBug 8793: Null Pointer Exceptions in Carbon CSIT 16/59916/2
Shashidhar Raja [Tue, 4 Jul 2017 05:02:41 +0000 (10:32 +0530)]
Bug 8793: Null Pointer Exceptions in Carbon CSIT

This commit fixes NPE observed in bindAcl() of AclService

Change-Id: I7397677f0e63a56e0e023eb4b2697ae1ef095714
Signed-off-by: Shashidhar Raja <shashidharr@altencalsoftlabs.com>
6 years agoBug 8800: Fix AclServiceStatefulTest newInterfaceWithMultipleAcl() 54/59954/1
Michael Vorburger [Tue, 4 Jul 2017 22:55:20 +0000 (00:55 +0200)]
Bug 8800: Fix AclServiceStatefulTest newInterfaceWithMultipleAcl()

The expected objects of that tests were broken, but due to Bug 8800, the
test did not fail because of that.  (This needs to be reviewed and
merged before the actual root cause fix for Bug 8800 can go it.)

Change-Id: I6e9f0a9f42a36cf242c8b43988a76c2a747f2178
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoUse manual setters instead @Immutable in IdentifiedAceBuilder.xtend 20/59920/2
Michael Vorburger [Mon, 3 Jul 2017 17:06:08 +0000 (19:06 +0200)]
Use manual setters instead @Immutable in IdentifiedAceBuilder.xtend

The mix of Immutables.org with Xtend.org seemed cool when I originally
came up with this 1 year ago, but after having run into issues with
in-IDE compilation order in Eclipse EVERY TIME I want to touch something
in aclservice, this got enough on my nerves to finally simplify this.

The issue basically is that the Xtend IDE and Eclipse APT processor seem
to struggle about the correct order in which Xtend active annotations
and APT processors should run (although it did, always, work, reliably,
in the mvn CLI build); Eclipse IDE could never get this right, and there
was too often red ink errors for (supposedly) missing
ImmutableIdentifiedAceBuilder... so basically this mix of Xtend with
Immutables.org probably wasn't a good idea.

The Xtend active annotations @Accessor (as well as @Data) really do
something quite similar to Immutables.org (yet let us keep the "pretty"
object literal initialization syntax of Xtend); however they generate
"real" setters, which do not "return this;", so instead it's simplest to
just hand write those few setters, for now.  Later if this pattern is
used more widely, we could have a new Xtend active annotation, such as
@Builder.

This also, and strictly speaking kind of unrelated, changes the double
indirection of Builder -> Immutable -> DataObject to a simpler to
understand single level, without the intermediate Immutable (which makes
these Builders used to compose objects more easily in tests not thread
safe, which is perfectly fine, actually).

dito for IdentifiedInterfaceWithAclBuilder

Change-Id: Ia70f5f62fa9d3d71da0521cd22808907c97a4619
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoBump odlparent to 2.0.0, not SNAPSHOT 77/59877/2
Robert Varga [Mon, 3 Jul 2017 13:27:35 +0000 (15:27 +0200)]
Bump odlparent to 2.0.0, not SNAPSHOT

Change-Id: Ib4d6af8ebf62aa2b4537da3d331f951d7fd84a40
Signed-off-by: Robert Varga <nite@hq.sk>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRevert "Netvirt wide blueprint xml path change: /OSGI-INF/ -> /org/opendaylight/" 24/59824/2
Sam Hague [Sun, 2 Jul 2017 22:51:36 +0000 (22:51 +0000)]
Revert "Netvirt wide blueprint xml path change: /OSGI-INF/ -> /org/opendaylight/"

This reverts commit 5c32d2e26885b17e9c74fbb7bdc5195da5700d0b.

Change-Id: Ifb7cd33f6f72ed51b8cd06e2aa566e56d93fb35e
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoAdding logs in ACL. 56/59456/4
Tarun Thakur [Fri, 23 Jun 2017 09:44:25 +0000 (15:14 +0530)]
Adding logs in ACL.

Adding logs in ACL which can be helpful for debugging.

Change-Id: I29b9ed92cedd06e4c325117e4419b01e190dc217
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
6 years agoFix NPE in aclService test 19/59819/1
Sam Hague [Sun, 2 Jul 2017 20:53:22 +0000 (16:53 -0400)]
Fix NPE in aclService test

Change-Id: I859f5a1a188c67cc83fa429e3b6abe7917ebedc1
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoNetvirt wide blueprint xml path change: /OSGI-INF/ -> /org/opendaylight/ 05/59205/9
Abhinav Gupta [Tue, 20 Jun 2017 08:44:51 +0000 (14:14 +0530)]
Netvirt wide blueprint xml path change: /OSGI-INF/ -> /org/opendaylight/

Also have removed fake "availability=optional"

Change-Id: Iae7caa155eeffa7c831822ac600bbc6283a7e2fc
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
6 years agoFix clear bug in BgpConfigurationManager's interVpnLinkService 21/59421/3
Michael Vorburger [Thu, 22 Jun 2017 17:37:41 +0000 (19:37 +0200)]
Fix clear bug in BgpConfigurationManager's interVpnLinkService

The assignment to the field is just self-assigning the current value of
that field (null), not the injected argument, due to a typo... :-(

This could never have worked - isn't this kind of coded tested?! ;)

Found chance related to a closer look in the context of
https://git.opendaylight.org/gerrit/#/c/59205/.  We really should be
working on enabling FindBugs (which, probably, would have spotted this)
on more projects in netvirt... is anyone volunteering to take this on,
if I can provide some coaching and would do reviews?

Change-Id: I0f8cffbd384262a5e68de523725ee3efa1564722
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoRevert "Neutron Port allocation for DHCP Service" 27/59727/2
karthik.p [Fri, 30 Jun 2017 07:14:32 +0000 (12:44 +0530)]
Revert "Neutron Port allocation for DHCP Service"

This reverts commit 30cba431cf065d25897dffe01cd5c4febc63e14a.

Change-Id: I38bd7587287ef23eb71cabc551983b74a4a6d0c9
Signed-off-by: karthik.p <karthik.p@altencalsoftlabs.com>
6 years agoBUG 7824: Handling Optimistic lock exception for elanmodule 02/59702/2
epgoraj [Fri, 23 Jun 2017 10:17:42 +0000 (15:47 +0530)]
BUG 7824: Handling Optimistic lock exception for elanmodule

Change-Id: Ia99b70eb9dd3798cb5a82dce6e07f6ab6b980eef
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
6 years agoRemove sfc-translator MdsalUtils::put() 69/59469/3
Stephen Kitt [Fri, 23 Jun 2017 13:43:27 +0000 (15:43 +0200)]
Remove sfc-translator MdsalUtils::put()

Replace MdsalUtils::put() with
SingleTransactionDataBroker::syncWrite(). MdsalUtils is no longer used
at all and can be removed.

Change-Id: I7237b60fe63534591991bf4c2e559ab796f30aac
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemove sfc-translator MdsalUtils::merge() 68/59468/3
Stephen Kitt [Fri, 23 Jun 2017 13:37:18 +0000 (15:37 +0200)]
Remove sfc-translator MdsalUtils::merge()

Replace MdsalUtils::merge() with
SingleTransactionDataBroker::syncUpdate().

Change-Id: Ic3fab14043525bb105a59515319a85e2d3a1a146
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemove sfc-translator MdsalUtils::delete() 67/59467/3
Stephen Kitt [Fri, 23 Jun 2017 13:22:24 +0000 (15:22 +0200)]
Remove sfc-translator MdsalUtils::delete()

Replace MdsalUtils::delete() with
SingleTransactionDataBroker::syncDelete().

Change-Id: I502129e932c263b6210aa3c699250582b7ef8d84
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemove sfc-translator MdsalUtils::read() 66/59466/3
Stephen Kitt [Fri, 23 Jun 2017 13:17:00 +0000 (15:17 +0200)]
Remove sfc-translator MdsalUtils::read()

Replace MdsalUtils::read() with
SingleTransactionDataBroker::syncReadOptionalAndTreatReadFailedExceptionAsAbsentOptional()
(which is itself deprecated, but I didn’t want to redo the
error-handling in this patch).

Change-Id: I8233ce003f416a6d9575884b5592d0d5728e3f05
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemove NatUtil::read() 55/59455/3
Stephen Kitt [Fri, 23 Jun 2017 09:16:52 +0000 (11:16 +0200)]
Remove NatUtil::read()

As a step in the MD-SAL utilities clean-up, remove NatUtil::read(),
simply replacing it with
SingleTransactionDataBroker::syncReadOptionalAndTreatReadFailedExceptionAsAbsentOptional()
(which is itself deprecated, but I didn’t want to redo the
error-handling in this patch).

Change-Id: I6798e460d7fb61653a5e3f754d5c083fe1084c80
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoUse documenting constants for put() 11/59411/5
Stephen Kitt [Thu, 22 Jun 2017 15:36:29 +0000 (17:36 +0200)]
Use documenting constants for put()

WriteTransaction provides constants for put()’s createMissingParents
parameter, this patches uses them throughout.

A few transaction-related collection constructions are replaced with
singletonList().

Change-Id: I5e77870eb2b898eb4a4e364ba0013496c884aa1e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoBug 8398 - communication between two tenant network failed while using 14/59814/1
Shashidhar Raja [Wed, 7 Jun 2017 13:16:17 +0000 (18:46 +0530)]
Bug 8398 - communication between two tenant network failed while using
default SG (stateful mode)

This commit fixes issues observed in
https://git.opendaylight.org/gerrit/#/c/57705/

Depends-On: 0c01eacb8100ee5a224d52e44362fce98bd875f5
Change-Id: I827e99835c36509bad5b48f03034103d377102f8
Signed-off-by: Shashidhar Raja <shashidharr@altencalsoftlabs.com>
(cherry picked from commit 7b3aae5bb35725b22fbe1b936717ef45dada4630)

Change-Id: I84750f584ba513543ef2376f143315fe45d4751a
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoBug 8398 - communication between two tenant network failed while 42/57742/5
eupakir [Tue, 23 May 2017 14:50:01 +0000 (20:20 +0530)]
Bug 8398 - communication between two tenant network failed while
using default SG (stateful mode)

This fixes the remote ACL indirection flows for the case where a
router/bgpvpn is involved in communication. It enables the dispatcher
tables to write vpnId to the metadata so that Remote ACL flows can
correctly match and send the packet to the intended destination.

The fix makes use of the vpn footprint service to program ACL flows for
every host addition/deletion.

Depends-On: b3e21d27e8f593b4ca326dd93239db38e1ead4cd
Change-Id: I1cbee44f951a75d4bbb382fed4e882162016c946
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
6 years agoRemove old NetVirt 98/59398/5
Stephen Kitt [Thu, 22 Jun 2017 12:37:12 +0000 (14:37 +0200)]
Remove old NetVirt

This is no longer used, let’s just remove it.

Change-Id: Idc36a582a39279caace8981e235a3ebb426a6af4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoFix NPE triggered after disabling SG on a port 32/59132/2
Sridhar Gaddam [Mon, 19 Jun 2017 06:33:26 +0000 (12:03 +0530)]
Fix NPE triggered after disabling SG on a port

When port-security is disabled on a Neutron port, removeAclInterfaceMap
is invoked, but the entry in aclInterfaceMap is not deleted as there is
a difference (i.e., securityGroups element) in the port info present in
aclInterfaceMap and the one passed as argument. Because of this, the stale
entries remain in the aclInterfaceMap and are causing NPE issues for
subsequent operations. This patch fixes this issue by matching on the
interfaceId and deleting the corresponding entry.

Change-Id: I2c98f82beab8043052c9444f40f02eb26e8c3945
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
6 years agoRemove references to vpnservice-features4 14/59714/1
Vishal Thapar [Thu, 29 Jun 2017 23:08:46 +0000 (04:38 +0530)]
Remove references to vpnservice-features4

Missed cleaning up references as part of karaf migration. This will likely
cause issues in distribution when enabling netvirt features.

Change-Id: I0b6b1285a002b9f2f7defdbd5d90a24cf46d8989
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoBug 8645: Alarm not cleared while deleting the bgp neighbor 95/59595/2
Gowri R [Wed, 28 Jun 2017 05:13:11 +0000 (10:43 +0530)]
Bug 8645: Alarm not cleared while deleting the bgp neighbor

Clearing the alarm during the deletion of bgp neighbor.

Change-Id: I0692b18c3850536ffac73decc0d6b4d23523e963
Signed-off-by: Gowri R <gowri.r@ericsson.com>
6 years agobug 7599 hwvtep ucast mac add performance improv 73/56773/8
Akash [Wed, 10 May 2017 09:09:31 +0000 (14:39 +0530)]
bug 7599  hwvtep ucast mac add performance improv

Batching changes for Dmac flows.
Making sure all macs installed at lower case to resolve duplicate mac
entries issue.
Deleting entries related to logicalSwitch in case of
l2GwConnectionDeletion.(More explanation in inline comment)
Fixing minor bug in HA (Only parent nodes needs to be updated in cache not
child node hence returning)
ElanInstanceListner has been updated to cluster listner as in case of
cluster reboot / or other situation cache should be cleared form all
nodes.

Change-Id: I4cc767050ee7036b12b2c07c5f139b42e2970134
Signed-off-by: Akash <a.k.sahu@ericsson.com>
6 years agoFix NullPointerException in QosInterfaceStateChangeListener 78/59678/1
Michael Vorburger [Thu, 29 Jun 2017 13:41:07 +0000 (15:41 +0200)]
Fix NullPointerException in QosInterfaceStateChangeListener

2017-06-27 18:29:37,596 | ERROR | eChangeHandler-0 |
QosInterfaceStateChangeListener  | 344 -
org.opendaylight.netvirt.qosservice-impl - 0.4.1.SNAPSHOT |
Qos:Exception caught in Interface Operational State Up event

java.lang.NullPointerException: the Function passed to
Optional.transform() must not return null.
        at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)[38:com.google.guava:18.0.0]
        at
com.google.common.base.Present.transform(Present.java:71)[38:com.google.guava:18.0.0]
        at
org.opendaylight.netvirt.qosservice.QosInterfaceStateChangeListener.getNeutronPort(QosInterfaceStateChangeListener.java:117)[344:org.opendaylight.netvirt.qosservice-impl:0.4.1.SNAPSHOT]

Change-Id: Ic2a6750ac605dedeb61572689f62a97c811b8fa2
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoVrfEntryListener refactoring using chain of responsibility pattern 67/59267/5
ehvkand [Wed, 21 Jun 2017 08:58:48 +0000 (14:28 +0530)]
VrfEntryListener refactoring using chain of responsibility pattern

This is a secod review where RouteInterface handling is separated into a new
handler class RouterInterfaceVrfEntryHandler.

Change-Id: If4bc6ded02e23dc12f6217a7c412ac5cc1188f50
Signed-off-by: ehvkand <hanamantagoud.v.kandagal@ericsson.com>
7 years agoNeutron Port allocation for DHCP Service 75/56875/37
Achuth Maniyedath [Thu, 11 May 2017 18:32:50 +0000 (00:02 +0530)]
Neutron Port allocation for DHCP Service

The feature enables DHCP service to make use of the
newly created Neutron ports provisioned by Openstack
networking-odl driver at the time of Subnet creation.
Additionaly an ARPResponder flow is also introduced to
service the ARP requests for these ports during VM
DHCP renewal.

All ArpResponder handling for Router interface gateway,
floating IP and DHCP ports will be moved to ElanService,
introducing a pipeline change for ARP handling.

LPort Dispatcher Table(17) -> ARP Check Table(43) -> ARPResponder Group
-> ELAN Base Table(48), ARP Responder Table(81), Controller
-> Egress Dispatcher Tabel (220)

Change-Id: I8ebbe05c37f5e7e4c5ae1dd1d17faa12965d5e65
Depends-On: I2dce5e253d3c94180dd18e51125c5c18170b5c69
Signed-off-by: Achuth Maniyedath <achuth.m@altencalsoftlabs.com>
Signed-off-by: Vijayalakshmi Chickkamenahalli Nagaraju <vijayalakshmi.c@altencalsoftlabs.com>
Signed-off-by: karthik.p <karthik.p@altencalsoftlabs.com>
7 years agoBug 7939 - CSIT Sporadic failures - Flow(s) missing in VPNService suite on 13/59613/3
eupakir [Wed, 28 Jun 2017 11:23:28 +0000 (16:53 +0530)]
Bug 7939 - CSIT Sporadic failures - Flow(s) missing in VPNService suite on
compute node

Fix ensures that table-19 is completely cleaned up on swap, before add the
vpn and router interfaces to the bgpvpn/routervpn instance

Change-Id: I9b106492234caa80ba9b2d961bb05a728cf5af27
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
7 years agoBUG 8553: Rules are not deleted/added to the SG. 77/59577/1
arthi.b [Tue, 20 Jun 2017 23:01:33 +0000 (19:01 -0400)]
BUG 8553: Rules are not deleted/added to the SG.

  Problem: Event not processed when we delete last rule
  and also addition of first rule to the SG.

  Fix: Skip only if both before and after ACL list are empty

Change-Id: I7f8ccb10adbdb1b8c1cab0ca7af8a2dcc2105aea
Signed-off-by: arthi.b <arthi.b@hcl.com>
7 years agoBug 8743 : Fix NAT Service to safely use vpn-to-dpn list. 00/59500/17
Vivekanandan Narasimhan [Sat, 24 Jun 2017 09:37:11 +0000 (15:07 +0530)]
Bug 8743 : Fix NAT Service to safely use vpn-to-dpn list.

Description : Its been observed the vpn-to-dpn list been not updated
properly resulting in missing dpn-state with active state. As a result,
installation of default route rule been missing resulting in SNAT/DNAT
failure.

Changes are done to make use of vpn footprint service to update the
vpn-to-dpn list whenever floating-ip and external fixed ips are added
and deleted.

Change-Id: Ic55fc5364ef45fbbe7ce63a9feef51bf39332541
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
7 years agoUpgrade to new odlparent 2.0.0 & handle its impacts 88/59288/8
Vivekanandan Narasimhan [Wed, 21 Jun 2017 13:16:04 +0000 (18:46 +0530)]
Upgrade to new odlparent 2.0.0 & handle its impacts

Change-Id: Ia1380728fed72916f5545721fd95e8986fc85c9a
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoDisable Federation 74/59474/2
Stephen Kitt [Fri, 23 Jun 2017 15:41:43 +0000 (17:41 +0200)]
Disable Federation

This patch allows building netvirt without Federation. Federation is
currently not part of Nitrogen so we need to disable it for now.

Change-Id: I06401a533169da44d0213b1df77da4a727795eff
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBUG-7446: update to Guava 21 15/50215/8
Robert Varga [Tue, 10 Jan 2017 17:53:11 +0000 (18:53 +0100)]
BUG-7446: update to Guava 21

Futures.transform() was de-overloaded to transformAsync().

Change-Id: Ic01284bee63e4e1dff8deefa4f8ee98d0d11d7c0
Signed-off-by: Robert Varga <nite@hq.sk>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
7 years agoBug 8179 - Data validation failed for path bgp/networks 43/59243/8
Gobinath [Tue, 20 Jun 2017 14:56:25 +0000 (20:26 +0530)]
Bug 8179 - Data validation failed for path bgp/networks

Issue:

Data validation failed exception during withdrawing prefix from BGP.

Analysis:

The issue occured while trying to delete an element from the
bgp/networks which was not in the desired format. The DPNid is
used as rd in case of extra routes with internal VPN. The prefixes in
the internal VPN are not be advertised to the BGP. The condition for
this already exists(rd is the vpnName here). For extra routes, DPNIDs
are used as rds for ECMP and they should also be advertised. This was
already handled but there was no handling to avoid the withdrawal from
the BGP in case of the removal.

Fix:

Condition has been added to avoid calling withdrawPrefix() for the extra
routes removal in case of the internal VPN.

Note: Also some other errors in logging have been fixed.

Change-Id: Ic5dbcf951cd36b0a0fb9624f4899184bc4e305f0
Signed-off-by: Gobinath <gobinath@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
7 years agoBug 7824: Handling CSIT Exception under Elan module 72/59272/1
epgoraj [Tue, 20 Jun 2017 09:07:35 +0000 (14:37 +0530)]
Bug 7824: Handling CSIT Exception under Elan module

Change-Id: I2f34d558dc6887324cf5edef6551e1ee6451f816
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
7 years agoBug 8710: Bgp afi related bug fixes 28/58828/5
SivaKumar Perumalla [Tue, 13 Jun 2017 15:12:55 +0000 (15:12 +0000)]
Bug 8710:  Bgp afi related bug fixes

Change-Id: Ie62474af854b2b4db5f53c57fa7e79499e163b21
Signed-off-by: SivaKumar Perumalla <sivakumar.perumalla@ericsson.com>
7 years agoVrfEntryListener refactoring using chain of responsibility pattern 49/58749/7
HANAMANTAGOUD V Kandagal [Thu, 8 Jun 2017 06:05:46 +0000 (11:35 +0530)]
VrfEntryListener refactoring using chain of responsibility pattern

This is a first review where BGP Route handling is separated into a new
handler class BgpRouteVrfEntryHandler.

All common methods are put into a new superclass i.e VrfEntryHandler.
Each of the subclasses like BgPRouteVrfEntryHandler will extend the superclass.
This is done to avoid circular depency on VrfEntryListener.

As part of chain of responsibility pattern , VrfEntryListener will pass on
the Vrf object to the first handler in a chain based on the RouteOrigin
type. Once the first handler completes processing the Vrf obj , it will
pass on the same to next handler.

In the current review BgpRouterVrfEntryHandler will process Routes of type
"RouteOrigin.BGP". BGP routes need not be processed by any other handler ,
hence next handler is not defined in the chain.

In the subsequent patches , when new handlers like LocalRouteVrfEntryHandler,
SubnetRouteVrfEntryHandler etc will have to pass on the Vrf obj to next
handler which will be ImportExportVrfEntryHandler.

Change-Id: I538085bfcda7733b5f3ba5ffe49d541619ac40ec
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
Signed-off-by: ehvkand <hanamantagoud.v.kandagal@ericsson.com>
7 years agoSpec update for DHCP Neutron Port Allocation 90/58790/10
Achuth Maniyedath [Tue, 13 Jun 2017 07:51:44 +0000 (13:21 +0530)]
Spec update for DHCP Neutron Port Allocation

+ Updated the pipeline/yang changes
+ DHCP request handling added .
+ Introduce controller-dhcp-mode flag in DHCP Service.

Change-Id: I633571012d6f3ff8a07e0c8e50da9ab05c106c55
Signed-off-by: Achuth Maniyedath <achuth.m@altencalsoftlabs.com>
7 years agoBug 8441, 8630 - LB groups not deleted after extra route deletion 38/59138/6
Gobinath [Mon, 19 Jun 2017 07:38:08 +0000 (13:08 +0530)]
Bug 8441, 8630 - LB groups not deleted after extra route deletion

Issue :

When an extra route is completely removed from all the DPNs, the
loadbalancing groups are not updated properly.

Analysis:

There was a "NullpointerException" occuring in the
setupLoadbalancingGroup() method.

Fix:

Changes have been made to avoid the NPE. Also, changes were
made in resolveadjacency() method to populate the adjacencylist
correctly.

This patch also fixes the bug 8630
(CSIT Sporadic failures - arp learning suite
 - MIP not in /config/odl-fib:fibEntries/)
as well which resulted due to the exceptions
caused as mentioned above.

Also it reverts some part of the review that landed here:
https://git.opendaylight.org/gerrit/#/c/59081/

Change-Id: Iaffd3916603f33810cfb7fdba2a86ba8826fc9e3
Signed-off-by: Gobinath <gobinath@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
7 years agoMove fibmanager-shell blueprint.xml from OSGI-INF/blueprint to org/opendaylight/blueprint 58/59158/1
Michael Vorburger [Mon, 19 Jun 2017 11:21:52 +0000 (13:21 +0200)]
Move fibmanager-shell blueprint.xml from OSGI-INF/blueprint to org/opendaylight/blueprint

This may (?) fix the SFT failing to find the DataBroker, as discussed on follow-up to
https://lists.opendaylight.org/pipermail/netvirt-dev/2017-June/004770.html; and if
this does fix that SFT problem, then this was an indirect impact of
https://git.opendaylight.org/gerrit/#/c/54885/.

This also reverts both https://git.opendaylight.org/gerrit/#/c/59105/ private field,
and the availability="optional" from https://git.opendaylight.org/gerrit/#/c/59051/

Change-Id: I856c0f4311a02a5380512496619aee74cf70ee2e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoFix null Optional instantiations 84/59084/2
Stephen Kitt [Fri, 16 Jun 2017 14:05:42 +0000 (16:05 +0200)]
Fix null Optional instantiations

Optional type variables must never be null.

Change-Id: I86af0a9c11dca31b00d72818210d0afb0bcbcff9
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoRestore VRF imported routes case 81/59081/4
Stephen Kitt [Fri, 16 Jun 2017 13:10:31 +0000 (15:10 +0200)]
Restore VRF imported routes case

In createLocalFibEntry, localNextHopInfo is always null. It used to be
initialised in what became the forEach() loop; this patch restores a
standard foreach loop and tracks whether local next hop info has
actually been seen.

Change-Id: I9dc7a041a1010f7f85003bd225d75f2d03a7d076
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMinor code clean-up 57/59057/3
Janki Chhatbar [Fri, 16 Jun 2017 06:20:15 +0000 (11:50 +0530)]
Minor code clean-up

Replace vrfEntry.getDestPrefix with localNextHopIP in createLocalFibEntry

Change-Id: I7f891ce9a692723829c749736e7f5d89011822d9
Signed-off-by: Janki Chhatbar <jchhatba@redhat.com>
7 years agoBug 8706: Restore null-check in createLocalFibEntry 80/59080/4
Stephen Kitt [Fri, 16 Jun 2017 12:58:08 +0000 (14:58 +0200)]
Bug 8706: Restore null-check in createLocalFibEntry

checkCreateLocalFibEntry handles null gracefully, but dereferencing
localNextHopInfoLocal in the method call renders that useless.

Note that just following the forEach(), localNextHopInfo is always
null which suggests something got lost in the transformation...

Change-Id: If15cc4a881c2a1468c84a4e0cebb2a940465f33b
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoBug 8657: Fix for failure seen with IPv6 extra-route 63/59063/4
Sridhar Gaddam [Fri, 16 Jun 2017 08:53:32 +0000 (14:23 +0530)]
Bug 8657: Fix for failure seen with IPv6 extra-route

Currently when programming an IPv6 extra-route, we see an
exception in Netvirt and the corresponding table-21 flow
is not programmed. This patch addreses this issue.

Change-Id: I5d8192dd4d095ecbb8f0c733a795953a34c48487
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoBug 8552 - [l3vpn]Stale flow entries not getting removed even when all the 19/59019/3
eupakir [Thu, 15 Jun 2017 12:04:16 +0000 (17:34 +0530)]
Bug 8552 - [l3vpn]Stale flow entries not getting removed even when all the
VM config are deleted

FIB handling was being interrupted by and NPE, which led to stale remote
table-21 flows. This is because the GroupEntityBuilder has been modified
with respect to the way it adds BucketListInfo.
It tries to addALL the elements from the input List of buckets now, and
hence a null param causes NPE. This has been fixed.

Change-Id: Iafe20e405101c294ce56babbaf5ff0057be55ae7
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
7 years agoFix SingleFeatureTest breakage on fibmanager-shell bundle 05/59105/2
Vivekanandan Narasimhan [Fri, 16 Jun 2017 17:19:32 +0000 (22:49 +0530)]
Fix SingleFeatureTest breakage on fibmanager-shell bundle

Looks like the build breakage happened via landing:
https://git.opendaylight.org/gerrit/#/c/58554/

Change-Id: Iddc3ac721e130ab46271624de1c0550aade087cf
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
7 years agoUse optional for dataBroker 51/59051/1
Sam Hague [Thu, 15 Jun 2017 23:07:42 +0000 (19:07 -0400)]
Use optional for dataBroker

Change-Id: Ifa83b22b5868ad024557b8a9c6ca9297c24a636a
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoMigrate to odlparent 1.9.0 68/58868/4
Thanh Ha [Tue, 13 Jun 2017 20:22:15 +0000 (16:22 -0400)]
Migrate to odlparent 1.9.0

Change-Id: I391eebe5ced41262379b292ba7e50b941cedd50b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBug 8520 - NPE at org.opendaylight.netvirt.vpnmanager.arp.responder.ArpResponderUtil... 27/58227/5
Janki Chhatbar [Mon, 5 Jun 2017 08:48:31 +0000 (14:18 +0530)]
Bug 8520 - NPE at org.opendaylight.netvirt.vpnmanager.arp.responder.ArpResponderUtil.getActions

Donot setup Arp Responder flows to External Netwrok if GW router MacAddress is Null.

Change-Id: I0a013c3d43199a56786fd7f4a788521617f3df7c
Signed-off-by: Janki Chhatbar <jchhatba@redhat.com>
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
7 years agoBug 8374: NPE observed on fib-show command 16/58516/3
Miguel Perez [Thu, 8 Jun 2017 13:41:56 +0000 (15:41 +0200)]
Bug 8374: NPE observed on fib-show command

 + Havent been able to reproduce the NPE, but did a bit of
   refactoring with special care about possible NPEs

 + First of all, it's not VrfEntryListener's responsibility to
   print anything on screen. This logic's been moved to the
   fib-show command implementation.

 + I took the change to remove dependency from 'shell' to 'impl'

 + L3VPNTransportTypes defines types that are used in 'shell', so I
   moved it from 'impl' to 'api'.

 + Also moved the dependency to 'itm-api' from 'impl' to 'api'

Change-Id: Ie792c40cf61af0bcefb83be9b0d6c5fcb6fb755c
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
7 years agoFixes: 16/58816/2
SivaKumar Perumalla [Tue, 13 Jun 2017 10:07:03 +0000 (10:07 +0000)]
Fixes:
 - BgpAlarms: avoid un-necessary reading of neighbor list

Change-Id: I4cded3511710cdeabd2fa8abb75cb35bf47b7bf7
Signed-off-by: SivaKumar Perumalla <sivakumar.perumalla@ericsson.com>
7 years agoUse Karaf 4 for the distribution 60/55160/4
Stephen Kitt [Tue, 18 Apr 2017 14:47:05 +0000 (16:47 +0200)]
Use Karaf 4 for the distribution

This switches the NetVirt Karaf distribution to Karaf 4. (It has no
impact on downstream projects.)

Change-Id: Id05bca6f655a90677002f2732b921209f2af572f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoTemporarily push a distro 36/55736/2
Stephen Kitt [Thu, 20 Apr 2017 13:46:41 +0000 (15:46 +0200)]
Temporarily push a distro

This will allow us to test our own Karaf 4 distribution in CSIT.

Change-Id: Ia29785df8b366410ce1adee38f477a335bebd85f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBug 8646: QoS log level changed to debug 31/58731/2
Arun Sharma [Mon, 12 Jun 2017 12:08:47 +0000 (17:38 +0530)]
Bug 8646: QoS log level changed to debug

Some QoS logs should not be showing up by default.
Changed these logs to debug.

Change-Id: I2c15f202e32b9adf433275d01dc24cf880bddafb
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
7 years agoUse TestInterfaceManager that's now in testutils 96/58096/2
Michael Vorburger [Thu, 1 Jun 2017 05:10:06 +0000 (07:10 +0200)]
Use TestInterfaceManager that's now in testutils

following https://git.opendaylight.org/gerrit/#/c/58093/

Change-Id: I6bd0c4e445a0a8b58ea54d2a5553412a89d6ff2c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoFix statistics generator using odlparent version 68/58668/2
Thanh Ha [Sat, 10 Jun 2017 06:48:37 +0000 (02:48 -0400)]
Fix statistics generator using odlparent version

The statistics generator module is inheriting odlparent version which is
causing failure to upload SNAPSHOT correctly to Nexus.

Change-Id: Id129b24dee450ba9db7a5b7e5a665fb80fdce2fd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBug 8615 - Stale flows in table 46, 47 and 44 when SNAT is disabled 77/58477/3
Aswin Suryanarayanan [Thu, 8 Jun 2017 08:23:27 +0000 (13:53 +0530)]
Bug 8615 - Stale flows in table 46, 47 and 44 when SNAT is disabled
(Conntrack Based)

Change-Id: I45f2d84caf691bb12b35a708fe66ec5f8d4cd8d6
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoSupport ping6 for Neutron internal router interfaces 20/58620/2
Sridhar Gaddam [Fri, 9 Jun 2017 14:52:36 +0000 (20:22 +0530)]
Support ping6 for Neutron internal router interfaces

This patch programs the necessary OVS flows that respond to
ping6 requests addressed to the IPv6 subnet gateway_ips on
the tenant network (i.e., Neutron internal router interfaces).
It is similar to the IPv4 ping auto-responder support we
currently have in Netvirt.

Change-Id: Iec686be7fca6743ce2fff666a29e8912645e8c47
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoBug 8302 fix for ELAN TS table flow leftovers 74/58574/4
Periyasamy Palanisamy [Fri, 9 Jun 2017 06:12:19 +0000 (11:42 +0530)]
Bug 8302 fix for ELAN TS table flow leftovers

Since different flowref (regression introduced by vni enforcement
implementation for the datapath) is passed, there are some leftovers in table 36
which causes stale flow comes into effect after ovs restart. This makes
ELAN datapath to fail.

Change-Id: I9785b641c7f05aaed268371653bf3fd2b3e36dc3
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agoRevert "Bug 8588 - NPE at at org.opendaylight.netvirt.fibmanager.VrfEntryListener... 96/58596/2
Sam Hague [Fri, 9 Jun 2017 10:15:58 +0000 (10:15 +0000)]
Revert "Bug 8588 - NPE at at org.opendaylight.netvirt.fibmanager.VrfEntryListener.createLocalFibEntry"

This reverts commit ac5934b1bd27697072755d3103cea400304611cc.

Change-Id: I11535985c096495ff259e8b923ad19cb92d63d39
Signed-off-by: Sam Hague <shague@redhat.com>