docs.git
7 years agoUpdated git submodules
Stephen Kitt [Fri, 16 Jun 2017 14:05:42 +0000 (16:05 +0200)]
Updated git submodules

Project: netvirt stable/carbon 7b5cdf963d51295b7588a762279908113216918e

Fix null Optional instantiations

Optional type variables must never be null.

Change-Id: I86af0a9c11dca31b00d72818210d0afb0bcbcff9
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoUpdated git submodules
Stephen Kitt [Fri, 16 Jun 2017 13:10:31 +0000 (15:10 +0200)]
Updated git submodules

Project: netvirt stable/carbon 1393b174d768978479c2bcc8f49811c2d7ca2fde

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 agoUpdated git submodules
mor.zvi [Sun, 5 Mar 2017 13:37:57 +0000 (15:37 +0200)]
Updated git submodules

Project: integration/test master 31fb94bf9f599c61cc683f2d5d5493bc314942f3

Enable some ipv6 tempest.scenario cases

Change-Id: If16b2367fcaa9a2a4ee61db3e31095e4f2ebe3b6
Signed-off-by: mor.zvi <mor.zvi@hpe.com>
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoUpdated git submodules
Luis Gomez [Sat, 17 Jun 2017 19:49:36 +0000 (12:49 -0700)]
Updated git submodules

Project: releng/builder master c4b23edec73340b9d8d3d28e9d31828afa480e35

Fix bundle URL dectection script

Both jenkins and nexus use similar URL structure:

*/artifact/version/artifact-version*.zip

Change-Id: I2eeef3484f9ae0b4732a45f9b5c93ec2703a5c5a
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
7 years agoUpdated git submodules
Stephen Kitt [Fri, 16 Jun 2017 12:58:08 +0000 (14:58 +0200)]
Updated git submodules

Project: netvirt stable/carbon 86dfa540619d83734380428909ef52403e585bfb

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>
(cherry picked from commit b53e6bdf8ab17e4f96d49d607c3eae0a7332b73c)

7 years agoUpdated git submodules
Janki Chhatbar [Fri, 16 Jun 2017 06:20:15 +0000 (11:50 +0530)]
Updated git submodules

Project: netvirt stable/carbon 1fff16efb7fbfad3133caa90a42a17cef2fb6813

Minor code clean-up

Replace vrfEntry.getDestPrefix with localNextHopIP in createLocalFibEntry

Change-Id: I7f891ce9a692723829c749736e7f5d89011822d9
Signed-off-by: Janki Chhatbar <jchhatba@redhat.com>
7 years agoUpdated git submodules
Sridhar Gaddam [Fri, 16 Jun 2017 08:53:32 +0000 (14:23 +0530)]
Updated git submodules

Project: netvirt stable/carbon 60de1892898780c4047e634ba4c86c20129931ea

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 agoUpdated git submodules
eupakir [Thu, 15 Jun 2017 12:04:16 +0000 (17:34 +0530)]
Updated git submodules

Project: netvirt stable/carbon 9be663c4608df02ec9c8e570af6195e399d4525e

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 agoUpdated git submodules
Valentina Krasnobaeva [Thu, 15 Jun 2017 12:49:13 +0000 (14:49 +0200)]
Updated git submodules

Project: integration/test master d302a86c44b63aa6a4110ea7af2ae0721a759e78

OpenStackOperations.robot: format output

Make an output of "openstack router create" formatted, it makes test,
which are using OpenStackOperations.robot, more stable.

Change-Id: I70809cd9da2a7719728db05cc71e6e4717c3ca00
Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
7 years agoUpdated git submodules
Sam Hague [Thu, 15 Jun 2017 23:07:42 +0000 (19:07 -0400)]
Updated git submodules

Project: netvirt stable/carbon d24cb415e506edd3f94f6a00d907935f13eb1168

Use optional for dataBroker

Change-Id: Ifa83b22b5868ad024557b8a9c6ca9297c24a636a
Signed-off-by: Sam Hague <shague@redhat.com>
(cherry picked from commit 0e1d866844a1876cab7d47db8f5d66ba1b5e7816)

7 years agoUpdated git submodules
Valentina Krasnobaeva [Mon, 29 May 2017 09:50:23 +0000 (11:50 +0200)]
Updated git submodules

Project: integration/test master 3c90bb44094929ed6000ce09deed4d10fdfaf239

IPv6: refactor 01_basic_vpnservice.robot

Unify variables names and move some of them to netvirt/Variables.robot
lib for reusing it in future Ipv6 L3VPN basic tests.

Move some keywords and checks to OpenStackOperations.robot and
VpnOperations.robot libs as well, for having an ability to reuse it
future IPv6 L3VPN basic tests.

Change-Id: I812bbfb9d619d46e20fd05747212ab32c3933eb8
Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
7 years agoUpdated git submodules
Vivekanandan Narasimhan [Fri, 16 Jun 2017 17:19:32 +0000 (22:49 +0530)]
Updated git submodules

Project: netvirt stable/carbon f927129623950729507d14e360c7ca627d797d72

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 agoUpdated git submodules
Faseela K [Sat, 17 Jun 2017 00:37:27 +0000 (00:37 +0000)]
Updated git submodules

Project: genius stable/carbon 660687dcc0960ce31eb2368740871f782d3706a3

Merge "Bug 8146:BFD tunnel monitoring interval update fix" into stable/carbon

Bug 8146:BFD tunnel monitoring interval update fix

Added support for dumping more caches
Caches were not getting cleared correctly. Fix to remove tunnels from Cache whenTEPs are deleted.

Change-Id: I4bbc5e203cf90f81ba9b9b70818c4972d05ef2c6
Signed-off-by: Hema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
7 years agoUpdated git submodules
Daniel Farrell [Sat, 10 Jun 2017 21:30:07 +0000 (17:30 -0400)]
Updated git submodules

Project: integration/packaging master d5911bb92cc6033b350c3dc6071f859bf42dcc99

Major docs update

Change-Id: I56396daabbdbe213dee61992533335be38ff70d0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Jamo Luhrsen [Fri, 16 Jun 2017 23:48:59 +0000 (23:48 +0000)]
Updated git submodules

Project: releng/builder master 63e9993ad921bad51c005e410942287368308229

Merge "Add OVSDB TLS connection tests in AAA project"

Add OVSDB TLS connection tests in AAA project

Feature odl-ovsdb-southbound-impl-ui added to features to install.
Added tools_system_image: Ubuntu 14.04 - mininet-ovs-25 - 20170210-0300.

Change-Id: Ie72a00a32bee59f0446606344625184fc097fcb2
Signed-off-by: Ricardo Riolobos Sanz <ricardo.riolobos.sanz@ericsson.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Luis Gomez [Fri, 16 Jun 2017 03:24:16 +0000 (20:24 -0700)]
Updated git submodules

Project: integration/test master fbf52a16d32c4feb70263caddfec05c2dc796bc6

Add test logging in karaf console

Change-Id: I3b96e98cceaef9445e648b35fa6073cd9748bb05
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
7 years agoUpdated git submodules
Thanh Ha [Fri, 16 Jun 2017 15:30:09 +0000 (15:30 +0000)]
Updated git submodules

Project: releng/builder master 5c48c347ec44665ae8af06020cc4825658aadb73

Merge "Autorelease Nitrogen to upload K4 distro"

Autorelease Nitrogen to upload K4 distro

Change-Id: I7389377dc3f160500ad5443570c4f8e89cce7b8e
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
7 years agoUpdated git submodules
Jamo Luhrsen [Thu, 15 Jun 2017 22:38:09 +0000 (22:38 +0000)]
Updated git submodules

Project: releng/builder master 1cf391d4911d3a4768db0aa6d6f254f47c963538

Merge "Do not archive dependencies.log"

Do not archive dependencies.log

We do not want to use Jenkins as an archiving service.

Change-Id: Iee3dc16a14840528e9e10447e230397c8f1a6ac3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Valentina Krasnobaeva [Thu, 15 Jun 2017 12:02:20 +0000 (14:02 +0200)]
Updated git submodules

Project: integration/test master 7d43097353ba885f57a3bc1ed79249257344d9b1

netvirt: fix for openstack router set command

Due to migration to Openstack CLI in OpenStackOperations.robot and
DevstackUtils.robot, introduced in the following commit
02eb3418af8de2831ad8a5aa1d119746fffd1bac ("Migrate to Openstack CLI"),
appropriate fixes are needed for ${RT_OPTIONS} and ${RT_CLEAR}
variables, which are holding arguments of "openstack router set"
command.

Change-Id: I0b536af35e986d21aa0d1772d6c62b4e7b5eda28
Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
7 years agoUpdated git submodules
Janki Chhatbar [Mon, 5 Jun 2017 08:48:31 +0000 (14:18 +0530)]
Updated git submodules

Project: netvirt stable/carbon 407be04a28df618db0c2599c7b687fb70e76920c

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 agoUpdated git submodules
Michael Vorburger [Wed, 14 Jun 2017 13:38:51 +0000 (15:38 +0200)]
Updated git submodules

Project: federation master 53971fce51da881659a9c3cd6873c2fd357ef129

Add missing xml:config to federation-service-impl

see https://lists.opendaylight.org/pipermail/netvirt-dev/2017-June/004692.html

Change-Id: Ic1aff622c5b5b614534126ea1b0778434e5afaed
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoUpdated git submodules
Jamo Luhrsen [Thu, 15 Jun 2017 00:01:54 +0000 (17:01 -0700)]
Updated git submodules

Project: releng/builder master 7b0ad93482e401875ec7785d4c3a6c17be4041e2

Use hardcoded karaf4 bundle-url for nitrogen

In the case of nitrogen we want to run netvirt CSIT
with the netvirt project created karaf4 distribution

Change-Id: I2e086a959524bfc7d16730fb4c7ab84f96a90225
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoUpdated git submodules
Faseela K [Thu, 15 Jun 2017 16:50:28 +0000 (22:20 +0530)]
Updated git submodules

Project: integration/test master 8f4eb759cbf9932322fb91dc77f8e79104c7cbd2

Fix issues with genius script plans

Change-Id: I39d210ef3902901f658939170ffdb4759e60e24b
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoUpdated git submodules
Faseela K [Thu, 15 Jun 2017 06:52:02 +0000 (12:22 +0530)]
Updated git submodules

Project: integration/test master 369706e1243f62de32f9edd9fbc5c5f205a9c754

Rename genius scriptplans

Rename genius scriptplans to align to the changes in releng/builder

Change-Id: I7bbc2b954810ff40c5cf2489079a34c7edc7dca8
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoUpdated git submodules
Michael Vorburger [Thu, 15 Jun 2017 15:00:35 +0000 (15:00 +0000)]
Updated git submodules

Project: genius stable/carbon 2552766edf56459c18249cf3888ff908a788ac7a

Merge "Listener base classes should not throw exception if close()'d" into stable/carbon

Listener base classes should not throw exception if close()'d

for AsyncClusteredDataTreeChangeListenerBase and
AsyncDataTreeChangeListenerBase, by introducing a new
ShutdownLoggingExecutorService infra util. related to -1 discussion in
https://git.opendaylight.org/gerrit/#/c/57004/

This is an alternative proposal to the ShutdownLoggingExecutorService
idea from https://git.opendaylight.org/gerrit/#/c/57156/

Change-Id: I5884a188fb5ea3581f99cc559acb158ed370ed7b
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoUpdated git submodules
Jamo Luhrsen [Wed, 14 Jun 2017 23:31:55 +0000 (23:31 +0000)]
Updated git submodules

Project: releng/builder master 347dd3417f85f06c999e7e9059de4df34bf57589

Merge "Update Ubuntu 1404 with 1604 mininet-ovs-25 images"

Update Ubuntu 1404 with 1604 mininet-ovs-25 images

All the mininet images are updated with Ubuntu 16.04 as per
thread since CSIT jobs are still using the outdated 14.04 images:
https://lists.opendaylight.org/pipermail/dev/2017-March/003484.html

Change-Id: Ie898c8e22d12e0bc167ccaabb7470d0b5d6033ac
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Jamo Luhrsen [Wed, 14 Jun 2017 23:31:46 +0000 (23:31 +0000)]
Updated git submodules

Project: releng/builder master 0ee3c05331b174e1be5d2adad43b9bdaae50ffb1

Merge "Update Ubuntu 14.04 mininet images"

Update Ubuntu 14.04 mininet images

Change-Id: Ib2cf297757d048d612c3229480f1c9c8cacba26f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Jamo Luhrsen [Wed, 14 Jun 2017 23:31:32 +0000 (23:31 +0000)]
Updated git submodules

Project: releng/builder master 8d12b324463c0e3357d7eb2f52e63319d0ef9068

Merge "Update CentOS7 docker images"

Update CentOS7 docker images

Change-Id: I8412fa541c0895a00a0f71ffe6cd53d17b91399d
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Jamo Luhrsen [Wed, 14 Jun 2017 23:31:22 +0000 (23:31 +0000)]
Updated git submodules

Project: releng/builder master b30e58394f7c9e1c7c354922cf2a27a83a0df15e

Merge "Update CentOS7 devstack-newton images"

Update CentOS7 devstack-newton images

Change-Id: I3e13336fb5786c3fef732c44ca2b0de83d14e527
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Len [Thu, 1 Jun 2017 18:26:38 +0000 (11:26 -0700)]
Updated git submodules

Project: integration/test master c7cff03eb26cb49fab7f334e7094797cbda39ec7

Add new test cases to clustered reconciliation

Change-Id: Id1df778573e4cc6efcdb8d228c577648df214d96
Signed-off-by: Len <lgiersch@brocade.com>
7 years agoUpdated git submodules
Miguel Perez [Thu, 8 Jun 2017 13:41:56 +0000 (15:41 +0200)]
Updated git submodules

Project: netvirt stable/carbon a0b48836df8e539a461d6778be4f68039877f152

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 agoUpdated git submodules
Thanh Ha [Tue, 13 Jun 2017 20:14:42 +0000 (16:14 -0400)]
Updated git submodules

Project: federation master be26d98fc6a8c2da5c38ea394038eb69ac5a04ef

Migrate to odlparent 1.9.0

Change-Id: If5d3a4fb110d2481ace06d97e930f4834b9bb17f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Andrej Kilvady [Thu, 8 Jun 2017 07:15:37 +0000 (09:15 +0200)]
Updated git submodules

Project: integration/test master 545a0dcdfe47066579b05f21d49b8dc6312d05ce

Add service deletions to all (BGP-related) suites

Change-Id: Ieacb594a8fc9c23eb3e9b5d684e5ba59365a011d
Signed-off-by: Andrej Kilvady <akilvady@cisco.com>
7 years agoUpdated git submodules
Vratko Polak [Wed, 14 Jun 2017 13:27:56 +0000 (15:27 +0200)]
Updated git submodules

Project: integration/test master 129c121903a81cd17cccf715af879702e51e4bb6

Fix handling of nested list responses

${resp}[2] is bad, @{resp}[2] is good.
@{resp}[0][2] does not work, handled using custom keyword.
This should fix MdsalLowlevelPy response handling.

Return tuple contains time first, prefix-id second.
Prefix_id is a string derived from integer member index argument.

Change-Id: If39ebc14f641be5383ed9fc6302a4bb8b38b9336
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoUpdated git submodules
Anil Belur [Wed, 14 Jun 2017 13:02:04 +0000 (13:02 +0000)]
Updated git submodules

Project: releng/builder master 3cc7eaa3efdeb8d7cebdac87f1aab7cb3e822387

Merge "Create baseline images for Ubuntu16.04 and Centos7"

Create baseline images for Ubuntu16.04 and Centos7

Packaging and builder jobs could simply use the baseline images
and does not require any extras.

Change-Id: I4ecb0df93990a53c61d7f9a2cd7e2887dbdf5cfa
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
jenkins-releng [Wed, 14 Jun 2017 11:02:18 +0000 (11:02 +0000)]
Updated git submodules

Project: releng/builder master dad7352c82de9817a78d2e46fea4c4372b5809db

Update cloud image list docs

Change-Id: I9ae9012af93b568dabaca448a3d6579f0abb2eb7
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
7 years agoUpdated git submodules
Atul Gosain [Wed, 7 Jun 2017 22:10:02 +0000 (15:10 -0700)]
Updated git submodules

Project: aaa stable/carbon 2a5c42ef3b8e7962f70b00e8db17d32a57e9e053

Utility service to encode/decode public/private keys of type RSA, DSA and ECDSA.
Placing it here to make a common place to access this service.

Change-Id: I614a49fb7adc8fe569fc2959a79ce4a74fe6b548
Signed-off-by: Atul Gosain <agosain@brocade.com>
Merge "Fix a parameter description in the CLI" into stable/carbon

Merge "Bug 8382: disallow client specified ids" into stable/carbon

Merge "Remove <prerequisites><maven> from pom.xml to avoid WARNING" into stable/carbon

Fix a parameter description in the CLI

Minor fix for the user's email parameter description.

Change-Id: Iae54cebbba72ce315eaca3928ee822f401c08210
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
(cherry picked from commit b3f7f080bd5381d2e037281e2215cf31c5e68cfa)

Merge "Bug 8352: Explicitly set the SecurityManager" into stable/carbon

Merge "Bug 8382: Update idmtool to not utilize ids in payload" into stable/carbon

Bump versions by x.y.(z+1)

Change-Id: I465de156a314f75098f7999c914d9cc6f0f7c89c
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Bug 8352: Explicitly set the SecurityManager

This issue is described more in depth in this thread:

http://shiro-user.582556.n2.nabble.com/ \
Shiro-with-Wicket-on-OSGi-ServiceMix-td7580484.html

We found that sometimes the SecurityManager for Shiro
is not set otherwise

Change-Id: I69829136f999d458058f0f112240cdf29bd1edc5
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
(cherry picked from commit eebc2121983af108f0e2c34e241bec69dbd9c7f1)

Bug 8382: Update idmtool to not utilize ids in payload

id is an internal implementation detail, as outlined by
bug 8382.  Prior patches were submitted to enforce that.
This patch just removes specification of the id as part
of the wrapped requests.

Change-Id: If1e12b899840b2c316400846bfcaf3c91d1ec11d
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
(cherry picked from commit eabafff5881afbe35b0aba05b5de4f100aff7681)

Bug 8382: disallow client specified ids

ids are an implementation specific internal detail.  Thus,
AAA should endpoints should prevent users from specifying
such values.

This change fixes the behavior by returning 400 when ids
are specified.  Appropriate test cases are added.

Change-Id: I15cc66f9881347334b919dbeb6bc686694367bd6
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
(cherry picked from commit 2052b21a43e51c996573e3f34c54adf89cce83d6)

Remove <prerequisites><maven> from pom.xml to avoid WARNING

[WARNING] The project ... uses prerequisites which is only intended for
maven-plugin projects but not for non maven-plugin projects. For such
purposes you should use the maven-enforcer-plugin. See
https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

This is already done in odlparent.

Change-Id: Iedfaeb92fba3bf392554ece1f20358060c398a00
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
(cherry picked from commit db8f4eda4dba15a467f4832ce4dd3a6857e4ae0d)

KeystoneAuthRealm: reuse http client

Jersey documentation advises against building multiple clients of the
same characteristics and advertises that is perfectly safe to use the
same client over multiple threads.

Moreover, each time the SSL context is obtained, it may synchronize the
keystores from the filesystem or the database. KeystoneAuthRealm
assumes a dynamic certificate handling.

The purpose of this commit is to reuse the http client to some degree
while refreshing it rather frequently due to the dynamic certificate
handling.

Change-Id: Ifa188ad6f2a99e64c5d560d58057428aab37df26
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
(cherry picked from commit b0307517b42a751754f48775e434ff1c0c06ac36)

Merge "Do not override versions defined in odlparent" into stable/carbon

Merge "Bug 8214:  Avoid throwing NPE when DataBroker is null" into stable/carbon

Do not override versions defined in odlparent

This fixes commons-codec version duplication, cutting ~250kB
from distribution package.

Change-Id: I7812e5ac8ae02de25d9359eda12e78642cf33f41
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bug 8214:  Avoid throwing NPE when DataBroker is null

MDSALDynamicAuthorizationFilter is instantiated by shiro when
the web container is brought up.  shiro has no knowledge of
the DataBroker, so the dependency cannot be injected in shiro.ini.

shiro.ini needs to die, and is tracked by Bug 7793.  For now,
to avoid throwing the NPE (in the case that the DataBroker hasn't
been brought up yet), just fail-close until the dataBroker is
made available (i.e., AAAShiroProvider.newInstance(DataBroker)
is called).

Change-Id: I28e2eb0780f4f7761a5e2f81d167afc5a4b10cba
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
Bug 8373: Set destroy method for aaa h2 store

Change-Id: I3eeec2f11240c10cc70ebb7f52560cc12da19880
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
(cherry picked from commit 02df05821adbfac0e13404242eb59f376fff7abb)

Bug 8214 Prevent NPE in isolation scenario

If the datastore is not readable, then fail out gracefully.
Deny access to prevent unauthorized requests from
succeeding, and report a warning to karaf.log.

Change-Id: I0b40d27b3346d8a0357f41e8c68464057d4ec1c0
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
(cherry picked from commit e23fb31d5fd5cd940c9300c7c8ca5d132d18523c)

Merge "Do not override shiro-core version" into stable/carbon

Fix NPE in TokenAuthRealm

If the TokenStore is not available, do not throw a NPE.

Change-Id: Ie346e89dd1dc29c705f51712e58859065b81a787
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit d053633f7e1f5fd94dd58a877835e58b09e5a0d0)

Do not override shiro-core version

This is a duplicate dependency, with managed version being 1.3.2.
Remove the duplicate declaration.

Change-Id: I4bd5f6121e2a03a0f7e72bb9d1d9566ba0d3df23
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bug 8313 hard code encry serv config

Updating the config seems to be causing issues in loading.

Change-Id: Iec467c589d56eb44a87f8e68b9f45ee2263b929b
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
Clean read-only transactions

Read-only transactions are documented to be a resource and should
be closed as soon as they are not needed. Failing to do so
triggers warnings in tell-based protocol in CDS, as they trigger
inefficient GC-triggered cleanup.

Change-Id: Ia8468704a75fd42c105f3fba49f817d5c2e0ec30
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Bug 8214: Expose Service Interface for AAA

Hitherto, the tie between AAA and its downstream consumers has been
nebulous.  The instantiation of javax servlets requires runtime
dependencies to be resolved.  Bug 8214 exposes a race condition
in which RESTCONF attempts to resolve AAAFilter, but the AAA
service is not yet instantiated.  To resolve this, the solution
is to:

1) expose a AAAService interface.  In this case, that is quite
easy since we already have the necessary implementation,
AAAFilter.  Thus, all that is done is the extraction of the
service interface.

2) Advertise the service to the OSGI registry via blueprint.
This is a quick 3 liner.

A corresponding change will be submitted to the downstream
consumer (RESTCONF) to depend on AAAService.

Change-Id: I5d8208ddbe817963ce596ecc34ad38ff0f760410
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
(cherry picked from commit 6469cab6eb7d4eec7db440183f5a3b08f27eb763)

Update .gitreview to stable/carbon

Change-Id: I7e7292c0ee73d712bfe9f00e658be41ac530b048
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Peter Gubka [Fri, 9 Jun 2017 10:33:43 +0000 (12:33 +0200)]
Updated git submodules

Project: integration/test master 4475659d1f5ef8ef9979fcb7452210a63480c4e6

Workaround for bug 8636

Abort timout will be counted from transactions init, not from
node isolation.

Change-Id: Ia699b26294b98bc874d3aab8cb3d0dac422a8809
Signed-off-by: Peter Gubka <pgubka@cisco.com>
7 years agoUpdated git submodules
SivaKumar Perumalla [Tue, 13 Jun 2017 10:07:03 +0000 (10:07 +0000)]
Updated git submodules

Project: netvirt stable/carbon c59ae8ba991130ee741401f06f0a19b5253fa737

Fixes:
 - BgpAlarms: avoid un-necessary reading of neighbor list

Change-Id: I4cded3511710cdeabd2fa8abb75cb35bf47b7bf7
Signed-off-by: SivaKumar Perumalla <sivakumar.perumalla@ericsson.com>
7 years agoUpdated git submodules
Daniel Farrell [Wed, 14 Jun 2017 00:10:06 +0000 (00:10 +0000)]
Updated git submodules

Project: releng/builder master 7c59c6d089a37274e43017f9265eeed3a7b63ecf

Merge "Update packaging jobs to use Ubuntu 16.04 images"

Update packaging jobs to use Ubuntu 16.04 images

Change-Id: Ifd82827424b6dd75d14330e6a18800d8e1a7e25f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Anil Belur [Wed, 14 Jun 2017 00:00:56 +0000 (00:00 +0000)]
Updated git submodules

Project: releng/builder master f799368e306fba0b0d813f81b6234aa82637fe51

Merge "Remove odlparent-validate-autorelease nitrogen job"

Remove odlparent-validate-autorelease nitrogen job

odlparent is no longer part of the autorelease nitrogen release so
remove the validate-autorelease job for the project.

Change-Id: I06abbafcda5039302188b72ff6ba9e4a856afb52
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoDo not build libdoc in parallel 95/58895/1
Thanh Ha [Tue, 13 Jun 2017 16:57:38 +0000 (12:57 -0400)]
Do not build libdoc in parallel

Attempt to fix RTD build. Suspecion is we might be starting too many
parallel processes to generate the docs and getting our process killed.

Change-Id: I6e7c98ddcd5398143bc6949038527f49d450ecd3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
(cherry picked from commit a248f1b58bad6e83be48703eb600e8038d2a4389)

7 years agoUpdated git submodules
Daniel Farrell [Tue, 13 Jun 2017 17:19:03 +0000 (17:19 +0000)]
Updated git submodules

Project: releng/builder master 3db1010a1acc7ec4f4cd9ca4d4171b733fe8091b

Merge "Capture logs for all packaging jobs"

Capture logs for all packaging jobs

Using publishers is recommended for jobs to refer logs
at anytime, and also would help minimizing the loads on Jenkins.

Change-Id: Ie0d766394693a44ba58d1f01d73d2dd6e1d26224
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Tue, 13 Jun 2017 16:32:15 +0000 (16:32 +0000)]
Updated git submodules

Project: releng/builder master b62e4a1dd9912bf4ece24dd05485b6008cb212d2

Merge "Bug 8625: Remove Nitrogen Karaf 3 jobs"

Bug 8625: Remove Nitrogen Karaf 3 jobs

All jobs related to Karaf 3 in Nitrogen should be removed,
as TSC voted on not spending any cycles on Karaf 3 in Nitrogen.

Karaf 4 is the new default for CSIT in Nitrogen,
so it is expected some jobs start failing
for projects not fully working on Karaf 4.

Change-Id: Iae504c2acf6576f15cffa7f91b4cdcb37599ddbe
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoUpdated git submodules
Thanh Ha [Tue, 13 Jun 2017 15:00:08 +0000 (11:00 -0400)]
Updated git submodules

Project: releng/builder master 5091cdcddb09d7459257401594e38811eb8a9478

Call openstack directly

Rather than using $PYTHON $OPENSTACK as have acceptable virtualenv paths
now.

Also fix ShellCheck in this file.

Change-Id: Ib2cda5d1b4c5f90138d92479f5ed786182fd247a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Vratko Polak [Tue, 13 Jun 2017 14:12:08 +0000 (16:12 +0200)]
Updated git submodules

Project: releng/builder master 6844309cc3150aa23fbc6ea384aba930dd137274

Fix virtualenv usage in integration

Virtualenvs are in /tmp/v/{name}.
This inclused "openstack" venv.
Add missing --upgrade to every pip install line.

Change-Id: Ifd0dc429b6e088e9d86dea9ee57d33b2363ba7eb
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoUpdated git submodules
Faseela K [Tue, 13 Jun 2017 12:15:59 +0000 (17:45 +0530)]
Updated git submodules

Project: genius stable/carbon 9a5c5ae535e3295006382ab011c7fc8078cbf1fb

Fixing a typo in DJC log statement

Change-Id: Iff8853ea40b547235d36d495a23ce0fa055abff6
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoUpdated git submodules
Faseela K [Tue, 13 Jun 2017 11:12:59 +0000 (11:12 +0000)]
Updated git submodules

Project: genius stable/carbon 32ab887f3b4cc377e157fecfc4cc5fb4a50b49ec

Merge "Bug 8555 - Too many log info print to the console" into stable/carbon

Bug 8555 - Too many log info print to the console

Change-Id: I19133b5e7b2768ff5762bcf5d4a97994178a893b
Signed-off-by: 肖锋钢10072566 <xiao.fenggang@zte.com.cn>
7 years agoUpdated git submodules
Anil Belur [Tue, 13 Jun 2017 07:34:32 +0000 (07:34 +0000)]
Updated git submodules

Project: releng/builder master 57722c50f63e890b6daa09f8f4e710b6de4a955c

Merge "Install virtualenvs into /tmp/v"

Install virtualenvs into /tmp/v

The kernel has a limit on how long a shebang can be and causes build
issues when we store virtualenvs in $WORKSPACE for jobs that have very
long names. Move virtualenv installs into /tmp/v will solve this issue
for good. Also no need for workarounds like `$PYTHON -m pip` anymore.

Change-Id: Iaab7eeb5144ba26ba8ea58efc631c4d7a5c0f60c
Jira: RELENG-156
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Tue, 13 Jun 2017 05:19:07 +0000 (05:19 +0000)]
Updated git submodules

Project: releng/builder master 888ab956c2711ba59ff1ca3d627b9e44d1b14025

Merge "Install py3 virtualenv only on Ubuntu 16.04"

Install py3 virtualenv only on Ubuntu 16.04

python3-virtualenv package is not available on Ubuntu 14.04
which causes the packer job to fail

Change-Id: Ia99b372c6123abd282e4a37bfb4b1f1ef0582613
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Tue, 13 Jun 2017 05:10:31 +0000 (05:10 +0000)]
Updated git submodules

Project: releng/builder master 7059d282f972c0a9cfeeb334e243c1f3ffa12508

Merge "Remove bash validate for provision scripts"

Remove bash validate for provision scripts

With shellcheck in place we dont need to validate scripts with
bash, which is outdated.

Change-Id: I6e98c6e58afeea350c89c88ed6c6508e6170a8ad
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Tue, 13 Jun 2017 02:49:11 +0000 (22:49 -0400)]
Updated git submodules

Project: releng/builder master 98878088672b7f5b1aa9fc369d93ed405f1f9bbb

Update to global-jjb v0.3.4

Change-Id: Id9998913889c9cda39a79cf364012ec6d1297691
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Mon, 12 Jun 2017 23:24:23 +0000 (19:24 -0400)]
Updated git submodules

Project: releng/builder master 81b16a329f39ed7f542c8e78d50bdd7cb6e31666

Bump global-jjb to v0.3.3

Change-Id: Iedb0721fd53a849d407428d9dd6ec0fcc31da5e0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Mon, 12 Jun 2017 22:52:24 +0000 (18:52 -0400)]
Updated git submodules

Project: releng/builder master 5f69f878295ea8209444ad163d0c1cc6f3ebf775

Rename odl-global-settings to global-settings

Simplify the naming to be consistent with other LF projects for this
file.

Change-Id: I875f9a5c51074627b7c617957a185e3e2fb5ba80
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Sam Hague [Mon, 12 Jun 2017 21:11:58 +0000 (21:11 +0000)]
Updated git submodules

Project: releng/builder master 137c7f294877b3f302a9d7f6dd96e74e0aba99be

Merge "Remove sysstats change to avoid duplicity"

Remove sysstats change to avoid duplicity

Now we have sysstats as part of lf-infra-publish which is integrated
into global-jjb repo, therefore remove all sysstat changes.

Change-Id: Idc046f18726c2afafb6578d1adcfc83dfc2614fb
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Arun Sharma [Mon, 12 Jun 2017 12:08:47 +0000 (17:38 +0530)]
Updated git submodules

Project: netvirt stable/carbon 470f4b05acf9a06d0676881b232decf288c7e8df

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 agoUpdated git submodules
Michael Vorburger [Thu, 1 Jun 2017 05:10:06 +0000 (07:10 +0200)]
Updated git submodules

Project: netvirt stable/carbon ba90814c9c3d740307c13a87482a8e77636aa2c3

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 agoUpdated git submodules
Thanh Ha [Mon, 12 Jun 2017 18:46:20 +0000 (14:46 -0400)]
Updated git submodules

Project: releng/builder master fc19a60b9220639e418c268ff5c1d3779de4c152

Add odlparent release job

- Bump global-jjb to v0.3.2 to fix typo
- Fix lf-infra jobs to use updated tox template names
- Setup odlparent release job for Nitrogen.

Change-Id: Ia726352870b85983c2373e903004887d8079621b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Sam Hague [Mon, 12 Jun 2017 18:39:21 +0000 (18:39 +0000)]
Updated git submodules

Project: releng/builder master e6632ca2ef8888a8fd73cd730624efa448a87d28

Merge "Make Boron autorelease run weekly"

Make Boron autorelease run weekly

Change-Id: I157a31c8a0dff89329a19be1e449d422071664ac
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Mon, 12 Jun 2017 18:31:05 +0000 (14:31 -0400)]
Updated git submodules

Project: releng/builder master 0a5e0dc2af46deea1bde2fbeb389218359f28a46

Update to global-jjb v0.3.0

Change-Id: I011d09c09980f2728d207e616bfffd3772532d66
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Stephen Kitt [Tue, 23 May 2017 09:20:50 +0000 (11:20 +0200)]
Updated git submodules

Project: genius stable/carbon 1e630b736b740864d6fb7ddabf6035898449c056

Use polymorphism instead of Optional

Optional shouldn’t be used instead of method polymorphism. This patch
deprecates
InterfaceManagerCommonUtils.createInterfaceChildEntry(String, String,
Optional) and replaces it with variants using either no transaction or
an explicit WriteTransaction.

Change-Id: If5face3a7629f71e4d004eadf2b45fb6175dc61f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoUpdated git submodules
Thanh Ha [Mon, 12 Jun 2017 15:01:41 +0000 (15:01 +0000)]
Updated git submodules

Project: releng/builder master 1f024cfc277d55296b94c012edd07fa4a9a8978a

Merge "Include python development for Ubuntu images"

Include python development for Ubuntu images

Building netifaces extension requires headers from
python-dev, without which pip install fails.

Move all python deps into baseline for Ubuntu and
CentOS images

Jira: releng-182
Change-Id: I9828d3c0aa855651e0daeb63b8451c9e041a3177
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Vijayalakshmi Chickkamenahalli Nagaraju [Wed, 17 May 2017 08:09:59 +0000 (13:39 +0530)]
Updated git submodules

Project: genius stable/carbon 19edb7995887868a06a5f6fe714af552b541dc80

Neutron Port Allocation For DHCP Service

Adding new ARP_CHECK_TABLE constant in NwConstants for Neutron Port
Allocation For DHCP Service.

New pipeline for DHCP & Gateway IP ARP Responder in ELAN.
LPort Dispatcher Table(17) -> ARP Check Table(43) -> ARPResponder Group
-> ELAN Base Table(48), ARP Responder Table(81), Controller
-> ELAN Base Table(48) (ARP Reply), Table 220( Floating IP ARP reply)

Change-Id: I2dce5e253d3c94180dd18e51125c5c18170b5c69
signed-off-by: Vijayalakshmi Chickkamenahalli Nagaraju <vijayalakshmi.c@altencalsoftlabs.com>
Signed-off-by: Achuth Maniyedath <achuth.m@altencalsoftlabs.com>
7 years agoUpdated git submodules
Anil Belur [Mon, 12 Jun 2017 09:47:23 +0000 (09:47 +0000)]
Updated git submodules

Project: releng/builder master 2e09bdd6007da932658670d3487c1f7b3a5cc3c1

Merge "Minor improvements to release notes job"

Minor improvements to release notes job

Tweak the job so that it is more compact and uses only the necessary
declarations.

- Move generate-release-notes job declaration into autorelease projects
  declaration as it uses the same variables as the rest of the jobs.
- Switch to a 4g VM as generating release notes does not require a large
  system.
- Only keep logs for 7 days as opposed to 30 days.
- Choosing strategy should be default as this is not a job that is
  triggered by Gerrit.
- Set timeout to 10 minutes as the job appears to run in less then 5
  minutes.
- Remove unnecessary parameters from Maven call as the mvn command does
  not deploy anything to Nexus.
- Use global-jjb macros.

Change-Id: I71d8b18656cf941e0ce691493011ffb10e289480
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Peter Gubka [Wed, 7 Jun 2017 15:26:11 +0000 (17:26 +0200)]
Updated git submodules

Project: integration/test master 7c3e0f8b38889c8538cdb964895e1a3c78fe5aaa

Improve dom data broker test templates

with request response pairing

Change-Id: Id2d59abf2bf6b73fe659948d872dc9639b726f42
Signed-off-by: Peter Gubka <pgubka@cisco.com>
7 years agoUpdated git submodules
Miguel Perez [Tue, 6 Jun 2017 14:40:16 +0000 (16:40 +0200)]
Updated git submodules

Project: genius stable/carbon bdbd660d81400d97151d1bceba53271374cd6fec

Bug 8008: NPE detected in IfMgrRpcService.getDpnInterfaceList

 + This line is throwing NPEs because rpcResultBuilder is NULL under
   certain circumstances:

   return Futures.immediateFuture(rpcResultBuilder.build());

 + I'm fixing other potential NPE for the same price

Change-Id: Ib6bf5039234f114228eb7d6a9c4f3b1882831e5d
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
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: I800ea4c89c9c517bc5baa992c67d17b9ba79547c
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Merge "@Immutable GroupEntity" into stable/carbon

Add missing @Override and serialVersionUID to genius.mdsalutil

Change-Id: Ib1079a5c59390d9b902d8f6653931f9c62ecf7ac
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Merge "Support for moving Src/Dest IPv6 addresses in NxRegMove action" into stable/carbon

Merge "Simplify boolean expressions" into stable/carbon

Merge "Avoid extending Object" into stable/carbon

Merge "Make testutils a JAR instead of a POM" into stable/carbon

EVPN RT2 : L2VNI Demux Table id

For EVPN RT2 a new table(table 24) is introduced to demux the l2vni from packets
coming from DC-GW

Spec is approved and is available at : https://git.opendaylight.org/gerrit/#/c/51693/

Change-Id: Ie23457df4d9d20a01f53e271c5b7ece77342225f
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
Merge "Support API that configures IPv6 address as sourceAddress" into stable/carbon

Merge "Remove <prerequisites><maven> from pom.xml to avoid WARNING " into stable/carbon

Support API that configures IPv6 address as sourceAddress

Change-Id: I23e2f04315ca023be9886d7e1570f78230b65dd7
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
(cherry picked from commit 0f6bf6bbaac65ecddd9574e91f66ccf154621730)

Support for moving Src/Dest IPv6 addresses in NxRegMove action

Depends-On: https://git.opendaylight.org/gerrit/#/c/56969

Change-Id: Ib4ba7baf50416b4e6e43705fbf796f65f4e00aa7
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
(cherry picked from commit a02b3ae106087e8d4200c10a36665ea24fa946d5)

Utility api to configure icmpv6 type

Change-Id: I6c7f2def23e043872957d5272f0fe1217f323c8b
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
Merge "IMdsalApiManager API simplification" into stable/carbon

Avoid extending Object

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

@Immutable GroupEntity

Contrary to the earlier 3a5d1e58dadf17654064234bdeb08597b7a48fe5 which
made FlowEntity @Immutable about 3 months ago, this change has no
impacts in downstream project netvirt (because all of its GroupEntity
instantiations go through MDSALUtil, which is adjusted here as well).

Change-Id: Id862698ebd5d00c30fdb52f5230ac35046062d44
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Make testutils a JAR instead of a POM

and start to use it for holding test fakes of genius APIs

Change-Id: Iaa44b3c7031f2d5a6129354e993157f8eb82680d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Make ActionInfo.toString() generic

Subclasses don’t need to override it, so use the actual class name in
toString() (for example, ActionDrop can “just work”).

Change-Id: Idf68b65867e4cb8ba969d1db91ee5a4b03389c06
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Remove TestableDataTreeChangeListenerModule from ResourceManagerTest

It's currently not used anyway, and (because it's not used!) it can
occasionally cause the "heisenbug" (i.e. arbitrary test failure on some
runs, but not always) problem "IllegalStateException: Test forgot an
awaitEventsConsumption()".

see also (new) doc on
https://wiki.opendaylight.org/view/BestPractices/Component_Tests#Async

Change-Id: I8140df5e06b1b35deae4d4137af768c2c275b68b
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
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: Ib1cf70417092a120eaf11b523e54b056774fe35c
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Simplify boolean expressions

Change-Id: I09d1f3a22a5496f3dbf8281a378c9eea4112e68f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Fix vlanIdModified test

OvsVlanMemberConfigUpdateHelper.vlanIdModified() has an apparent
copy-paste error in its null/non-null check. The whole test simplifies
down to !Object.equals(), so this patch just uses that.

Change-Id: I6b3548da5441e8318cf20eab3f4817d162c97fa6
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Simplify ResourceManager

- Simplify the initialization process refactoring some methods and using
System.getProperty with default values
- Change names of constants
- Improved coverage to from 70% to 81%.

More refactoring in later change.

Change-Id: I6670355d36b7af0806fa2032178103ef3d1a0099
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Replace toUpperCase().equals by equalsIgnoreCase()

Change-Id: Ie6cd1797ff71d53b8f24492d97767cf5fd454153
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Merge "fix for indefinite wait on the resource lock" into stable/carbon

Incorrect handling of admin state update for interface

Change-Id: I1ae01853375e6cb7f89516a768c3fc0d82508f7a
Signed-off-by: Faseela K <faseela.k@ericsson.com>
fix for indefinite wait on the resource lock

* Currently idmanager manager mutates the allocated id list (to make it sorted) while writing it into datastore which causes ConcurrentModificationException.
This leads to resource lock is never released and makes release id thread to
wait indefinitley for the lock.
* added lock retry logic with timed future.get version to handle any missed
signal

this is actually cherrypick of /c/57004. raising a new review because it
was closed already in stable/carbon.

Change-Id: I32da2b57806318eba00ba998af85410064001bab
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Merge "Bug 7826: Data validation failed for path" into stable/carbon

Bump versions by x.y.(z+1)

Change-Id: Ifb1367f7c4f9b1c0045afd8266925d47104850d0
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Merge "Bug7451 - Maintaining state information for bound-services in DS" into stable/carbon

Merge "BUG 8332: Inconsistent tunnel port information in Genius" into stable/carbon

Bug7451 - Maintaining state information for bound-services in DS

Use the  bound-service-state info while unbinding service so as to avoid race conditions
when interface-state and service-unbinding happens exactly at the same
time

Change-Id: I39f6b3cef932d624de42d4cb56651fc8bb1de762
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Bug 7451 - Leftovers in dispatcher table when unbind and ietf-state
delete occurs simultaneously

Adding service-state-information to cache, whenever a service is bound to
an interface, and this information will be deleted only when the last
service on an interface is unbound. To make the first and last service
counting more robust, moving the boundservices config listener, one layer
up, at the services-info level, so that the event itself will come with
the number of services currently bound an interface. Reading the same info
from DS later on during the event processing, can cause incorrect data
being read from DS, when multiple parallel services might be getting bound
and unbound without any synchornization.

Change-Id: Iec1fcf12f71f34fed01158aae483a1d36bac6757
Signed-off-by: Faseela K <faseela.k@ericsson.com>
BUG 8332: Inconsistent tunnel port information in Genius

Change-Id: I40efffde720a57197c8b7a36c323dbe398f1acc8
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
IMdsalApiManager API simplification

Having two installFlow/removeFlow, one returning void and the other
returning CheckedFuture, is completely pointless - they do the same
thing!  The void one is NOT synchronous / blocking anyway (it internally
does NOT wait with a get() on the CheckedFuture) - so simplify.

This change, coincidentally, is fully backward API compatible.  Callers
are free to ignore the new CheckedFuture returned - that's what the code
today already does anyway (in the implementation).

PS: This is the first step of perhaps more IMdsalApiManager API
simplifications to come (e.g. re. having variants taking BigInteger dpId
arguments, given that FlowEntity already has a dpId (only Flow does
not).

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

Remove <prerequisites><maven> from pom.xml to avoid WARNING

[WARNING] The project ... uses prerequisites which is only intended for
maven-plugin projects but not for non maven-plugin projects. For such
purposes you should use the maven-enforcer-plugin. See
https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

This (^^^) is already done in odlparent.

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

fix for indefinite wait on the resource lock

* Currently idmanager manager mutates the allocated id list (to make it sorted) while writing it into datastore which causes ConcurrentModificationException.
This leads to resource lock is never released and makes release id thread to
wait indefinitley for the lock.
* Changed DCN Notifications threadpool's rejected execution handler type
to CallerRunsPolicy otherwise there are instances DCNs are not delivered
due to default AbortPolicy when tests are made to run repeatedly (thanks
to Michael for instrumenting junit runs repeater :))

Change-Id: I5f271f6054a44aa50d19f3130a2d5a73230ff50c
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Multiple VxLAN tunnels - egress service

- default egress service would be bound to the logical tunnel
- OF select group based on the actual list of tunnel members in the
  logical group
- set the oper status of logic tunnel according the states of the group members
- admin status of logic tunnel affects the states of the group members

Depends-On:
 https://git.opendaylight.org/gerrit/52871
 https://git.opendaylight.org/gerrit/52993
 https://git.opendaylight.org/gerrit/53603

Change-Id: Ica0801aa274615cedc36c60d661a0d5d411e1bd0
Signed-off-by: Olga Schukin <olga.schukin@hpe.com>
adding future.get for acquiring clustered lock

* LockManager manager uses busy spin with thread.sleep to acquire a lock
if there is a contention for it.
* Now thread.sleep is replaced with future.get() using ACDTCN on the lock

Change-Id: I4ce3816e150f1e75fedf3093d96ed41efc444fa5
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
fixing junit in resourcemanager

There are some regression introduced in resource manager tests due to [1]
which causes junits in resourcemanager-impl to get blocked indefinitely.
It is addressed in this review

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

Change-Id: I261c14eefa2eb59839fa36eb0578cfe499c487bc
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
(cherry picked from commit 3e5e0ad62878842748cca2d92903d0b88f3225c2)

Change-Id: I4ce3816e150f1e75fedf3093d96ed41efc444fa5
Signed-off-by: Sam Hague <shague@redhat.com>
aded rpc in itm-rpc to move commonly used method

getEndpointIpAddressForDPN method is used by multiple modules
elanmanager, fibmanager, vpnmanager, natservice
Hence adding this method to itm-rpc.
We can use this same rpc call in all the above mentioned module

Change-Id: I72352dbeb8b786675578e13a009ca96f58413aae
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
Bug 7826: Data validation failed for path

* Modified removeGroup entity and removeFlow entity method
to fix the CSIT error of group-id not existing

* Added syncronized key-check for group and flow syncDelete

Will run the CSIT and check.

Change-Id: I6d137aa353b3e691085ba484d63a1833b140472c
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
(cherry picked from commit 507246056c515156f1c80ae2313f4361cb7f1b64)

Genius: configurable tos option for tunnels to support QoS DSCP marking

For supporting QoS DSCP marking feature, the outer header of the packets
egressing out of Ovs through vxlan/gre tunnels need to copy the DSCP bits
from the inner IP header.

The marking of inner header is done through OpenFlow rules configured on the
corresponding neutron port. For outer tunnel header, the tunnel interface tos
option in ovsdb  needs to be set as “inherit”.

For setting of tos a configurable parameter is introduced under ITM module.
By default the tos option is set to “0” as specified in Ovsdb specification.
For QoS DSCP marking feature, this should be set to “inherit"

link: https://git.opendaylight.org/gerrit/#/c/48949/
Change-Id: Ife923f74f5bd59648d40c1779478333632337952
Signed-off-by: Ravindra Thakur <ravindra.nath.thakur@ericsson.com>
Add component tests for Resource Manager Service

Add component tests for Resource Manager Service following this
guidelines [0].

Code coverage for resourcemanager-impl increased to more than 70%. This
coverage can improved by adding some negative test cases as well as
applying some re-factoring to the ResourceManager itself.

[0] https://wiki.opendaylight.org/view/BestPractices/Component_Tests

Change-Id: Iabbdf875301059d18e59b25312c6727b642a23c4
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
(cherry picked from commit ee882afe0283d626ce77c4285edce0fbf03093f4)

Multiple VxLAN tunnels - remove logic tunnel group

Removing logic tunnel related models from DS

Depends-On:  https://git.opendaylight.org/gerrit/52871
     https://git.opendaylight.org/gerrit/52993

Change-Id: If869da809d17e805940b627c1ed0c330fe06e4e6
Signed-off-by: Olga Schukin <olga.schukin@hpe.com>
(cherry picked from commit 73955e760f8274f4b685fcaa8511efdae5a26861)

Multiple VxLAN tunnels - RPC changes

- Change ITM RPC calls to getTunnelInterfaceName and
  getInternalOrExternalInterfaceName to prefer the logical tunnel
  group over the tunnel members
- IFM RPC call to getEgressActionsForInterface for the logical tunnel will
  load register6 with its corresponding lport-tag and resubmit the
  traffic to the egress dispatcher table.

Depends-On:  https://git.opendaylight.org/gerrit/52871

Change-Id: I26a244225c3d82038bb92ea014b8ee35a4f5eda5
Signed-off-by: Olga Schukin <olga.schukin@hpe.com>
(cherry picked from commit 2964e74a74c861cc6cf2588480242997578343ae)

Merge "Remove ResourceManager.start method" into stable/carbon

Merge "Bug 8277 : VXLAN tunnel flapping" into stable/carbon

Remove ResourceManager.start method

The ResourceManager.start method has been removed
to improve initialization and testability. Its content
has been moved to the constructor.

Change-Id: If8b04382c0617fc2a54a1ca02fdb356b41c50398
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
(cherry picked from commit 6d373b13f299a34dfa1c8fa5b8d0e84bedc80e12)

Fix minor issues in idUtils

- Return expressions directly.

Change-Id: I5f0a9343cd6fea21e0ffe4f5617317ebb16544c1
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
(cherry picked from commit ba5968aee16f65e96161a0525f8a8626b0250006)

Merge "@Immutable FlowEntity" into stable/carbon

Bug 8277 : VXLAN tunnel flapping

Change-Id: Ie1390ec7f32ce97842b1b2f2e74235a3c185afbe
Signed-off-by: Faseela K <faseela.k@ericsson.com>
@Immutable FlowEntity

This change has impacts in downstream project netvirt, which are handled
in https://git.opendaylight.org/gerrit/#/c/54390/ (must be merged
simultaneously)

Change-Id: I3d58caa5cbeafd1df2458942692b9271a650a23c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
BUG 8107: Flow based tunnels not being handled correctly

OF tunnels don't get added to interface-state which causes failures.

Change-Id: I95a4129c53c9f187d1f695f50e4b2f346780fb36
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
ArpUtil Test

Change-Id: I084e89b7cf8af6090b3fde30412ac8a809c24647
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
(cherry picked from commit bb268e54fde36185dae9766847a99fdbea212ea3)

Junits failure on interfacemanager-impl due to timing issues

Change-Id: I6151043e26bc42ab0ed980646382b96175ea0190
Signed-off-by: Faseela K <faseela.k@ericsson.com>
VLAN IF in a VM gets a Trunkport IP from the DHCP if there is no SubPort
created

If there is a VM which has two (2) TrunkPorts (vNICs) and both of these
TrunkPorts does have one SubPort created, and one of these ports has also 8
other VLAN interfaces defined inside the VM. These additional VLAN
interfaces which don't have matching SubPort do get IP address of the
TrunkPort from the DHCP server. Assumption is that the DHCP server (ODL)
should not answer to the DHCP request if it comes from a Trunk port with
VLAN tag / SubPort which is not defined.

Change-Id: I6fdf1deeadda71adf3dda3c00c16c2b424b62ab7
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Clean up ITM impl *Worker: Use "final" where possible, avoid parameters

Just a start, there is more TBD here re. static and all; e.g. the
Itm*Tunnel*Worker private static methods could probably be made
non-static and an the workers made to have an instance, or even just be
moved into the respective Itm*Worker classes, which seem to be the only
place using them.

This change was motivated by having had a closer look at this code due
to review comment in c/52871 to make something non-static which we
cannot yet easily, because of this.

Change-Id: Ib22ef6edb86ae50b1fe91bf68b9f85ad93dc612f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Enhancing junits for interface-manager phase6

Adding junits for interface-manager APIs

Change-Id: I98bbeaef0681064eb81b487aff43f345d285d5c1
Signed-off-by: Faseela K <faseela.k@ericsson.com>
(cherry picked from commit c36a8061846ce17cc10c079c81a7bca7ec69af19)

Cleanup IdManager and LockManager info messages

These modules are very active and output a large number
of logs in INFO level, which should be DEBUG level.

Change-Id: Id260b124ffeefa8ccf58d2c021c5c75b8ac589ab
Signed-off-by: Alon Kochba <alonko@hpe.com>
(cherry picked from commit c35703645065c0c6de1b73ed676077a7dc50e67c)

Fix 1 Checkstyle problem (red in Eclipse, missed in build)

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

see also earlier https://git.opendaylight.org/gerrit/#/c/55170/

Change-Id: Icab6986e0207f3d6b2f1b3dbd875bf73a25c26c9
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Spec Propose to utilize Ovsdb QoS queues

Change-Id: I7f6d8e4237c829b49efd4b78d072b5cbd91f174a
Signed-off-by: Konsta Pozdeev <konsta.pozdeev@hpe.com>
Utils for remote acl merging metadata

Change-Id: I8f7f49a5b6f57e50e13c6d4f42acabd3585de229
Signed-off-by: Slava Radune <slava.radune@hpe.com>
(cherry picked from commit 674d48d6af0ceb666d0a91126e9174b374c1fda7)

Merge "Fix 2 Checkstyle problems (red in Eclipse, missed in build)" into stable/carbon

Merge "Minor removal of useless null check in OvsdbNodeListener" into stable/carbon

Merge "Fix getPortsOnBridge() API" into stable/carbon

Minor fix for potential Tx resources leak found by static code analysis

and an (unrelated) Map remove null related check

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

Fix 2 Checkstyle problems (red in Eclipse, missed in build)

This show up as red in Eclipse, but the CLI mvn build misses these; I
suspect that this is because the exact Checkstyle version used in the
Eclipse plugin likely is a little newer, and thus stricter, than the one
we currently use in the CLI mvn build.  (I have double checked that
other Checkstyle violations do still fail the build, these appear to be
corner cases.)

We should probably upgrade the CS version we have in odlparent.

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

Minor removal of useless null check in OvsdbNodeListener

Both found by null analysis in Eclipse: "Null comparison always yields
false: The variable externalIdsInfoObj cannot be null at this location"
and "Redundant null check: The variable ovsdbNodeExternalIdsList cannot
be null at this location"

Change-Id: Ia2775254606978dc544429bfbbd5a4e5ceab04c6
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Fix getPortsOnBridge() API

The current API tries to read bridge-interface-entry which will be missing
for non-tunnel ports.

Change-Id: If2fb677bc84c2aeca59f6020371051f45f761240
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Enhancing lockmanager junits

Change-Id: I87c21a7a24229b931c3cdfe2dd939a99c2aaa1e3
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Tunnel showing wrong state in scale setups

In a scaled environment, when BFD flaps continuously,
interface-manager was showing the wrong tunnel-state in the end,
This is because interface-state in cache will have stale oper-status
leading to race conditions, during frequent toggling events.
Read from cache should be avoided in such conditions.

Change-Id: I878afb51f1da41f50e7f853cf0dbce35e5b96136
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Renaming IFM utility getInterfaceStateFromOperDS

The utility was first doing a cache read, and in cache miss
cases, it tends to read from oper DS. So, ideally both the utils should
be separated so that if someone does not want to use the cache read, they
should be free to use the same.

Change-Id: Ie9b4371c466e57f75b357e7e6c39ecfb87480478
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Enhance install egress dispatcher flow logs

Making the logs a little more readable, found it confusing
while debugging one issue

Change-Id: I486e8afa86a41a4e5a09485e1fbec16c5aff6f58
Signed-off-by: Faseela K <faseela.k@ericsson.com>
(cherry picked from commit 500aaaa68da3dce1948cd67ed23e2e99a7f573ae)

Add ArpConstants to arputil

Moving all arp constants to a single file as some
of these were duplicated. This is also to help break
cylci dependencies in netvirt.

Change-Id: I99ad9110f74702f2b3e6a50b3ba524ff2f6399bb
Signed-off-by: Sam Hague <shague@redhat.com>
Merge "Bug 8160 : getLock() in endless loop" into stable/carbon

Bug 8111: Conflicting modification for path

Removed the exception object from being logged. Will run CSIT and check.

Change-Id: I5b4b875aabba4d434515004181521d08ba8d1867
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Merge "LockManager catch (InterruptedException e) LOG error not info" into stable/carbon

Bug 8160 : getLock() in endless loop

Ensured that the lock is unlocked before returning the idValue.
Depends-On: I5b4b875aabba4d434515004181521d08ba8d1867

Change-Id: I6e01e2dc63992b91f1ecd19dd42413a08932899d
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
LockManager catch (InterruptedException e) LOG error not info

or is this intentional only info, for some reason?

If so, then it should be documented with an in-line comment...

Change-Id: I10e3c50f74a7fa866fbb67e8513974bb289570d5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Changing Netvirt Classifier Egress service tables

- Previously they were 110, 111, 112 but the Egress dispatcher
  table is 220 so a simple goto_table wouldnt work.
- Instead of doing a resubmit table, its better to have all the
  Egress service tables grouped together. Now using 221, 222, 223.

Change-Id: Ibaa399abb9e3dc40904c8b0d561a62a84eae8c01
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Update .gitreview to stable/carbon

Change-Id: Ifd94545c5974a9c24edc3468f2fb17f029657a22
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Sun, 11 Jun 2017 18:10:31 +0000 (18:10 +0000)]
Updated git submodules

Project: releng/builder master 39ad49f2436d89b0ad6a0645202c5269b30a9c69

Merge "Change array in loop bashism to satisfy shellcheck"

Change array in loop bashism to satisfy shellcheck

Warning: I'm not totally sure this is right, but it seems to be the
recommended way to keep the same behavior we had but be explicit that
we want it. If shellcheck was actually catching a bug and we don't want
the old behavior, we should do the loop recommendation.

https://github.com/koalaman/shellcheck/wiki/SC2199

Change-Id: Ibcb2e88ad4df7d1789747b137e2135154ca8435a
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Aswin Suryanarayanan [Thu, 8 Jun 2017 08:23:27 +0000 (13:53 +0530)]
Updated git submodules

Project: netvirt stable/carbon 26b3f40e097af4329633a168adc43d2c8c916012

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 agoUpdated git submodules
Sridhar Gaddam [Fri, 9 Jun 2017 14:52:36 +0000 (20:22 +0530)]
Updated git submodules

Project: netvirt stable/carbon 9a252a3cb748c3b47e88c48de37b353250d91d73

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 agoUpdated git submodules
Periyasamy Palanisamy [Fri, 9 Jun 2017 06:12:19 +0000 (11:42 +0530)]
Updated git submodules

Project: netvirt stable/carbon 664629b24a0ad8c86b8010e2b8e1c591efce495f

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 agoUpdated git submodules
Sam Hague [Fri, 9 Jun 2017 10:16:11 +0000 (10:16 +0000)]
Updated git submodules

Project: netvirt stable/carbon 384d1a08a090c70d18b3be66c8f2467a4b74aee8

Revert "Bug 8588 - NPE at at org.opendaylight.netvirt.fibmanager.VrfEntryListener.createLocalFibEntry"

This reverts commit 2ceab866932eda11217bbc4be6e809275a1d2d99.

Change-Id: Iff8d954b1b62ecda1903cf0562198e0cb5d7fe98
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoUpdated git submodules
Riyazahmed D Talikoti [Mon, 22 May 2017 09:46:34 +0000 (15:16 +0530)]
Updated git submodules

Project: netvirt stable/carbon 190a4fc87918dab317c66e6be29605d569d1cc9a

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 agoUpdated git submodules
Aswin Suryanarayanan [Wed, 7 Jun 2017 04:17:23 +0000 (09:47 +0530)]
Updated git submodules

Project: netvirt stable/carbon c4e4cfd9446369340f6e7578cb9e97889b98d484

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 agoUpdated git submodules
Daniel Farrell [Sat, 10 Jun 2017 21:04:24 +0000 (21:04 +0000)]
Updated git submodules

Project: releng/builder master 9b14ed42b2d38cae1f2fcb8c170350c4dde01f6e

Merge "Update global-jjb to latest master"

Update global-jjb to latest master

To pull in the python -m change.

Change-Id: I5236239b51f2a821452ebbd5948cc6611228aaff
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Sat, 10 Jun 2017 02:35:03 +0000 (22:35 -0400)]
Updated git submodules

Project: releng/builder master 4277f76c684b866f26718930666cd164220eeaa2

Restart Spectrometer weekly

The Spectrometer frontend tends to crash so lets give it a kick once a
week.

Change-Id: I0a730a87960ddb8fed591d8c1dc245ca31614cc1
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Fri, 9 Jun 2017 23:07:32 +0000 (19:07 -0400)]
Updated git submodules

Project: federation master 2d831c9bdeff19e54429398900d35539cd69bcb6

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.

Change-Id: I021e6a7ff770c88257331719810bc3538635c571
Jira: RELENG-159
RT: 41406
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Anil Belur [Fri, 9 Jun 2017 21:54:58 +0000 (21:54 +0000)]
Updated git submodules

Project: releng/builder master 619dfb69cce08b642cc1faa574bb6ddf62056ac7

Merge "Update CentOS7 devstack images"

Update CentOS7 devstack images

Change-Id: Ia81158d323514866dcbbb0e08e51d12d84116349
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Daniel Farrell [Thu, 8 Jun 2017 20:02:46 +0000 (16:02 -0400)]
Updated git submodules

Project: integration/packaging master d5a6e544f42b5a088fbaaa57657cf412e7bb45c0

Add Boron SR3 Packer config

Change-Id: Id035a7c23ddbf2b76845c4dde81e1aa30cdffc47
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Daniel Farrell [Thu, 8 Jun 2017 20:04:13 +0000 (16:04 -0400)]
Updated git submodules

Project: integration/packaging master 1e54a42d59cbd98bbbc9e76132b1e1420f7b4f6e

Add Carbon Packer config

Change-Id: I79a22f3501e1298398142e4d7a1ede957309316b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Daniel Farrell [Thu, 8 Jun 2017 22:22:33 +0000 (18:22 -0400)]
Updated git submodules

Project: integration/packaging master 7cd08064a19cf12f2d26ff1ff6c216cc591c1de3

Update Packer Vagrantfile for new versions

Also refactor with better loops to be more clean.

Also remove F24 and Beryllium entries.

Change-Id: I2d137f68643b2c58c80c2781a95663051fba85a8
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Daniel Farrell [Thu, 8 Jun 2017 22:22:02 +0000 (18:22 -0400)]
Updated git submodules

Project: integration/packaging master ec017575609141314b2f3b1a490d9221f35e5667

Fix new shellcheck errors caught by latest version

Main new shellcheck rule is related to exiting if cd commands fail. Add
or conditions to exit if they do, per recommendations.

Also make a few shellcheck ignores more explicit.

Change-Id: Ic8e290c1a75891b47b7aa874fe9cff0c3e9fd720
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
7 years agoUpdated git submodules
Thanh Ha [Fri, 9 Jun 2017 16:36:20 +0000 (16:36 +0000)]
Updated git submodules

Project: releng/builder master 82dd92d23d434d4e1d6b08c01774712d88d04a11

Merge "Update CentOS7 java-builder images"

Update CentOS7 java-builder images

Change-Id: Iddba4b59111a17394846d4dc3deed74e275145e6
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
jenkins-releng [Fri, 9 Jun 2017 11:03:10 +0000 (11:03 +0000)]
Updated git submodules

Project: releng/builder master 81e643a75a1ead6339e8c268e7d9c6cbaf150329

Update cloud image list docs

Change-Id: I5500c6a52a9f96edbcd3bf40df428255aa4c4da8
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
7 years agoUpdated git submodules
Thanh Ha [Fri, 9 Jun 2017 05:41:23 +0000 (05:41 +0000)]
Updated git submodules

Project: releng/builder master 4d4085229f1b0a34267152e00e1cc6358f26df48

Merge "Del. lispflowmapping-distribution3-check-nitrogen"

Del. lispflowmapping-distribution3-check-nitrogen

The lispflowmapping project wishes to disable its Karaf 3 features and
local distributions in the build, to be able to re-join autorelease as
soon as possible. This patch removes the
lispflowmapping-distribution3-check-nitrogen job which fails as a
result.

Change-Id: Id6e9df99ccef2c2e78f966cb58ed28148be29900
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
7 years agoUpdated git submodules
Thanh Ha [Fri, 9 Jun 2017 02:19:14 +0000 (02:19 +0000)]
Updated git submodules

Project: releng/builder master f72a4760c935b2f06bf856399f9ad911271ec50f

Merge "Remove 6wind/quagga build temporarily"

Remove 6wind/quagga build temporarily

No response from the zrpcd maintaners to update the scripts.
Once the issue is resovled we can enabled this on images.

https://lists.opendaylight.org/pipermail/dev/2017-May/003724.html
https://lists.opendaylight.org/pipermail/dev/2017-May/003698.html

Change-Id: I0d05e45528d549a3ba32542e946b23198724fecc
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Anil Belur [Wed, 7 Jun 2017 11:49:37 +0000 (21:49 +1000)]
Updated git submodules

Project: releng/builder master b4518475e5d6d6fcc629e6c7582b1b4e44fe6b78

Enable sysstat on Ubuntu and CentOS images

Change-Id: I99b18d1de3f06995532d46193e06a0b679ce3222
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUpdated git submodules
Kency Kurian [Thu, 8 Jun 2017 10:47:29 +0000 (16:17 +0530)]
Updated git submodules

Project: netvirt stable/carbon bc9c45bcac4cb713ef8cb88810da5749847d9e28

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 agoUpdated git submodules
Valentina Krasnobaeva [Fri, 26 May 2017 15:43:18 +0000 (17:43 +0200)]
Updated git submodules

Project: integration/test master 9c7448b651245bd4439c5047a7decc3ea957c54a

IPv6: add command to check IPv6 neigh discovery

"ip -6 neigh" will be executed in VM, when "Test Operations From Vm
Instance" is running. This helps to investigate connectivity issues,
caused by problems with IPv6 support.

Change-Id: If9202bffbf990050d7088de78516048b5ebfbdf8
Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
7 years agoUpdated git submodules
Michael Vorburger [Thu, 8 Jun 2017 12:26:26 +0000 (14:26 +0200)]
Updated git submodules

Project: netvirt stable/carbon 01bd8617503798ec2fe200e5334e4acbef138730

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 agoUpdated git submodules
Janki Chhatbar [Mon, 5 Jun 2017 13:25:52 +0000 (18:55 +0530)]
Updated git submodules

Project: netvirt stable/carbon 2ceab866932eda11217bbc4be6e809275a1d2d99

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 agoUpdated git submodules
Valentina Krasnobaeva [Wed, 7 Jun 2017 12:32:48 +0000 (14:32 +0200)]
Updated git submodules

Project: integration/test master c7049f42bf9eb459106ae564fc0db9be95f8c44b

IPv6: fix in Wait For Routes To Propogate keyword

OpenStackOperations.robot: fix in "Wait For Routes To Propogate
keyword". If subnet has ethertype IPv6, set command "ip -6 route" to
execute in VM, instead of "ip route".

Change-Id: I511c03fd157cc0570313f0c3b87ada4716843223
Signed-off-by: Valentina Krasnobaeva <valentina.krasnobaeva@6wind.com>
7 years agoUpdated git submodules
eupakir [Thu, 8 Jun 2017 09:48:40 +0000 (15:18 +0530)]
Updated git submodules

Project: netvirt stable/carbon 371da7bea29f596ce4d4e4f16308ea8f8497976e

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 agoMerge "Link in Carbon project release notes" into stable/carbon
Colin Dixon [Thu, 8 Jun 2017 20:10:10 +0000 (20:10 +0000)]
Merge "Link in Carbon project release notes" into stable/carbon

7 years agoMerge "Clean up Carbon release notes" into stable/carbon
Colin Dixon [Thu, 8 Jun 2017 20:08:34 +0000 (20:08 +0000)]
Merge "Clean up Carbon release notes" into stable/carbon

7 years agoUpdated git submodules
Vratko Polak [Thu, 8 Jun 2017 12:29:59 +0000 (14:29 +0200)]
Updated git submodules

Project: integration/test master a8f6b1b6f807aa9a7b4453959a2c54f24613b1a4

Increase timeout in MdsalLowlevelPy

Devs said there are three submits, each could take 120 seconds.

Change-Id: I56e80eb68687881ffb461f8b83baefb20e2d0030
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoUpdated git submodules
Andrew Grimberg [Thu, 8 Jun 2017 19:14:44 +0000 (19:14 +0000)]
Updated git submodules

Project: releng/builder master 1af40d4c3d9232478d107e2df3920479bb6e92b4

Merge "Fix shellcheck SC1090 cannot follow source"

Fix shellcheck SC1090 cannot follow source

Change-Id: Idf0bce1211eca6529ffe1f27335ac895c91180ea
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoUpdated git submodules
Thanh Ha [Thu, 8 Jun 2017 17:56:24 +0000 (13:56 -0400)]
Updated git submodules

Project: releng/builder master 41ca9747ef185a9a639f92bb51b1626ec1f22f80

Remove infrautils-validate-autorelease job

These jobs only work if infrautils are part of autorelease which it
currently isn't.

Change-Id: Id4a8283efe7231897f86bced857191f8d0596e04
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoClean up Carbon release notes 49/58549/1
Colin Dixon [Thu, 8 Jun 2017 15:53:32 +0000 (11:53 -0400)]
Clean up Carbon release notes

Change-Id: Icbe78043b5615416b1eaddaa615a44b4989d3488
Signed-off-by: Colin Dixon <colin@colindixon.com>
(cherry picked from commit 2636b86495c4374f39bea79549205ecbaed8ed29)

7 years agoMerge "Fix usage of Boron in Carbon GSG" into stable/carbon
Colin Dixon [Thu, 8 Jun 2017 18:29:12 +0000 (18:29 +0000)]
Merge "Fix usage of Boron in Carbon GSG" into stable/carbon

7 years agoUpdated git submodules
Stephen Kitt [Wed, 7 Jun 2017 08:25:59 +0000 (10:25 +0200)]
Updated git submodules

Project: netvirt stable/carbon 990c2dbdc69783ebf73f81779ea3689e614addd8

Simplify some streaming constructs

Change-Id: If48c31a56e1667597dc540ac5068fe731058a6e1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
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>
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>
Bug 8614: NPE observed in cloud-sc's VrfListener

Change-Id: Ief4b9b90c96e1e426b9399389538cd14b39fc942
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
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>
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>
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>
Bug 7451 - guarding NPE

added few null checks to avoid nullpointerexceptions

Change-Id: I8b077f1d87d79bfe3804d8daabdf391a5358f301
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
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>
elanName is null

Check for elanName. If null, return.

Change-Id: I72c931477c6d8ae464a654095383f8537ef6748e
Signed-off-by: Janki Chhatbar <jchhatba@redhat.com>
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>
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>
Clean up Optional uses

This patch reverts Optional and related streaming uses where they
result in more convoluted code than necessary (or, in the case of
Optional, where Optional instances are created only for conditions).

Change-Id: I8d0b2c456ff0a477e440fb029b8495476aabed27
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Replace logger and log by LOG

Replace logger and log by LOG to follow the
OpenDaylight recommendations [1].

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

Change-Id: Ia4f5a1c1692133efa0e49873ba954a360572989b
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 8589: Fix regression in Ipv6PktHandler

Following this change [1], Ipv6PktHandler is not getting
invoked for RS/NS meant for router interfaces. This patch
fixes this issue.

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

Change-Id: I5b98b742623df2552205f8bbb24d70ae17ba1325
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
Use named constants in ElanUtils

... instead of commented true or false.

Change-Id: I7f0738f11666f9433ae0942b2be538514d08311b
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Use direct comparisons instead of Objects.isNull

There is no reason to ever use Objects.isNull() directly, it’s
equivalent to “== null”. Its documentation explains its purpose: “This
method exists to be used as a Predicate, filter(Objects::isNull)”.

Change-Id: I86123fec65c09a1d26906935cad6df79750fa2d8
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Bug 7451 - VPN service cleanup of Table 17

Whenever a VM is deleted (or) a VPN where a VM
resides in is removed, the dispatcher-table
entries for that VMs VPN Interface were not
getting removed.

The fix here makes sure that dispatcher Table
(Table 17) gets cleaned up by VPN Service.

The related ELAN patch to clean up dispatcher
table for ELAN service entries is here;
https://git.opendaylight.org/gerrit/#/c/57767

Change-Id: I6460b8a12a37236275e72606bc58c4b59db440cb
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
SNAT performance improvement for Controller-Based SNAT

Description :
Following changes were done to address SNAT performance improvement
in following area.

1) Seperate Queue for first SNAT packet, retry packet and Flow removed
event on Idle Timeout.
2) Multithreading: using 25 threads for processing first SNAT packets, 25
thread for processing retry packets and 1 thread for processing Flow
Removed event.
3) Updated checkIpPortMap API to have direct query based on routerid,protocol,
internalip+port criteria thus preventing unnecessary looping.
4) Moved the code of getting externalMac Address and external address to
get executed only for first packet, thus preventing the retry packet from
executing it which is unnecessary.

Change-Id: Ib34aa8726295381d0e4ffd1f3cec74292d422c4f
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
Bug 8417 - [l3vpn_ecmp] Deleting MPLS GRE Tunnel port doesn't delete the

bucket entry in the group

Change-Id: Ic7287a9611bf27453713e47f6dde11373fea3172
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
Minor Checkstyle fix Custom Import Order error

This shows up as red in Eclipse, but the CLI mvn build missed this.
This is due to a more recent version of Checkstyle.

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

also includes minor removal of (1) extra parenthesis, (2) generic <>
clean-up and (3) missing @Override from automatic clean-up which happens
on auto-save (technically unrelated to Checkstyle).

Conflicts:
vpnservice/qosservice/impl/src/main/java/org/opendaylight/netvirt/qosservice/QosAlertManager.java

Change-Id: Ic650ffe9ac42cfbc7cad4c1c31c7553faf5fe603
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Bug 7451 - Leftovers in dispatcher table when unbind and ietf-state delete

           occurs simultaneously

Change-Id: Id3c44e94da203ddda9dbc3e6fb8b6885523c7fa3
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 8498 - ICMP traffic from DHCP NS not blocked when ICMP rule to allow
VM-VM traffic is added in learn mode.

The  wrong filter table to be used for learn ingress/egress service is
fixed.

Change-Id: I15e8841314c24b10556128bac354ebab1d80a698
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
Add JUnits for InterVpnLinkLocator

 + Only 2 so far:
    -  testFindInterVpnLinksSameGroup
    -  testSelectSuitableDpns_moreDpnsThanIvpnLinks

 + It adds an L3vpnCatalog that contains several VPN test data
   to play with

 + Idem with InterVpnLinkTestCatalog

Change-Id: I1c6866ec5fe2570a469dd9ea9e5a6591d11dffa4
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
Fix a few non-null collections

In general, methods returning collections should never return null.
This patch fixes L2GatewayConnectionUtils and propagates the non-null
results.

Change-Id: If249aec9b8494de736c362f0ea04139151670d68
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Bug 8376: Fix DHCP for external tunnels

DHCP for external tunnels does not work with neutron
DHCP server.

ODL is installing rules to punt DHCP packets received
on external tunnels to controller, even when ODL
DHCP is disabled. But, since ODL DHCP is disabled,
no DHCP response is sent by ODL. And, with these
rules installed, neutron dhcp server never sees the
DHCP packet. As a result, VM will not get IP
address.

Do not start listeners that are responsible for
installing DHCP rules to punt DHCP packets to
ODL controller when ODL DHCP is disabled.

Change-Id: Ib0e243a9bca5866e50a5d1cb4c70cd4441dd01e6
Signed-off-by: Victor Pickard <vpickard@redhat.com>
BUG:8341   IAE seen in CSIT logs when port/vlan name is not matching UUID

Change-Id: If90482540cc5cc7c28d16397f84a39f3774eab7b
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
bug 7599  hwvtep ucast mac add performance improv

Changes for performance improvement.
Added new Cmd TunnelIpCommand and also changed function getKey to return
actual key Identifier in place of String value.

Change-Id: I0fd84c87db6feefcba4c119fe0c05193751ab8cb
Signed-off-by: Akash <a.k.sahu@ericsson.com>
elanmanager-impl <dependency> interfacemanager-impl <scope>test

It is wrong to directly depend on interfacemanager-impl from
elanmanager-impl.  This may only be done with <scope>test, for component
tests.

Remove the sole usage of a util from ITM - genius has the same util.

Change-Id: I0dda82184d547cefa5a447361111438ed3fe40c1
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Use named constants for PolicyAceFlowWrapper

Instead of commenting each use of true or false, use constants.

Change-Id: Ibf8b19b67dc54e99e6caffe8056a0e04b62601c2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Adjust tunnel state listeners for logical tunnel

If the logical tunnel exists between the source and destination DPNs it will
be set as the lport-tag of register6 in the remote nexthop actions.

Spec: https://git.opendaylight.org/gerrit/50779/

Change-Id: I98ff89efd047e056529e4bbdf06493e548c561d1
Signed-off-by: Olga Schukin <olga.schukin@hpe.com>
Signed-off-by: Sam Hague <shague@redhat.com>
BUG:8232 updating BGPVPN with the List of RDs

       *Problem: When a new Extra-route is added and if there are not enough RDs
        for the VPN then the new extra-routes are not handled.
        These unprocessed extra-routes will be handled during vpninstance update
        (ie when new RDs are added(Update) to the existing VPN)

Change-Id: Ic380b6aaabdd0d44484c2ec1a33de7cde9c01366
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
Fix Unused log and private final

Delete unused log and their imports.
Change initailized private final var to
private static final in order to use less memory.

Change-Id: Ieecaf3cf75ac67b55e2bfd87c1c78eb1bbd77782
Signed-off-by: mcauffiez <mcauffiez@inocybe.com>
EVPN RT2 : Silent host changes

When the flow created on packet received from silent host expires,
prefix is removed from macEntry container and prefix is withdrawn,
There is no necessity to withdraw prefix from here, it will be
duplication.

Change-Id: Iab970736a182efaddf4dfc44a5a11377ca22b111
Signed-off-by: Yugandhar Reddy Kaku <yugandhar.reddy.kaku@ericsson.com>
Bug 8508 : Id-manager exception during releasing id for router

Description : Even though opendaylight-semantics is disabled,
the following EVPN NAT use-cases require VNI to be allocated from
OpenDaylight VNI Pool:

a. All traffic on external network will be using a VNI allocated for the
external-VPN aka Internet VPN.

b. Similarly all traffic from Non-NAPT switch to NAPTSwitch will be using
the VNI allocated for the router from the OpenDaylight VNI Pool.
For VNI-L3-L3 Fowarding feature also, a VNI must be allocated for every
router from the OpenDaylight VNI Pool as that VNI will be used for
Non-NAPT to NAPTSwitch traffic.

This fix makes that allocation as only release alone was done earlier.

Changes done to allocate a vni for router(when router-gatway-set done)
and been released during ext-router entry is deleted. In CSIT(having
non-EVPN use-case) were executed, an attempt to release the non-allocated
id was done during when ext-router entry is deleted resulting in exception.
Change done to make sure an id is allocated when router-gateway-set is done to
prevent such occurance of exception.

Change-Id: Ic1e696d6b4c8d0c56eac8b16ed0731d072b5b135
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
Bug 8539: IPv6 L3 Forwarding broken.

The merge of the following review;
https://git.opendaylight.org/gerrit/57145
broke L3 Forwarding for IPv6 addressed ports.

The fix here addresses the breakage by making
sure that L3_GW_MAC_TABLE entries are filled
correctly for both IPv4 and IPv6 router-interface
ports, before embarking on writing PING
Responder flows for IPv4 based router-interfaces.

Change-Id: Ieb190edda470264006609c62e4af9fc0d94d4a2c
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Bug 8485 : EVPN was also coming as Layer_3 VRF

Problem:
Even after configuring EVPN Layer 2 VRFs in quagga its coming as EVPN Layer 3 VRFs.

Solution:
Changes to modify the layer type was missing in VPN engine

Change-Id: I8f45b06c02f3920512f16563d77b13b8ba076a9d
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
Bug 8358 -  Local next hop group not deleted after VM migration

Issue:

When a VM is migrated from one DPN to another, the FIB flows are not
programmed for the VM in the DPN to which it is migrated.

Analysis and Fix:

The l3nexthop container is used to check whether the local next hop group
is already present for a prefix. If it exits, no new group is created and just
the reference count is increased. When this prefix is removed, this
reference is decreased & the group is removed when the reference count is
0. It was observed that for the first VM creation, the reference count is
2(it should be 1) because of redundant calls to createlocalnexthop. A
check has been added to prevent this.

Also some other minor fixes have been done related to ECMP

1. The addition/deletion of extra route also changes the above mentioned
flow reference count. This caused problems while just updating the
extraroutes(the flow reference count keeps increasing and so the local
next hop group would never be deleted). Now, the addition/deletion of
extra routes doesnt change the flow reference count in the l3nexthop DS.

2. When there is no change in routepath of the extraroute(updated extra
route also present in the same DPN), there is no change in odl-fib DS and
so handling has been added to implicitly call the refresvrfEntry which
would update the FIB flows.

Change-Id: I4d7b435aed73268383b36e1c635c499c71e54c60
Signed-off-by: gobinath <gobinath@ericsson.com>
Bug 8412 - NPE while adding and removing elanmacentry

1. While advertising RT2 route prefix is Optional, hence added a safer
null check. if prefix is not present, still go ahead and advertise RT2
route
2. During withdraw if prefix is not present, return with error log.
3. Remove the elanName null check as its never null.

Change-Id: I3009bb9d19f3413d448031ff47771a986ef10746
Signed-off-by: Janki <jchhatba@redhat.com>
BUG 8537: Get destination from interface remote ip

Genius will not set the tunnel destination IP address until the very
last action. Classifier egress cannot expect to have this IP address
available on it's own pipeline.

Solve this by setting the IP address on REG0 on the egress service
binding actions. This will be the remote IP of the bound interface in
case of tunnel or the local IP otherwise.

To avoid overuse of registries, a REG is no longer used to set the
SFF IP address on table 101. This IP will be set directly on the path
specific flows of table 223 if needed. Previously this REG was being
used to know if the SFF was remote by comparing with the local IP in
these flows but that is not needed as it can be known at configuration
time.

Change-Id: If7a474391ed2d643cc3b3f34743d60c5f418b2e5
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
Replace toUpperCase().equals by equalsIgnoreCase()

Change-Id: I54ac6903362c15c6caab05810861de852d2619a5
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
Bump versions by x.y.(z+1)

Change-Id: I54e2105583481ca281691c735d81d027350d4711
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
Bug 8475 - Non-external vlan provider networks do not work

Patch - 2 for handling of review comments on master

Spec link:
http://docs.opendaylight.org/en/latest/submodules/netvirt/docs/specs/vlan-provider-enhancement.html

Change-Id: I4fc70ba20927257046e45ffe5d577106fcc8d09c
Signed-off-by: Ravindra Thakur <ravindra.nath.thakur@ericsson.com>
Bug 7939,8082: Table 19 flow nightmares

Table 19 flows rules aren't getting recycled appropriately
whenever VMs are moved into a routed subnet and then again
backed off.

The fix here attempts to make sure that Table 19 flow rules
are handled consistently when a subnet moves in/out of a router
and also when a router moves in/out of a bgpvpn.

Change-Id: Ief94b1b856a69c631052f11644db6a0b091f2aa7
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 7939 : SubnetRoute functionality for bgpvpn broken.

IPs behind Neutron Interfaces are not discoverable for
router-associated-to-bgpvpn use-cases.

With this fix we are disallowing creation of subnetRoutes for internal
subnets off neutron routers.
More specifically, for just neutron routers, subnetRoutes won't be published.
However, if such subnets are part of a router that is within a bgpvpn, the
subnetroutes feature will continue to work.

For the PNF review that requires subnetRoutes to be available,
the fix here needs to be further tweaked to make PNF discovery on internal
subnets of a VLAN-network to work.

PNF Review referredin commit message here is:
https://git.opendaylight.org/gerrit/53984

Change-Id: I507aae2e3d1cbb72457f32b48e598ef0f6cda703
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
BUG-8388: On egress, filter out SF bound packets

Classifier should not handle packets that are already classified and
bound towards the SFF. For this, we set C1 to 0xFFFFFF on the ACL flow.
Then on beginning of egress pipeline, if C1 does not have that value
we assumed that's a packet bound for the SF and already classified so
it is resubmitteed to dispatcher. Otherwise, C1 is reset to 0 and
handling continues.

Change-Id: I1427a9bbec7fb0c8e36c241b727d39de450bc1ed
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
Bug 8451: afi parameter is not the good one used in pushRoute and withdrawRoute

The afi parameter used as parameter is calculated based on the prefix nature,
that is to say either IPv4 or IPv6.

Change-Id: I6d34488e43d4dc589ce842fcd1675d24033c9f28
Signed-off-by: Noel de Prandieres <prandieres@6wind.com>
Bug 8471 - Traffic between a VM without FIP and a VM with FIP is not
working

1)Hairpinning changes are done for conntrack based SNAT, now it matches
on external subnet id that external n/w id.
2) The packets are submitted back to table 21 from 47.
3)L3_GW_MAC_TABLE (Table 19)  replace the external n/w id with external
subnet id for the packet address to router external interface
4)L3_FIB_TABLE (Table21) flow now matched external subnet id  instead of
n/w is along with external ip address.

Change-Id: Ib4de831a58638ed9d4aed9c78450e3d7bebf6222
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
Bug 8475 - Non-external vlan provider networks do not work

Spec link:
http://docs.opendaylight.org/en/latest/submodules/netvirt/docs/specs/vlan-provider-enhancement.html

Change-Id: Iad7479835a7bd97a4f827c8365601d2a20efe477
Signed-off-by: Ravindra Thakur <ravindra.nath.thakur@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug8484: Non-NAPT Group action is drop for router associated with BGP-VPN

Problem Description:
======================
Non-NAPT to NAPT VM Traffic is getting dropped at Non-NAPT Group level
when router is being associated with private BGP-VPN.

Solution:
===========
When ever Vxlan tunnel got "down" followed by "up" event between Non-NAPT to
Napt Switch happened, Non-Napt group got re-created through tunnel
interface state listener. In this use case is not been properly having the
code logic for if the router with private bgp-vpn configured.

Added the proper code for creating tunnel bucket information for Non-NAPT
groups got re-created during tunnel state changed.

Change-Id: I509eeda9041d5e1b170e45554b3d9f661e6091fd
Signed-off-by: karthikeyan <karthikeyan.k@altencalsoftlabs.com>
Bug 8473: Reboot fixes for ECMP with extra-routes

* It includes changes in the extraroute-rds-map container. Nexthop is
  added as key which is used to retrieve the allocated rd for an extra
  route. This is useful during reboot to know which rd is allocated for
  an extra route and this change avoids re-allocation of rds during reboot.

* Some minor fixes for reboot is also added in this review.

Change-Id: I31e8d153be947810a66ed3e2ccc686eee876bea8
Signed-off-by: eceghkl <manu.b@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Bug 8474: Enable openstack-vni-enforcement on data plane

Change-Id: I5f87df4b45e35a3b857f616437b6ede4c0b5f029
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Bug 8474: Local FIB entries for VxLAN VPN interfaces not programmed

Local FIB entries for VxLAN networks on router-based VPNs are not getting
programmed when VNI flag is turned to true, as makeConnectedRoute() wasn't
being called.
This commit fixes the same for create and delete cycles.

Change-Id: Ib81ac9aa1270921c11fc35cfb3352afdd5aff577
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug8471 : L3_GW_MAC_TABLE entry for FIP not removed.

Description : L3_GW_MAC_TABLE entries for Floating-ips where not removed
after FIP disassociation. The flow-key generated during removal was
different then during creation of this flow.

Change-Id: I6dc9d7dbb365d9e1a815241b01139658ebb59d12
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
Bug 8451 : Problem with EVPN RT5 exchange between ODL and QBGP

Problem:
ODL was always advertising encap type as MPLS and protocol type as ANY
irrespective of L3VPN or EVPN RT5

Fix:
Added the missing code to handle the encap type and protocol type

Change-Id: Ia4e27b62c33977ae5f5ce155695851f97bc47788
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
Bug 8025: Use RPC with barrier when sending SNAT packet out

When configuring SNAT flows and then sending a packet-out to those
flows, use RPCs with barriers before the packet-out to ensure the
flows are configured once the packet-out is sent.

Change-Id: I330df570857317e50bf5dc404e9691a0053f3f54
Signed-off-by: Alon Kochba <alonko@hpe.com>
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
Bug 8294 : fib-show cmd throws an exception on usage

When using fib-show, an exception was triggered when parsing FibEntries
from a VRF context.

Correcting the existing fix. Instead of break , changing to continue.

Change-Id: I4637ac14b7fd5bdb9ccb7978d1a2b40538098dfd
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
BUG-3874: BGP Manager / fib-show shell cmd triggers an exception on usage

When using fib-show, an exception was triggered when parsing FibEntries
from a VRF context. A sanity check is done in order to prevent accessing
null entries.

Change-Id: If296e3b4770518f53c789130565db8960ca63ef6
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
EVPN RT2 Installing flows for RT2 received in prior

1. When EVPN is created, vpn instance will be created and bgpmanager will
register with quagga bgp. hence BGPmanager will start receiving RT2 routes
from peer. Bgpmanager will write into macvrfentry(odl-fib.yang).
macvrfentrylistener is listening to macvrfentry and which installs dmac
flow for the received RT2 route only if EVPN is attached to network.

2. Now if EVPN is created and NOT attached to network. BgpManager will
still receive RT2 routes from peer, which will be written into
macvrfentry, but since evpn is not attached to network yet, hence DMAC
flows are not installed. Once Evpn is attached to network we need to go
through all the macvrfentry with the matching RD and install dmac flows.

3. when EVPN is detached from network, we go through all the macvrfentry
for that RD and uninstall DMAC flows.

4. async read is done so that even if it fails to read first time it tries
multiple times till either read is success or failure.

Change-Id: If4cb1b0fb924e7defa4e8c119dcf249b3f9b24f6
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
EVPN RT2 : Receive RT2 BGPManager changes

On receiving RT2, bgpmanager has to updated the macVrfEntry in fib.yang.
Also when the RT2 is from a new TEP, same has to be updated in elan
external tep DS.
A sample cli is added to simulate the RT2 from QBGP as well.

Change-Id: If193af109a3a08d08d6c6f32e715c71f045e5af8
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
EVPN RT2 : Listener for evpn to network associatn

When EVPN is created, even if no network is associated to it, BGP routes
will come from quagga which will be stored in FIB as MacVRF.
Now when the network association happens, all these routes should be
examined and corresponding elan DS has to be updated.

Change-Id: I53b75890005c67469cab512a3bf5824b6265f06d
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
bgpmanager VPNv6 shell command update as well as OAM changes

bgp-network command is modified so as to support the ability to
configure prefixes with afi parameter, to be 1 ( IPv4) or 2 ( IPv6).
Moreover, this extension permits retrieving the number of prefixes VPNv6 stored
on quagga, like it has been done for VPNv4

Change-Id: I90a043d5d2a77789b0a5fe376994b201830ad5fa
Signed-off-by: Noel De Prandieres <prandieres@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bug 7599  hwvtep ucast mac add performance improv

Adding batching to improve performance

Change-Id: I2844f7418a8f088064baafe4804a9c1a6b3a8f73
Signed-off-by: Akash Kumar Sahu <a.k.sahu@ericsson.com>
Bug 8014 l2gw connection broken

listener registration is broken in previous async datachange listener
refactoring change.

Adding the remote ucast macs immediately instead of waiting for mcast
to appear in operational datastore.

creating logical switch in config datastore , irrespective of if it is
found in operational datastore or not.

Change-Id: I7916ec4d457e189d28bf48eb3c11836dd6c311f6
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
EVPN RT2 DMAC flow install

1. When EVPN RT2 route is recieved from peer, BGPManager will write into
macvrfentery to which MAcVrfEntryListener is listening to.
and based on add or delete DMC flow entry is added/deleted.

2. ElanEvpnUtils contains utility methods which access elan related info

3. EvpnFlowUtils contains utility methods which helps
in installing flows in DMAC.

Change-Id: I6c6f1b407d4d209985be964011323019b6965a20
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
(cherry picked from commit cf7e6b3e276e6ea62886945b15c9c20e97b7d954)

Thrift changes to support IPv6 calls over Quagga BGP stack

Quagga BGP stack enhancement to support IPv6 leads to Thrift interface
modifications, which specifically include the following Type changes:
a) new AFI parameter - IPv6
b) pushRoute() includes new AFI parameter
c) withdrawRoute() includes new AFI parameter
d) getRoutes() includes new AFI parameter
e) onUpdatePushRoute() includes new AFI parameter
f) onUpdateWithdrawRoute() includes new AFI parameter
Thrift interface changes to include information on afi type.

Change-Id: Id4aea3809e58910c57e588fa6018119911b57834
Signed-off-by: Noel De Prandieres <prandieres@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
BUG-8387: Set tunnel id to 0 on egress towards SFF

When classifier is forwarding packets to the first SFF through a
tunnel, set the tunnel key to 0 as that what the SFF expects.

Change-Id: I02830f46cfe1507463aaabc562ee522646f778d3
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 8370 - Fib flows are not deleted after extra route deletion

Issue:

When the extra routes associated with a router are updated, the FIB flows
corresponding to the old extra routes are not deleted.

Analysis:

While there exists handling to update the loadblancing group corresponding
to the extra route, the handling to remove the FIB flows for the extra
route when the extra route is completely removed is missing.

Fix:

Changes have been added to the deletelocalfibentry to remove the FIB flows
of the removed extra route.

Change-Id: I77b5b9d46173b1c2613c28a495bc6a85bff52d9a
Signed-off-by: gobinath <gobinath@ericsson.com>
Fix ivpnlink bgp route leaking

 + After splitting the InterVpnLink refactor commit into 3 smaller
   ones, this line was missed.

Change-Id: Ic31fde68e18a0cb86948301c7e549fab42561168
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
Bug 8340 - Rules with IP prefix not getting programmed when there
are multiple SG associated with a port

1)Remote filter table programming during port update is fixed.
2)Ingress and Egress filter  table no is fixed in the  respective
classes.
3)AclInterface Map logic is updated to prevent duplicate entries.
4)Test added to cover interface with intially one acl and later two.

Change-Id: If5af5ced20ed81ec27201bd4ec0def91715ebda9
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
Refactor InterVpnLink. Part THREE

 + This one implements the final purpose of this refactoring:
   taking the route leaking out of the fibmanager to a higher level,
   in this case it's the BgpManager who now takes care of the route
   leaking in case of BGP routes and the VpnManager for static and
   connected routes.

Change-Id: Ie73a7061a26cfa3b95fad633533d44fff87ad6fb
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
BUG-8331: BGP Manager labels values are passedin correct order to QBGP

L3 Label Parameter is swapped with L2 Label when calling QBGP

Change-Id: Ib5d3260a696078e6b3d1de9cd0b84eaf0ebfef7d
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
BUG 8375 - Malformed NSH packets get dropped

- The NSH NextProtocol (NP) field must be set to 3 for ethernet
- Since the field isnt set, its set to 0 by default, which causes
  the packets to get dropped by the SFF OVS.

Change-Id: I4d13b86ff563b76a992c5c88791015053f5688e8
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
UT - Adding Netvirt classifier GeniusProvider tests

- added GeniusProviderTest.java
- added TestInterfaceManager.java to stub the Genius InterfaceMgr
- added TestOdlInterfaceRpcService.java to stub the Genius RPC calls
- added GeniusProviderTestParams.java with common test params for above 3 files
- changes to GeniusProvider for errors that the UT flushed out

Change-Id: I60e85811959319bf6e163641506aa2f26d9975d5
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
BUG:8345 & Bug:8347

   * The code-review contains below Fixes
   BUG:8347 -> NPE at org.opendaylight.netvirt.elan.internal.ElanSmacFlowEventListener.onFlowRemoved
   BUG:8345 -> OptimisticLockFailedException for elanDpnInterface
   Operational Datastore while deleting elan-instance and elan-interfaces

Change-Id: Id930e511f1f0814e17ca1f8cbbda43e9fd3d7e6f
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
Revert "Thrift changes to support IPv6 calls over Quagga BGP stack"

This reverts commit cae4adebcf7f6f79736859cd2dbb04599b435091.

Change-Id: I09f01ec493bf4dc1023f5fe22f7d8aa9768d0e53
Signed-off-by: harikrishna <hari.i.krishna@ericsson.com>
Revert "Thrift interface changes to support BGP VPNv6"

This reverts commit 21f5d03ca7cc0e0dfd53c3868196b6e93ec9ae19.

Change-Id: I1df917f4385ace0691b6fbf3cec408fd496e8180
Signed-off-by: harikrishna <hari.i.krishna@ericsson.com>
Revert "bgpmanager VPNv6 shell command update"

This reverts commit be855643f1ceadc9077882b81eb35533e5717148.

Change-Id: I9516ee1258f2fd3395a677a7b70ba0e5ad83e884
Signed-off-by: harikrishna <hari.i.krishna@ericsson.com>
Revert "bgpmanager: IPv6 information is collected vty shell"

This reverts commit b918dc13b79a565fb6d16194690c7d6c7eacb1e7.

Change-Id: I4a8ffda31d769ada55481ad708cd619c7c3a3a3b
Signed-off-by: harikrishna <hari.i.krishna@ericsson.com>
Rollback - ADDED INFO logs for tempest issue DEBUG

Change-Id: Ic695dd7bd011313e3f615c1c2f70bd7b7d212771
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
Bug 7939: Interface management on cluster reboot

Interface state changes are missed on a cluster
reboot resulting in some flows and DS not being
properly re-written.

Change-Id: Ie91cc1226f4d6494e4ce0e82f4dd0d6e00840396
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Bug 8349 - Creation of BGPVPN with the same RD is not restricted

ODL does not support handling of multiple bgpvpns with the same RD. Hence,
a bgpvpn create request with an already used RD should be denied.

Change-Id: I60d4cc00e73ca8089a15f5b6f4298d74ab7c7b0c
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
bgpmanager: IPv6 information is collected using vty shell

This extension permits retrieving the number of prefixes VPNv6 stored on
quagga, like it has been done for VPNv4.

Change-Id: I413c5b2ed1dc6d004f09a582f8510bccf1f1986a
Signed-off-by: Noel De Prandieres <prandieres@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Signed-off-by: Hari Krishna <hari.i.krishna@ericsson.com>
BUG 8340: Handle case when aceList is also empty

Change-Id: If76c63ec6c5dd00811f593ac8d6058341b8e1cf1
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Netvirt: Qos Alert patch7 - last

*** patch #7 - Added EntityOwnershipListener  ***

Only qosalert entity owner or master only should poll for port stats.
Once a master is elected, it shall continue polling until a new master is elected.

Spec Review Link:
https://git.opendaylight.org/gerrit/50689

Change-Id: I67ad2b3a016204b8e19e2971a0329b52aa8bd4fb
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
Netvirt: Qos Alert patch6

*** patch #6 - Added log4j configuraton support ***

1. Added a new log4j appender with default logging properties in qosalert.cfg
2. Added listener method update in QosAlertGenerator class to handle any chage in qosalert.cfg

Spec Review Link:
https://git.opendaylight.org/gerrit/50689

Change-Id: I2008a0a2dd22661e0f45251f0aac1088270d3d96
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
EVPN RT2 advertise and withdraw prefix changes

1) Added elan external tep listener.
When elan external tep is added update the elan remote broadcast
group for all elan dpns.

2) when an elan interface is added , advertise its prefix
when elan interface is deleted, delete its prefix.

3) Advertise prefix when we receive packet in message from silent
host.

4) Withdraw prefix when the smac flow entry of silent host expires

Change-Id: I870174f9fa0741a6508f2edec20dae7489b67d26
Signed-off-by: Yugandhar Reddy Kaku <yugandhar.reddy.kaku@ericsson.com>
Set feature capability for port status update

See: https://bugs.opendaylight.org/show_bug.cgi?id=7718
DEPENDS ON: https://git.opendaylight.org/gerrit/#/c/55854/

Change-Id: Ia83d31c348176947e31e11d383f770ac97390145
Signed-off-by: Josh <jhershbe@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
bgpmanager VPNv6 shell command update

bgp-network command is modified so as to support the ability to
configure prefixes with afi parameter, to be 1 ( IPv4) or 2 ( IPv6).

Change-Id: Ie0a5faf7160a049e930d2eb8f89af9d87693ddcd
Signed-off-by: Noel De Prandieres <prandieres@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Signed-off-by: Hari Krishna <hari.i.krishna@ericsson.com>
BUG 8296 - Erroneous Egress Classifier flows

- Egress classifier filter flow now just matches on NSH
  MD Type as set in the Ingress classifier ACL flow
- OpenflowRenderer.renderPath() is now passed the nodeIP
  instead of the destination SFF IP
- Patch Set 2 : fixed minor merge issue
- Patch Set 3 : fixes found by ClassifierEntryTest UT

Change-Id: Ide70b7222b08b2b363acc36126dc08e8a9add556
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Factor out executor from ClassifierService & UT

Depends on [1]

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

Change-Id: I4cf5bffcd33e2f4190a699a9982f75ca2d3ad8fd
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
Thrift interface changes to support BGP VPNv6

Thrift interface changes to include information on afi type.

Change-Id: Ie82e9a086621a551f19a0faaf9107d630277ae43
Signed-off-by: Noel De Prandieres <prandieres@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Signed-off-by: Hari Krishna <hari.i.krishna@ericsson.com>
Signed-off-by: Vivekanandan Narasimhan <n.vivekanandan@ericsson.com>
Thrift changes to support IPv6 calls over Quagga BGP stack

Quagga BGP stack enhancement to support IPv6 leads to Thrift interface
modifications, which specifically include the following Type changes:
a) new AFI parameter - IPv6
b) pushRoute() includes new AFI parameter
c) withdrawRoute() includes new AFI parameter
d) getRoutes() includes new AFI parameter
e) onUpdatePushRoute() includes new AFI parameter
f) onUpdateWithdrawRoute() includes new AFI parameter

Change-Id: Ibd4842624d55fd07ae88b0d2ca8094a641f8749d
Signed-off-by: Noel De Prandieres <prandieres@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Signed-off-by: Hari Krishna <hari.i.krishna@ericsson.com>
Bug 7866 adding retries for remote dmac programming during tunnel up event

* currently there is no retries in case of OptimisticLockFailedException
while programming remote dmac during tunnel up event. This leads to remote
dmac is programmed with drop action which leads to packet drop. Now added
retries for jc job.
* Also adding retries in case remote BC group fails (during tunnel up event) due to datastore exceptions.

Change-Id: I2bc024fc7133170c321c4a5071d6b58e00a2666b
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
EVPN RT2 NeutonVpn changes

1. EVPN RT2 RPC for create, delete, and get EVPN
creation and deletion of EVPN via REST is handled by NeutronEvpnManager.
When create EVPN RPC is received, NeutronEvpnManager will check if
vpninstance already exist with same name if not then it will create
vpninstance of type L2 for EVPN. similarly vpninstance will be deleted for
delete event.

2. Changes for attach/detach network to EVPN
NeutronEvpnManager will add/remove/update evpn name in Elan augmentation so that
EvpnElanInstanceManager will advertised and withdraw routes accordingly.

3. Few previous comments mandatory false from yang removal fix

4. Added ElanHelper file to move commonly used utility methods to avoid
cyclic dependency

Change-Id: I259734fad1ca0e19f38093b4e22a326fb6969459
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
Bug 8244  In Conntrack SNAT implementation G/w is not reachable when no
port in the router subnet is present in the node

1)Added a the pseudo port to vpn-dpn list.
2)Moved the router cache util to a separate class.

Change-Id: I6f5834ab3af1c3478274191bd7eafebc162dc25e
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
stale entry in flow rules, after deleting port associated to qos policy with dscp

When we are delete the VM which has an associated qos policy with it,
the stale entry of DSCP marking use to persist for the table number 90.

The reason for this was that when QosNeutronPortChangeListner is called
rpc called to fetch DPN id use to fail. By moving the code to
QosInterfaceStateChangeLister we can use Interface to find out DPN id.

Change-Id: I485d84806eae2bcc8341518f8186973efb171658
Signed-off-by: Naveen Kumar Verma <naveen.kumar.verma@ericsson.com>
Bug 8310 - SNAT flows not added when the first subnet is added to the
external n/w after router g/w set

1)Check for the presence of external IP during add.
2)Update now considers whether a subnet is added after router g/w set.

Change-Id: Ibb6f2a5cf031db18a624e68391415e6574242434
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
ClassifierUpdate unit tests

Change-Id: I4baa75c75c590e35a44da8b61e86eb27e625f79c
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
Fix remote acl bugs

1. Merging metadatas of lPort and aclId.
2. Handling reg6Match for ingress
3. Fixing dupplicate AclInterfaces in AclDataUtil
4. Adding all ips to remote acl filter table, not only those with remote acl rules
5. Fixing the flows instalation logic for the case of port in more than one SG.
6. Fixing handling of SG that uses itself as remote SG.

Change-Id: I64b0e294317e0ac1a3444192a92f8058f2604f1d
Signed-off-by: Slava Radune <slava.radune@hpe.com>
Netvirt: Qos Alert patch5

*** patch #5 - Port direct statistics polling  ***

Added support of  retrieval of port statistics data using OpenflowPlugin
direct-statistics RPC and log the alert message if packet drop ratio is
greater than the configured threshold value.

Spec Review Link:
https://git.opendaylight.org/gerrit/50689

Change-Id: I0a708ccd7eeb10c3d71fd8c08d5a2efeacdd3e25
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
BUG 8284 - Unmatched packets get dropped by Classifier

- Packets that enter the Netvirt classifier that dont get
  matched are dropped.
- These packets should instead be resubmit back to the
  Ingress Dispatcher table.
- The solution is to add a lower priority MatchAny flow
  to the INGRESS_SFC_CLASSIFIER_ACL_TABLE table that
  resubmits back to the Ingress Dispatcher.
- Adding UT for the newly created flow.

Change-Id: I2d8b598a1146aa72a2c64c9b12835a7612e16c11
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Fix the error in the egress classifier spec

The table numbers were wrong and could confuse newcomers

Change-Id: Idd57ab06f4c17801fc40dc90b00a410f5f4cfb74
Signed-off-by: Manuel Buil <mbuil@suse.com>
(cherry picked from commit ba22f7cf19d8a827d77a3391a7f654344ade43d8)

@Immutable FlowEntity with FlowEntityBuilder

This is dependent on the genius change
https://git.opendaylight.org/gerrit/#/c/53763/, which must be merged
simultaneously.

The change in the Xtend re. flowId is because the FlowEntityBuilder does
not have a getFlowId() like FlowEntity, only a setter; see
https://github.com/immutables/immutables/issues/432

Change-Id: Iecbe1ccd2c1c6cb9c914b70c6e44590d748ad739
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 7758: Use Trunk instead of Transparent port for Flat networks

Netvirt should have used Trunk ports for Flat networks, instead of
Transparent ports - otherwise there are issues of mixing Trunk and
Transparent ports together, since Trunks are automatically created
once there are Trunk Members (VLAN networks) on the same port.

Change-Id: If666b672b1158919623db11b5324321f2f7b15b0
Signed-off-by: Alon Kochba <alonko@hpe.com>
Netvirt: Qos Alert patch4

*** patch #4 - Building Qos Alert port cache ***

This patch builds a cache of port stats data having QoS rate-limit rule applied.

A neutron port is added into the cache if -

1. Port QoS policy has bandwidth rate limit rule.
2. If port does not have QoS policy applied, then if network QoS policy
   has bandwidth rate limit rule.

Spec Review Link:
https://git.opendaylight.org/gerrit/50689

Change-Id: Iafb22bd98009b891a2ef4911ef0edf9f2ab9c767
Signed-off-by: Arun Sharma <arun.e.sharma@ericsson.com>
Bug 8244 - In Conntrack SNAT implementation G/w is not reachable
when no
port in the router subnet is present in the node

Creates an elan interface when a router port is created amd is deleted
on port delete.

Change-Id: I18fa39310f22c7ad633037c7bda54f51d193374b
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
ClassifierEntry unit tests + javadoc

Change-Id: I1317a8e7cc0bc08bd027e8a91bf29111572feab8
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
EVPN RT2 elan changes to adv/withdraw RT2 routes..

1. Elan instance changes when network is attached and detached to EVPN
Neutronvpnmanager will add/delete/update evpn augmentaion in elan instance
EvpnElanInstanceManager is listening to the augmentation and based on type
of event EvpnElanInstanceManager will advertise or withdraw RT2 routes.

2. EvpnElanInstanceManager uses vpninstance to get rd to advertise or
withdraw routes.

Change-Id: I147da46e5d869cde560f25452e9e7511206a61dd
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
Bug-7718 Operational neutron port status

networking-odl requires feedback as to when a neutron
port can be marked as "ACTIVE". This commit places an
estimation of that information in the operational data
store. For ports that connect to OVS we wait for them
to connect and for basic L2 flows to be configured.
Note that we do not validate the flows in operational
nor do we check all flows. Ports that are implemented
purely as flows are marked ACTIVE immediately. The plan
is for networking-odl to receive notifications of these
status changes via a websocket.

It was decided at the time being
to keep the port status out of the ODL neutron project
since (a) functionally, this issue is mainly an issue for
netvirt and (b) to do it right in netvirt would require
some re-architecting.

Change-Id: Id719e904b277fe4dbb9c3d118d24c3bedf110a33
Signed-off-by: Josh <jhershbe@redhat.com>
Error messages are displayed when the port updated with qos policy stating
that binding are not allowed to the port

Following Error message was seen  when the same port updated with second
qos policy:

2017-04-05 14:42:54,116 | ERROR | pool-39-thread-7 |
FlowBasedServicesConfigListener  | 338 -
org.opendaylight.genius.interfacemanager-impl - 0.1.4.SNAPSHOT | Service
Binding entry update not allowed for:
b193e270-8053-4650-8059-a8ec57713069, Data:
BoundServices{getServiceName=qos.b193e270-8053-4650-8059-a8ec57713069,
getServicePriority=3, getServiceType=class
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.ServiceTypeFlowBased,
augmentations={interface
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.StypeOpenflow=StypeOpenflow{getFlowCookie=67108865,
getFlowPriority=10,
getInstruction=[Instruction{getInstruction=GoToTableCase{getGoToTable=GoToTable{getTableId=90,
augmentations={}}, augmentations={}}, getOrder=1, augmentations={}}]}}}

Use case:

- create a port, say port1
- create qos policy q1 with dscp and bandwidth
- Associate qos policy to the port
- observe the policy applied properly
- update the port again with qos policy q2
- Though the 2nd qos policy (here q2) seen applied properly , below error
  message was seen in ODL side:

  "Service Binding entry update not allowed"

  RCA:

  Qos service binding is happening even during the 2nd qos policy updation
  on the same port on which a 1st qos policy already associated.

Change-Id: Ia3754833d716f1e387bd7bdce00f82ed51a394ce
Signed-off-by: A Vamsikrishna <a.vamsikrishna@ericsson.com>
Bug 8189 - Policy flows are not updated after ovsdb other-config changes

Change-Id: Ic27b87922dd42aac020fa6f7e65bbab53e8c4489
Signed-off-by: Tali <tali.ben-meir@hpe.com>
Bug 8255 - VPN creation with multiple RD via Rest
is not working

fixed this by removing throwing of an error when
multiple RDs are passed to create VPN.

Change-Id: I28e546ca781d87566a2eb8b70148d980fa7dad3b
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
Bug 8200:NAPT_PFIB_TABLE(47) with Internet VPN is not programmed for EVPN

This code review will address the following problem for EVPN NAT UCs.

1) NAPT_PFIB_TABLE (47) resubmit to L3_FIB_TABLE (21) {47->21} with
external (internet) VPN Id as match flow is not programmed for if external
network with Provider type VXLAN is configured.

2) When the external router is deleted some of the EVPN stale entry flows are
presented.

3) If more than one floatingIp is available in vpn-to-dpn-list for given
dpn id, do not call for installing INTERNAL_TUNNEL_TABLE (table=36) -> PDNAT_TABLE (table=25)
flow entry with same tunnel_id again and again.

Change-Id: I5a54764da323ed1ac20f91dd40fc36c06ed59ecb
Signed-off-by: karthikeyan <karthikeyan.k@altencalsoftlabs.com>
Signed-off-by: Sam Hague <shague@redhat.com>
ADDED INFO logs for tempest issue DEBUG

Change-Id: I25cb78056fbc6b7cbd372ac7565c21472e2c3060
Signed-off-by: cgowdru <chetan.arakere@altencalsoftlabs.com>
(cherry picked from commit 8a75dc835b6ff248da8762081f8bcc44e432e679)

BUG 8240 - Fix odl-netvirt-sfc dependent features

- Adding the odl-sfc-genius feature.
- Setting the correct version for carbon

Change-Id: Iee6f0a3df0e4dd9b3ae5f57035d0c4a1584dd163
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Fix equals() bug in FederatedNetworkPair found by Checkstyle

This shows up as red in Eclipse, but the CLI mvn build missed this.

required for overall move to new Checkstyle version, see
https://git.opendaylight.org/gerrit/#/q/topic:bumpCheckstyle-stable/carbon

Change-Id: I7a46ac4c96e541d9fec17f3e6add9bcf65999a48
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Bug 8235 - Bug in group programming for directly connected subnet routes

Issue:

1. The ECMP feature enables the loadbalancing of traffic to the the extra
routes only but the discovered routes are also getting loadbalanced similar
to the extra routes.

2. This also leads to the issue in case of the discovered routes
containing macaddress(directly connected subnet route), the
loadbalancing groupId overrides the local nexthop group Id
as the parameters used for computing the groupId turns out to be same.

Analysis:

1. Since the discovered routes are also present in the vpntoextraroute
container, the discovered routes are also being currently loadbalanced by
ECMP feature.

2. Also, the loadbalancing groupId is computed from the prefix or the nexthop Ip
depending on whether the macadress is present or not(if mac is present,
the nexthopIp is used and prefix for otherwise). In case of the directly
connected subnet route, the macaddress is present and so the nexthopIp
is used for computing the loadbalancing groupId. This overlaps with
local next hop group programmed for that nexthop.

Fix:

Since the discovered routes have only 1 next hop, this
condition is now used to distinguish between discovered routes and the
extra routes. Only the extra routes are loadbalanced now and the
discovered routes are handled as before(creating a new local nexthop
group).

Change-Id: I6b0c5506f438ec1f816dfa0fdb045a8494950f48
Signed-off-by: gobinath <gobinath@ericsson.com>
FIB: VNI support in datapath for VxLAN networks

This commit adds support for VNI based L3 forwarding for VxLAN based
provider networks.
Spec: https://git.opendaylight.org/gerrit/#/c/48640/

Following changes are done:

1.
  i)   FIB_TABLE will set the destination network VNI in the tun_id
       field instead of the MPLS label.

  ii)  On egress OVS, match will happen on this VNI in table 36,
       and packet will be taken to ELAN pipeline in order to reach the
       destination VM.

  iii) Table 36 will no longer be programmed by FIB to match on MPLS
       label for internal router-based VPNs whose subnets are part
       of a VxLAN network

2. Some changes are done to program VNI in tun_id for ECMP LB NH
   groups.

3. The commit also incorporates the enforce-openstack-semantics
   flag to enable easy turning on/off of the feature.

4. Some refactoring and cleanup has also been done, majorly to
   remove the local utils/references for MDSAL sync
   write/delete/update APIs.

Change-Id:Id3244bd9f72028381e1790e96428a8f541f0e6b2
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
ELAN: VNI support in datapath for VxLAN networks

This commit adds support for VNI based datapath forwarding for VxLAN
based provider networks.
Spec: https://git.opendaylight.org/gerrit/#/c/48640/

a. Unicast
  1. Table 51 now sets VNI in tun_id field for packets egressing on
     tunnel ports
  2. On egress, table 36 now matches on VNI in tun_id field, sets the
     ELAN tag in metadata, and forwards the traffic to table 51

b. Broadcast
  1. Remote broadcast group now sets VNI in tun_id field for packets
     egressing on tunnel ports
  2. On egress, table 36 now matches on VNI in tun_id field, sets the
     ELAN tag in metadata, and forwards the traffic to table 51

Also, integrates the openstack-vni-semantics-enforced flag to enable
easier turning on/off of the feature

Change-Id: I7a6b14897344a8d00cb19291602d92cf586f15f7
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
Bug 8201 - ECMP not working with router based VPN

Issue:

In case of router based VPNs, the loadbalancing groups created for extra
routes are not updated with correct buckets when the extra route is
present behind different DPNs.

Analysis:

The issue is caused as the current design requires list of rds to
differentiate the extraroute present behind different DPNs.

Fix:

In case of the router based VPNs, the DpnIds are used as rds so the
vpntoextraroute is now populated correctly.

Change-Id: I18f6d39c67047a31817d442ba79aee6244bf3712
Signed-off-by: gobinath <gobinath@ericsson.com>
Bug 8221 - Remove Wait Time To Install L3VPN Groups on OVS

Currently we have a wait of 1.5s to ensure L3VPN groups are programmed
correctly in OVS, before we start programming the L3VPN Flows. This needs
to be optimized further.
This patch makes use of the OpenFlowPlugin addGroup() RPC call to directly
install the group in the OVS. This will ensure that the subsequent installation
of flows will always find the required groups in the OVS.
Group installation via the FRM is still retained to ensure consistency in the
datastore.

Change-Id: Ie4c2cf2a6199bad2a27d067d444a42ae04d3f191
Signed-off-by: eupakir <kiran.n.upadhyaya@ericsson.com>
Remove unused setFibManager

Change-Id: I627678151987577273bca88f5506a9faaedcd0c1
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 8188: L3VNI without configured UC handled for EVPN

Problem Description:
==================
L3VNI without configured in Internet VPN needs to be handled for EVPN in
NAT feature.
Currently Internet(External) VPN with L3VNI use case only handled for
external VXLAN network (EVPN) in NAT feature.

Internet(External) VPN without L3VNI use case also needs to be handled for
external VXLAN in NAT feature. Since Openstack Operator may configure L3VNI or
may not configure L3VNI.

Solution:
=========
Unconfigured of L3VNI value in Internet(External) VPN, will carve-out
the L3VNI value from OpenDaylight VXLAN VNI Pool to use SNAT and DNAT
flows.
The following UCs are handled based on the L3VNI configured/unconfigured
for GRE and VXLAN provider type.

Ext-Net-Type || Internet-VPN-L3VNI || External and Internal VXLAN uses
===============================================================================
GRE           Configured          Ignore L3VNI, allocate VNI from pool and
                                  use it for Intra-DC only
--------------------------------------------------------------------------------
GRE           Not Configured      A VNI taken from ODL Pool and used for
                                  Intra-DC communication
---------------------------------------------------------------------------------
VXLAN         Configured          Internet-VPN-L3VNI used for both
                                  Intra-Inter-DC communication
---------------------------------------------------------------------------------
VXLAN         Not Configured      A VNI taken from ODL Pool and used for both intra-
                                  inter-DC communication
---------------------------------------------------------------------------------

Note: If VNI value is unable to get from ODL VNI Pool, router-id will be
used as tunnel-id for external network provider type as VXLAN

Change-Id: I3c3f21e026303edf7eb2ad88bfd33622523085f0
Signed-off-by: karthikeyan <karthikeyan.k@altencalsoftlabs.com>
(cherry picked from commit 767d666b4a15f064be1478006328abf720c11c65)

cleanup ovsdb-ui bundle

Change-Id: I60da5608800bb36353e166334262e6f3bf33ac46
Signed-off-by: Sam Hague <shague@redhat.com>
Add ovsdb-ui bundle

Change-Id: If6b04d9ba61bcc32eac5603c13304b933318d184
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 8142 : DHCP timeout issue.

Issue:
stable/boron not usable - DHCP timeout

Analysis:
more than 5 thread were waiting on BGPConfigurationManager when BGP was
trying to send thrift messages to QBGP and QBGP is not up. BGP was
retrying it again and again. Meanwhile, services which call addPrefix is
getting blocked due to synchronized behavior of addPrefix.

Fix:
APIs exposed by BGP to other services - addPrefix, delPrefix, addvrf and
delVrf is made unsynchronized.

Change-Id: I6010b1eeef680b1f8d8908c2b9faf283b3827cfc
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
Deprecate legacy features

Depends-on: https://git.opendaylight.org/gerrit/55084

Change-Id: Ia0ac9c5d427bd616eaa651df2e85297225afdfe3
Signed-off-by: Sam Hague <shague@redhat.com>
add odl-sfc-genius to odl-netvirt-sfc

Change-Id: I2512b14e15210bda5e5b8339621ea8a7b2b02f13
Signed-off-by: Sam Hague <shague@redhat.com>
BUG 8240 - Fix odl-netvirt-sfc dependent features

- Needed to install odl-sfc-openflow-renderer instead of
  odl-sfc-provider in order to bring in all the needed
  SFC features.

Change-Id: Id83d65c5b67214a826ff903cf48efeeca61aa99a
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Bug 8241: Fix openstack-sfc ACLs IllegalArgumentException

Fix ace port range to be set only if mandatory lower port
is specified, otherwise we hit an exception.

Change-Id: Ic6206394e4255653a837c2b57cefc538555eefa4
Signed-off-by: Alon Kochba <alonko@hpe.com>
Bug 8170 - Loadbalancing nexthop group not updated after VM deletion

Issue:

When the last nexthop present in a DPN is deleted, the loadbalancing next
hop group is not updated. The group still contains the bucket pointing to
the deleted nexthop.

Fix:

There was an error while retrieving the endpointIpaddress for the DPN in
method getEndpointIpAddressForDPN. There was an error in converting the
IpAddress object to string. Appropriate conversion is used now.

Change-Id: I86cc77bd69446881d2ab669471f3142845e4d549
Signed-off-by: gobinath <gobinath@ericsson.com>
Bug 8162 - NPE at org.opendaylight.netvirt.vpnmanager.VpnSubnetRouteHandler.onSubnetAddedToVpn

Change-Id: I2936a473841b995a496c76064249a2bb9bd96354
Signed-off-by: Janki <jchhatba@redhat.com>
(cherry picked from commit f100cfb4e361fb07f91d2ec087839d292e94f1d0)

Set copyright for sfc translator back to Brocade

Change-Id: I576ff1dfe9c97cde540c1a56f77a857fb32e43eb
Signed-off-by: Sam Hague <shague@redhat.com>
Bug 8166: Acl interfaces are not set and cached correctly

The acl interface can exist in the cache before an interface
was assigned one. This can happen via the AclInterfaceStateListener.
Also, an interface ID should be set when a new entry is created.

Change-Id: I3e882582731eb273da533ac15dd2c8cc7f27ffe2
Signed-off-by: Yakir Dorani <yakir.dorani@hpe.com>
Use ArpConstants from arputil

Depend-on: https://git.opendaylight.org/gerrit/54890

This avoids duplicating constants and also helps to
break cyclics.

Change-Id: I76689a97d1131d13cffa382bbf4d07d7a3d19044
Signed-off-by: Sam Hague <shague@redhat.com>
Name all blueprint.xml file consistently

Change-Id: I7497339a96ff0f76f11e3f3c9937f57b6993169c
Signed-off-by: Sam Hague <shague@redhat.com>
Cleanup unused dependencies

Change-Id: I98eb44130f247108589db3aedf4e015b76ce03c1
Signed-off-by: Sam Hague <shague@redhat.com>
add interface for VpnFootprintService

This is another attempt to reduce cyclics.

Change-Id: I29acdc7fa4c681c24b0cafc8430716f189bd7be1
Signed-off-by: Sam Hague <shague@redhat.com>
Remove utils.config

Change-Id: Iaf232a25f055b26e392d337e85a2b15409b9c03d
Signed-off-by: Sam Hague <shague@redhat.com>
Remove legacy utils from new netvirt

Change-Id: I43a183b689846924ac8344117bfa59cae0457a4a
Signed-off-by: Sam Hague <shague@redhat.com>
BUG 8193 - Fix Netvirt classifier egress service port binding

- The Netvirt classifier egress service should bind on egress
  ports, not ingress ports like it does now.
- Since its not possible to know all the possible egress ports
  to bind on before-hand, the egress classifier service will
  bind on all switch ports. It will only process NSH packets
  and return all others to the egress dispatcher.
- Also in this patch, when the SFF is on the same bridge as
  the classifier, the egress classifier will resubmit the
  packets directly to the SFF instead of going through the
  ingress dispatcher, since we dont know the correct ingress
  port to use for the SFF.
- Updated OpenFlow13ProviderTest to reflect the change to the
  egress classifier resubmit.
- Changes from code review comments
- Final changes to make sure the egress binding is working.
  Now using getDpnInterfaceList RPC to get the switch ports
  to bind to.

Change-Id: I97bc38722064738ee22b8ddbc7163bc5dc3dd276
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Bug 8105: IllegalArgumentException in getSrcIp fix

1. reading IP and ARP payload was wrong, which is fixed by getting payload from
deserialised ethernet data based on IPv4 or ARP, getPayload will return
the right payload as the offsets are maintained in Packet based on
type of payload.
2. IllegalArgumentException was for payload type IPv4 where
getSourceAddress method will return of type int, and
NWUtil.toStringIpAddress will accept input as byte.
The same was working fine with payload type ARP as
getSenderProtocolAddress return byte.
3. Tested these changes by creating 2 ports in neutron network, delete 1
port and send ping packets from deleted port to the other port.
First ARP packet hit and was able to retrieve IP address properly, and
then data traffic hit and was able to retrieve IP address.

Change-Id: I16af2e18e2c857a5529f4ffef1caf9da014d521f
Signed-off-by: Riyazahmed D Talikoti <riyazahmed.d.talikoti@ericsson.com>
(cherry picked from commit 0c9a0f34e776cf3620cc4eed8a5f0afe5eec1d23)

Bug 8014 - L2Gw connectivity not working

Tunnel creation issue as cache were not populated properly
Fixed .

Change-Id: I7613afe762f0a865275c3fc492045ef4d035ba84
Signed-off-by: Akash Kumar Sahu <a.k.sahu@ericsson.com>
Cleanup version properties

Change-Id: I15c3131032866d0094b7f34ac7e4c85cfe139665
Signed-off-by: Sam Hague <shague@redhat.com>
Update .gitreview to stable/carbon

Change-Id: Ib6980e6ee2c6ff084075771ff350881fe8024265
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>