netvirt.git
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>
7 years agoEVPN RT2 : UT Bug fixes 02/57602/13
Riyazahmed D Talikoti [Mon, 22 May 2017 09:46:34 +0000 (15:16 +0530)]
EVPN RT2 : UT Bug fixes

1. NPE at evpnMacVrfUtils.
2. EvpnElanInstanceListener is NOT getting hit.
3. Failed to get the dpn tep ip for dpn
4. getEVpnRd : evpnName is NUL
5. IllegalArgumentException for Ipv4address during addprefix
6. Withdraw of routes failed on evpn detach from network
7. On Detach Network from EVPN installed DMAC flows are not getting uninstalled
8. DMAC Flow is getting installed with action=DROP
9. IndexOutOfBoundsException at EvpnMacVrfUtils.addEvpnDmacFlow
10. MacVrfEntryListener add Error : elanName is null for iid
11. MacVrfEntryListener is not hitting
12. ElanMacEntryListener evpnName is NULL for elanInstance
13. On Detach Network from EVPN installed DMAC flows are not getting uninstalled
14. DMAC install on attaching network from evpn, which was detached earlier
15. On creating new port after multiple attach and detach  network to
evpn. Advertise route is failing
16. ElanName was NUll while adding externalTep in BgpUtil.

Change-Id: Ic5a97985ae8ab071bdc26ec93f280234af2bbe75
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
7 years agoBug 8610 - In NAPT HA(Conntrack based) NAT rules are not programmed when 85/58385/4
Aswin Suryanarayanan [Wed, 7 Jun 2017 04:17:23 +0000 (09:47 +0530)]
Bug 8610 - In NAPT HA(Conntrack based) NAT rules are not programmed when
a switch comes back after a failure.

1)The conntrack implementation now responds to RouterDpn changes.
2)An error in populating dpn-vpn list is now fixed.

Change-Id: Ife3c28f29fdb3de9f0108ca1bdb86d2fc0951a21
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoMigrate to odlparent 1.8.0-Carbon 16/58616/3
Faseela K [Fri, 9 Jun 2017 13:28:18 +0000 (18:58 +0530)]
Migrate to odlparent 1.8.0-Carbon

Per request of odlparent project we are downgrading all Nitrogen
projects to use the released odlparent 1.8.0-Carbon to allow for the
odlparent project to start performing semver style releases.

Jira: RELENG-159
RT: 41406

Change-Id: I95bf3c296468cf2798e37aafde73e2a37d9d927d
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoBug 8440: Traffic from remote OVS to LB Group 58/58558/1
Kency Kurian [Thu, 8 Jun 2017 10:47:29 +0000 (16:17 +0530)]
Bug 8440: Traffic from remote OVS to LB Group

Traffic to extra-route from a remote switch was not going to the LB
group from the tunnel table.

This review makes sure that the tunnel table points to the LB group and
also makes sure that if the extra route could be reached through another
VM which is present in different switch then the tunnel table directly
points to only one of the VMs in order to avoid looping.

Change-Id: I0964991eef519610487e5454e39a643a4c04536b
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoFix NPE in DhcpAllocationPoolManager close() 03/58503/3
Michael Vorburger [Thu, 8 Jun 2017 12:26:26 +0000 (14:26 +0200)]
Fix NPE in DhcpAllocationPoolManager close()

This NPE happens during shutdown, because dhcpAllocationPoolListener is
null unless isDhcpDynamicAllocationPoolEnabled, so it has to be null
checked before closing it.

2017-06-08 14:15:34,997 | ERROR |  Bundle Shutdown | BeanRecipe
| 15 - org.apache.aries.blueprint.core - 1.6.1 | The blueprint bean
dhcpAllocationPoolManager in bundle
org.opendaylight.netvirt.dhcpservice-impl/0.5.0.SNAPSHOT incorrectly
threw an exception from its destroy method.
java.lang.NullPointerException
        at
org.opendaylight.netvirt.dhcpservice.DhcpAllocationPoolManager.close(DhcpAllocationPoolManager.java:88)

Change-Id: I5d7482a0bf6ffbaf34dea0ebca1566ff641fea7c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 8588 - NPE at at org.opendaylight.netvirt.fibmanager.VrfEntryListener.createLocal... 46/58246/3
Janki Chhatbar [Mon, 5 Jun 2017 13:25:52 +0000 (18:55 +0530)]
Bug 8588 - NPE at at org.opendaylight.netvirt.fibmanager.VrfEntryListener.createLocalFibEntry

Check for null.
Minor code clean

Change-Id: I3a0bd4b4e38ddd0830012bc24a718a39f24ceeaf
Signed-off-by: Janki Chhatbar <jchhatba@redhat.com>
7 years agoBug 8609 - CSIT Sporadic failures - vpnservice suite - l3 rule leftover in 83/58483/3
eupakir [Thu, 8 Jun 2017 09:48:40 +0000 (15:18 +0530)]
Bug 8609 - CSIT Sporadic failures - vpnservice suite - l3 rule leftover in
table=19

A router interface reference in a VPN will have to be removed before the
host interface references for that subnet in the VPN are removed. This is
to ensure that the FIB Entry of the router interface is not the last entry
to be removed for that subnet in the VPN.
If router interface FIB entry is the last to be removed for a subnet in a
VPN , then all the host interface references in the vpn will already have
been cleared, which will cause failures in cleanup of router interface
flows.

Change-Id: I53d0c99a344e81ecefe2e9235215f64ecbdf020e
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
7 years agoSimplify some streaming constructs 89/58389/3
Stephen Kitt [Wed, 7 Jun 2017 08:25:59 +0000 (10:25 +0200)]
Simplify some streaming constructs

Change-Id: If48c31a56e1667597dc540ac5068fe731058a6e1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBug 8549 - Inter OVS traffic over EVPN does not work with 91/58391/2
eupakir [Wed, 7 Jun 2017 09:11:07 +0000 (14:41 +0530)]
Bug 8549 - Inter OVS traffic over EVPN does not work with
openstack-vni-semantics-enforce set to true

Change-Id: I401107b046695ec9af9feebbc47ecce0461b0b07
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
7 years agoBug7830:Conflict modification exception for NAT 17/58317/5
karthikeyan [Tue, 6 Jun 2017 09:49:22 +0000 (15:19 +0530)]
Bug7830:Conflict modification exception for NAT

Problem Statement:
===================
Conflicting modification for path exceptions was throwing from NAT module
for the flow creation of table21->26 and table47->21

Solution:
============
Table21->26 flow creation was happening in 2 more classes. To avoid
race-condition have introduced DJC to install and remove the flow.

Change-Id: Ib6c47667c9245d50eb51a7baa3d7969aa05b325b
Signed-off-by: karthikeyan <karthikeyan.k@altencalsoftlabs.com>
7 years agoBug 8614: NPE observed in cloud-sc's VrfListener 52/58352/4
Miguel Perez [Tue, 6 Jun 2017 15:14:47 +0000 (17:14 +0200)]
Bug 8614: NPE observed in cloud-sc's VrfListener

Change-Id: Ief4b9b90c96e1e426b9399389538cd14b39fc942
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
7 years agoBug 8595 - DNAT traffic from DC gateway to FIP fails 72/58272/2
cgowdru [Mon, 5 Jun 2017 17:18:03 +0000 (22:48 +0530)]
Bug 8595 - DNAT traffic from DC gateway to FIP fails

Description :

In PDNAT_TABLE, we have a FIP mac match for performing FIP to internal IP
translation. But in L3_LFIB_TABLE, the destination mac has not been
updated and as a result, the reverse traffic for FIP were dropped.

Changes done to update packet with destination FIP mac as a result,
PDNAT_TABLE has specifc match and FIP to internal IP translation been done
properly.

Change-Id: I3fec733c7a8c049808a09828b8090daed12c83fc
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
7 years agoBug 8585: Exception with invalid QoS Alert params 76/58276/1
Arun Sharma [Mon, 5 Jun 2017 17:33:25 +0000 (23:03 +0530)]
Bug 8585: Exception with invalid QoS Alert params

Root cause - When invalid config parameter is set through karaf shell,
in-memory configuration is updated before data validation. Invalid configuration
later gets rejected but this makes configuration inconsistent. Any subsequent, configuration
is rejected until problematic parameter is set to valid value.

Fix - Update the QoS Alert configuration parameters only after validation.
Same as done for configuration through REST.

Change-Id: Ia46664850f3c7abe0ce74f76cf7e35bdbd79c7c6
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
7 years agoFix checkstyle problems not detected by the current version 96/58196/3
David Suarez [Sat, 3 Jun 2017 12:55:02 +0000 (14:55 +0200)]
Fix checkstyle problems not detected by the current version

This change is required for overall move to new Checkstyle version, see
https://git.opendaylight.org/gerrit/#/q/topic:bumpCheckstyle

Change-Id: I8f9c20211a2936cf964f2cf51f8e41ffa180bb07
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoBug 7451 - guarding NPE 67/58167/5
Periyasamy Palanisamy [Fri, 2 Jun 2017 05:48:53 +0000 (11:18 +0530)]
Bug 7451 - guarding NPE

added few null checks to avoid nullpointerexceptions

Change-Id: I8b077f1d87d79bfe3804d8daabdf391a5358f301
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agoBug 8581: DNAT failure with openstack/ocata 76/58176/3
cgowdru [Fri, 2 Jun 2017 13:12:08 +0000 (18:42 +0530)]
Bug 8581: DNAT failure with openstack/ocata

Problem Statement:
===================
DNAT traffic is getting failed because of missing DNAT flows in switch
(DPN). This issue was observed in openstack stable/ocata only.

Solution:
==========
Due to invalid check in NeutronPortListener.update(), certain FIP DS entry
where not populated and as a result, required DNAT flows where not installed.
Changes done to create required FIB DS entries properly.

Change-Id: Ia11a7e1d28288d762d26c3897d1612401d4ee8fa
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
7 years agoelanName is null 24/58224/2
Janki Chhatbar [Mon, 5 Jun 2017 07:06:54 +0000 (12:36 +0530)]
elanName is null

Check for elanName. If null, return.

Change-Id: I72c931477c6d8ae464a654095383f8537ef6748e
Signed-off-by: Janki Chhatbar <jchhatba@redhat.com>
7 years agoBug 8586: Alarm raised due to stale stats polling 42/58242/2
Arun Sharma [Mon, 5 Jun 2017 11:38:08 +0000 (17:08 +0530)]
Bug 8586: Alarm raised due to stale stats polling

Root cause - When port stats polling is enabled, first poll returns
old data (Rx bytes and Dropped bytes) when QoS alert was not enabled.
Alert may get logged if stale stats has dropped % > threshold value

Fix - Alert should not be logged based on first poll data. Use first poll data
to set the baseline counts and raise alert on subsequent polls based on the delta
of counts between the polls.

Change-Id: Ic12f3d41e7c0277109acc51ab548e1a7d0b4d13b
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
7 years agoReplace LOGGER by LOG 81/57981/3
David Suarez [Mon, 29 May 2017 13:40:59 +0000 (15:40 +0200)]
Replace LOGGER by LOG

Replace LOGGER by LOG to follow the
OpenDaylight recommendations [1].

[1]
https://wiki.opendaylight.org/view/BestPractices/Logging_Best_Practices

Change-Id: I038b8fc9a16b7443fcdefcad1bc12283151ba503
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>