genius.git
7 years agoBump versions by x.(y+1).z for next dev cycle 96/54696/1
Anil Belur [Tue, 11 Apr 2017 01:45:35 +0000 (11:45 +1000)]
Bump versions by x.(y+1).z for next dev cycle

Change-Id: I6b36f127efb83a0349606e4bda8aa99aba518a3b
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoUse ThreadFactoryProvider from (now in) infrautils, rm genius.infra 16/54416/3
Michael Vorburger [Thu, 6 Apr 2017 10:04:11 +0000 (12:04 +0200)]
Use ThreadFactoryProvider from (now in) infrautils, rm genius.infra

as well as LoggingThreadUncaughtExceptionHandler (same)

Change-Id: I8156829ad01ad8afeb24798cf010def8f5ebe5b9
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 8111: Conflicting modification for path 51/54351/5
Kency Kurian [Wed, 5 Apr 2017 11:28:21 +0000 (16:58 +0530)]
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>
7 years agoMerge "Fix getInterfaceInfo API for logical tunnels"
Faseela K [Sun, 9 Apr 2017 03:05:49 +0000 (03:05 +0000)]
Merge "Fix getInterfaceInfo API for logical tunnels"

7 years agoMinor: IdManagerTest Java 8 lambda 86/54386/3
Michael Vorburger [Wed, 5 Apr 2017 19:58:30 +0000 (21:58 +0200)]
Minor: IdManagerTest Java 8 lambda

Change-Id: I154cd0317537c8f48aaa1cabec43ccef78f5e2eb
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Enhancing junits of interface-manager phase5"
Michael Vorburger [Thu, 6 Apr 2017 15:42:03 +0000 (15:42 +0000)]
Merge "Enhancing junits of interface-manager phase5"

7 years agoMerge "LockManagerTest v1"
Michael Vorburger [Thu, 6 Apr 2017 14:48:21 +0000 (14:48 +0000)]
Merge "LockManagerTest v1"

7 years agoFix getInterfaceInfo API for logical tunnels 28/54428/2
Faseela K [Thu, 6 Apr 2017 12:25:44 +0000 (17:55 +0530)]
Fix getInterfaceInfo API for logical tunnels

getInterfaceInfo was unnecessarily setting a group-id for all
interfaces where actually it is not, and also for logical tunnels,
the groupid returned was not correct.

Change-Id: I67a40650e12d28ed3a125440859c092b7b281c20
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoLockManagerTest v1 27/54427/1
Michael Vorburger [Thu, 6 Apr 2017 12:18:14 +0000 (14:18 +0200)]
LockManagerTest v1

BTW: LockManager's retry logic appears to be completely broken!

Change-Id: Ia7408b39e0fecd6ead6eda3ed7b86cc5f0481f56
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoEnhancing junits of interface-manager phase5 20/54420/1
Faseela K [Thu, 6 Apr 2017 11:02:18 +0000 (16:32 +0530)]
Enhancing junits of interface-manager phase5

Adding tests for southbound port and switch updates

Change-Id: I93207e9309dfa685c7bd7a8998b2cfb56e6c6345
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "To prevent erronus comparison of enums, fixes persistence of mbean alarms...
Faseela K [Thu, 6 Apr 2017 10:01:32 +0000 (10:01 +0000)]
Merge "To prevent erronus comparison of enums, fixes persistence of mbean alarms on configuring teps."

7 years agoTo prevent erronus comparison of enums, 39/54239/3
Edwin Anthony [Thu, 6 Apr 2017 05:36:10 +0000 (11:06 +0530)]
To prevent erronus comparison of enums,
fixes persistence of mbean alarms on configuring teps.

Change-Id: I672a545458f3e837080ecc9df22659573a71050d
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoMultiple VxLAN tunnels - initial support 71/52871/24
Olga Schukin [Mon, 6 Mar 2017 08:26:37 +0000 (10:26 +0200)]
Multiple VxLAN tunnels - initial support

- ITM - global configuration option to guard the feature
- ITM - creation of multiple tunnels between pair of DPNs
- Maintain interface-child-info model for tunnel hierarchy
- Logical tunnel group creation
- Prepare OF select group for egress service
- CLI tep:show-state to show the logical tunnel interface correctly

Change-Id: I3eca1a7995922feafa4135bdaff83b44a6f1ed0a
Signed-off-by: Olga Schukin <olga.schukin@hpe.com>
7 years agoMerge "Removing references to neutron port from logs"
Faseela K [Wed, 5 Apr 2017 06:52:01 +0000 (06:52 +0000)]
Merge "Removing references to neutron port from logs"

7 years agoBug 8070: Update the description of the command tep:deletedatastore 80/53780/2
Rong Xu [Fri, 24 Mar 2017 10:19:10 +0000 (18:19 +0800)]
Bug 8070: Update the description of the command tep:deletedatastore

Change-Id: I696660c1f4a2684e301c34fbd38614e5e42eccb6
Signed-off-by: Rong Xu <xu.rong4@zte.com.cn>
7 years agoMerge "ArpUtil test framework"
Michael Vorburger [Tue, 4 Apr 2017 17:49:47 +0000 (17:49 +0000)]
Merge "ArpUtil test framework"

7 years agoMerge "Minor Clean-up post Blueprint migration"
Michael Vorburger [Tue, 4 Apr 2017 17:47:17 +0000 (17:47 +0000)]
Merge "Minor Clean-up post Blueprint migration"

7 years agoRemoving references to neutron port from logs 98/54298/3
Faseela K [Tue, 4 Apr 2017 08:37:17 +0000 (14:07 +0530)]
Removing references to neutron port from logs

As this is a common API which can get called from InterfaceConfigListener
add() / update() method, was seeing neutron port references even for other
usecases in the error logs.

Change-Id: Ide2694b0de1023d7f39fab5df53f44bf6f4157d5
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "Fix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (2/2)"
Michael Vorburger [Tue, 4 Apr 2017 16:28:00 +0000 (16:28 +0000)]
Merge "Fix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (2/2)"

7 years agoMinor Clean-up post Blueprint migration 91/54291/2
Edwin Anthony [Tue, 4 Apr 2017 04:46:41 +0000 (10:16 +0530)]
Minor Clean-up post Blueprint migration

Change-Id: I4b871cc90c4a7e92f4e35d6603295ee6cbb52330
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoArpUtil test framework 34/54134/4
Edwin Anthony [Tue, 4 Apr 2017 15:24:05 +0000 (20:54 +0530)]
ArpUtil test framework

Change-Id: I26f7f879cc99286ce43640092ad3836bf04241e7
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoEnhancing interface-manager junits - phase3 44/54244/4
Faseela K [Mon, 27 Mar 2017 10:19:35 +0000 (15:49 +0530)]
Enhancing interface-manager junits - phase3

Cleanup unused methods in interface-manager

Change-Id: If656303922b533aff7a7c0e12aec7896f05693ed
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoParentRef update for tunnels should be skipped 97/54297/1
Vishal Thapar [Tue, 4 Apr 2017 08:31:22 +0000 (14:01 +0530)]
ParentRef update for tunnels should be skipped

Tunnel interfaces today don't have a parentinterface. Updating it wrongly
tiggers unnecessary delete+add for tunnels. This adds unnecessary
overhead and should not be done till we have use cases that require these
and handle them accordingly.

Change-Id: I7e6893b445b507c3530eb4e348ec4f7f02324e57
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Workaround for Bug 7451"
Faseela K [Mon, 3 Apr 2017 19:37:54 +0000 (19:37 +0000)]
Merge "Workaround for Bug 7451"

7 years agoMerge "Enhancing junits of InterfaceManager - phase2"
Michael Vorburger [Mon, 3 Apr 2017 18:38:52 +0000 (18:38 +0000)]
Merge "Enhancing junits of InterfaceManager - phase2"

7 years agoEnhancing junits of InterfaceManager - phase2 75/53875/11
Faseela K [Wed, 29 Mar 2017 09:07:23 +0000 (14:37 +0530)]
Enhancing junits of InterfaceManager - phase2

Adding junits for interface updates, and vlan member interfaces

Change-Id: Ide7376be00b2ecbf4c4a1734e8ad00844fd412e8
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoFix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (2/2) 53/54053/3
Michael Vorburger [Wed, 29 Mar 2017 16:53:22 +0000 (18:53 +0200)]
Fix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (2/2)

This second change can now just remove those 'artificial' Builder
classes, because following an upgrade of the upstream XtendBeanGenerator
version used (in mdsal-binding-test-utils's dependencies), it now
"just works" directly, as one would naturally expect.

Change-Id: I78088d52b69be460f04a3e8bf8a894d0c554b014
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoWorkaround for Bug 7451 47/54247/2
Tali [Mon, 3 Apr 2017 07:58:23 +0000 (10:58 +0300)]
Workaround for Bug 7451

Leftovers in dispatcher table when unbind and ietf-state delete occurs simultaneously

The purpose of this patch is simply to lower the severity of this bug by making new
dispatcher flows override stale entries. This workaround cannot replace a real solution
since it would not survive OVS reboot scenarios

Change-Id: Ia0c883f733e49876101fe3e0fefcca7a93c87d89
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoBUG 8098: Add APIs to expose Ovsdb caches 12/54112/8
Vishal Thapar [Thu, 30 Mar 2017 14:29:48 +0000 (19:59 +0530)]
BUG 8098: Add APIs to expose Ovsdb caches

IFM maintains a few caches for TerminationPoints and OVsdbBridges which
can be useful for other modules. This adds support to expose those to for
others to use so they can avoid having to read Datastore.

Change-Id: I21e0bd0ca285631b49b5721b0f7325f3fe25cdb8
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Add util to get NXM register mask for elan-tag/vpn-id"
Vivek Srivastava [Fri, 31 Mar 2017 05:50:04 +0000 (05:50 +0000)]
Merge "Add util to get NXM register mask for elan-tag/vpn-id"

7 years agoMerge "Cleanup of irrelevant comments from genius"
Faseela K [Thu, 30 Mar 2017 17:37:36 +0000 (17:37 +0000)]
Merge "Cleanup of irrelevant comments from genius"

7 years agoMerge "Preserve Ingress Lport Tag in metadata till Egress"
Faseela K [Thu, 30 Mar 2017 17:37:11 +0000 (17:37 +0000)]
Merge "Preserve Ingress Lport Tag in metadata till Egress"

7 years agoCleanup of irrelevant comments from genius 13/54113/2
Faseela K [Thu, 30 Mar 2017 14:46:45 +0000 (20:16 +0530)]
Cleanup of irrelevant comments from genius

Change-Id: I474db16796fdb38d266d7a8197f107748e14ad21
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "Fix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (1/2)"
Michael Vorburger [Thu, 30 Mar 2017 16:04:02 +0000 (16:04 +0000)]
Merge "Fix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (1/2)"

7 years agoMerge "NxMatchInfo redesign: clean up"
Sam Hague [Thu, 30 Mar 2017 14:43:11 +0000 (14:43 +0000)]
Merge "NxMatchInfo redesign: clean up"

7 years agoMerge "Adding genius-design-doc in rst format"
Sam Hague [Thu, 30 Mar 2017 14:32:29 +0000 (14:32 +0000)]
Merge "Adding genius-design-doc in rst format"

7 years agoFix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (1/2) 44/53844/3
Michael Vorburger [Sat, 25 Mar 2017 03:07:10 +0000 (04:07 +0100)]
Fix MatchIcmpv4 & MatchIcmpv6's problems with XtendBeanGenerator (1/2)

This fixes this by adding missing getters.  A future change will
completely remove the respective Builder/s, as a new upstream
XtendBeanGenerator release will directly handle this case.

Change-Id: I09c10618f0b0cf63786cc31a014fd4633f5821d1
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Bug 8023 CSIT failures with ELAN drop rule"
Sam Hague [Thu, 30 Mar 2017 11:53:32 +0000 (11:53 +0000)]
Merge "Bug 8023 CSIT failures with ELAN drop rule"

7 years agoMerge "Bug 8048 potential fix for ID duplication issue"
Sam Hague [Thu, 30 Mar 2017 11:45:57 +0000 (11:45 +0000)]
Merge "Bug 8048 potential fix for ID duplication issue"

7 years agoMerge "Fix missing node IDs for interface in IFM provider"
Vishal Thapar [Thu, 30 Mar 2017 02:35:25 +0000 (02:35 +0000)]
Merge "Fix missing node IDs for interface in IFM provider"

7 years agoMerge "Enhancing junits of interface-manager - phase1"
Faseela K [Thu, 30 Mar 2017 01:53:35 +0000 (01:53 +0000)]
Merge "Enhancing junits of interface-manager - phase1"

7 years agoPreserve Ingress Lport Tag in metadata till Egress 79/53779/3
Faseela K [Fri, 24 Mar 2017 10:19:13 +0000 (15:49 +0530)]
Preserve Ingress Lport Tag in metadata till Egress

Change-Id: I0033fb4140cc6df7033f580564413828cdd7baa5
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoAdd util to get NXM register mask for elan-tag/vpn-id 04/54004/4
Tali [Tue, 28 Mar 2017 20:02:31 +0000 (23:02 +0300)]
Add util to get NXM register mask for elan-tag/vpn-id

Add reg3 and reg7 to NxMatchRegister keys

Change-Id: Icb10aaea0fe5faeeafe117bb2b519e3e3f276842
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoFix missing node IDs for interface in IFM provider 48/54048/2
Jaime Caamaño Ruiz [Wed, 29 Mar 2017 15:47:40 +0000 (17:47 +0200)]
Fix missing node IDs for interface in IFM provider

Prevented some configuration interfaces to processed correctly as no
parent refs can be found for them.

Change-Id: I5b751cda479a0aacbe0086f310cf05e17b53da06
Signed-off-by: Jaime Caamaño Ruiz <jaime.caamano.ruiz@ericsson.com>
7 years agoBug 7623: Genius' Karaf 4 features 66/51966/10
Michael Vorburger [Thu, 16 Feb 2017 14:37:33 +0000 (15:37 +0100)]
Bug 7623: Genius' Karaf 4 features

see https://wiki.opendaylight.org/view/Karaf_4_migration

Change-Id: Ib33e4ad268e4e93ec340e483d7505a44c3a5fab6
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoEnhancing junits of interface-manager - phase1 31/53631/6
Faseela K [Mon, 20 Mar 2017 18:00:19 +0000 (23:30 +0530)]
Enhancing junits of interface-manager - phase1

Adding junits for InterfaceManagerRpcService

Change-Id: I64d29334261b236af364ae74d7be53a8cbfc5568
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoNxMatchInfo redesign: clean up 49/52249/2
Stephen Kitt [Fri, 24 Feb 2017 13:04:43 +0000 (14:04 +0100)]
NxMatchInfo redesign: clean up

This requires downstream users to have switched to the new classes.
The patch has been verified against netvirt using the corresponding
patch.

Change-Id: Ib9d2e058d368cccfe58cba213fb0a94aeb99cf5d
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoAdding genius-design-doc in rst format 72/53072/6
Vivek Srivastava [Thu, 9 Mar 2017 08:57:42 +0000 (14:27 +0530)]
Adding genius-design-doc in rst format

Change-Id: Ia65dca3d3edb2fa129e9a237c890aeb4435a2a2c
Signed-off-by: Vivek Srivastava <vivek.v.srivastava@ericsson.com>
7 years agoFix issues related to checkstyle enforcement for module 96/53896/8
David [Mon, 27 Mar 2017 09:51:17 +0000 (11:51 +0200)]
Fix issues related to checkstyle enforcement for module
interfacemanager-impl

- Dates
- Line lengths
- Formatting
- Exception catching
- Order imports
- Change variable names
- JavaDoc
- Move variables closer to their declaration
- Shorten type declarations
- Remove redundant modifiers
- Group overloaded methods
- Checkstyle enforcement in pom.xml

Change-Id: Ia24783974ae39ef872a627f475d3c80571dba534
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
7 years agoBug 8023 CSIT failures with ELAN drop rule 58/53958/5
Hema Gopalakrishnan [Tue, 28 Mar 2017 07:01:04 +0000 (12:31 +0530)]
Bug 8023 CSIT failures with ELAN drop rule

Switched the ITM Tunnel List batching to individual transaction submit as
batching latencies causes ELAN to program drop rules. Will revert this
when ELAN starts to listen on ITM's tunnels_state DS

Change-Id: I66fac0b9a598e8e6e361c958b3c9c2082441eff5
Signed-off-by: Hema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
7 years agoMerge "lport-tag not released for vlan member interface deletion"
Faseela K [Tue, 28 Mar 2017 09:05:21 +0000 (09:05 +0000)]
Merge "lport-tag not released for vlan member interface deletion"

7 years agoMerge "ITM Tep Auto Config Unit test using Guice."
Vivek Srivastava [Tue, 28 Mar 2017 08:45:13 +0000 (08:45 +0000)]
Merge "ITM Tep Auto Config Unit test using Guice."

7 years agoMerge "Add optional mask argument to NxMatchRegister"
Faseela K [Tue, 28 Mar 2017 08:03:37 +0000 (08:03 +0000)]
Merge "Add optional mask argument to NxMatchRegister"

7 years agoMerge "Add getChildInterfaces to IInterfaceManager"
Faseela K [Tue, 28 Mar 2017 07:51:20 +0000 (07:51 +0000)]
Merge "Add getChildInterfaces to IInterfaceManager"

7 years agoMerge "Cache optimizations for setting parent-refs"
Faseela K [Tue, 28 Mar 2017 05:48:20 +0000 (05:48 +0000)]
Merge "Cache optimizations for setting parent-refs"

7 years agoBug 8048 potential fix for ID duplication issue 91/53591/7
Kency Kurian [Tue, 21 Mar 2017 07:23:02 +0000 (12:53 +0530)]
Bug 8048 potential fix for ID duplication issue

* Added required info logs to debug issue
* Added appropriate synchronizers in lock manager so that id can't not
released more than once

Change-Id: I5822af7dc6ce040bc0a2983877e13e8868222f23
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
7 years agoAdd optional mask argument to NxMatchRegister 66/53866/2
Tali [Sun, 26 Mar 2017 15:16:13 +0000 (18:16 +0300)]
Add optional mask argument to NxMatchRegister

Change-Id: Ieeaa971917dc19b3ef3b08c0719e596581985aa0
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoMerge "mdsalutil-api datastoreutils thread pools etc. shutdown on bundle stop"
Sam Hague [Mon, 27 Mar 2017 17:03:09 +0000 (17:03 +0000)]
Merge "mdsalutil-api datastoreutils thread pools etc. shutdown on bundle stop"

7 years agoMerge "Adding dest IP/MAC in ArpResponseReceived"
Sam Hague [Mon, 27 Mar 2017 12:52:10 +0000 (12:52 +0000)]
Merge "Adding dest IP/MAC in ArpResponseReceived"

7 years agoITM Tep Auto Config Unit test using Guice. 59/53759/5
Tarun Thakur [Thu, 12 Jan 2017 15:07:35 +0000 (20:37 +0530)]
ITM Tep Auto Config Unit test using Guice.

Added cases for:
- Change for def-tz-enabled and def-tz-tunnel-type config paramters
- Default-TZ creation and deletion based on def-tz-enabled flag
- TEP addition and deletion into/from default-TZ
- TZ creation and TEP addition into TZ
- TZ deletion and TEP deletion from TZ
- TEP addition and deletion into/from default-TZ via southbound
- TEP addition and deletion into/from northbound configured TZ via southbound
- TEP addition and deletion into/from NotHostedList via southbound
- Move TEP from one TZ to other TZ by changing tzname parameter in
  ExternalsIds list in Ovsdb node from southbound
- Update TEP for its bridge by changing dpn-br-name parameter in
  ExternalsIds list in Ovsdb node from southbound

Fixed errors due to new change of (1) dpn-br-name to br-name and
(2) 'weight' param inside vteps in itm.yang

Fixed checkstyle issues.

Change-Id: Iea4279a992bf80a95d04e39f08cc59188327c9b5
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
7 years agoCache optimizations for setting parent-refs 50/51650/20
Vishal Thapar [Thu, 9 Feb 2017 19:31:03 +0000 (01:01 +0530)]
Cache optimizations for setting parent-refs

https://git.opendaylight.org/gerrit/49907 introduced a few DS reads which
are not very optimal. This adds couple caches to eliminate/optimize those
reads.

This also removes CacheInterfaceConfigListener and CacheInerfaceStateListener.
There are already clustered listeners for same path.
So we move cache updates to these listeners than using separate listeners.

Change-Id: I06d3ccb2c02fa821ea035db209561bc952c19ee7
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Make InterfaceStateListener Singleton"
Faseela K [Mon, 27 Mar 2017 09:18:16 +0000 (09:18 +0000)]
Merge "Make InterfaceStateListener Singleton"

7 years agoMerge "Ignore null tunnel id in getEgressActionInfosForInterface for VxLAN tunnels"
Faseela K [Mon, 27 Mar 2017 08:10:44 +0000 (08:10 +0000)]
Merge "Ignore null tunnel id in getEgressActionInfosForInterface for VxLAN tunnels"

7 years agoIgnore null tunnel id in getEgressActionInfosForInterface for VxLAN tunnels 21/53621/2
Tali [Tue, 21 Mar 2017 15:41:52 +0000 (17:41 +0200)]
Ignore null tunnel id in getEgressActionInfosForInterface for VxLAN tunnels

When packets arrive from the ingress service pipeline to the logical
group they already contain VNI from L2/L3 services. When redispatching
the packet to the selected tunnel VNI gets overridden by this method

Change-Id: Ia5ebdbc43deb4670892cbecc52e9741d6872223f
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoAdd groupExists API to IMdsalApiManager 34/53634/2
Tali [Tue, 21 Mar 2017 19:08:38 +0000 (21:08 +0200)]
Add groupExists API to IMdsalApiManager

Change-Id: I8dd32f5ffaa8412be6106de0de421df8015d4441
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoBUG 8080: IPv6 CSIT is failing 68/53868/3
Vishal Thapar [Sun, 26 Mar 2017 18:27:04 +0000 (23:57 +0530)]
BUG 8080: IPv6 CSIT is failing

ITM checkstyle patch removed someof the Ipv6 code causing regression. This
patch fixes it and also adds some more IPv6 friendly code that was
initially missed.

Change-Id: I5bbc356bed27b237a51487d3076ebc0a1dec236a
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMake InterfaceStateListener Singleton 74/53874/1
Faseela K [Mon, 27 Mar 2017 00:55:32 +0000 (06:25 +0530)]
Make InterfaceStateListener Singleton

Change-Id: I14647b63989de33f5773ff37fafde995b177f0f4
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoEnable FindBugs for alivenessmonitor-impl-protocols 70/52970/8
Michael Vorburger [Tue, 7 Mar 2017 19:18:11 +0000 (20:18 +0100)]
Enable FindBugs for alivenessmonitor-impl-protocols

* Remove unused private methods.
* Use Optional instead of returning null.
* Add a type parameter to AlivenessProtocolHandler and its implementations.
* Add missing null-checks.
* Remove unnecessary variable initialisations.
* Specify the charset in AlivenessProtocolHandlerLLDP instead of relying on the system default.
* AlivenessMonitor.FutureCallbackImpl doesn't need any state from its parent, make it static.
* AlivenessProtocolHandler.handlePacketIn() can return null, mark it @Nullable.

Change-Id: Ib1f5bee112b410441712ac7e91cb8508835c0bf3
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoDataStoreJobCoordinator @deprecated use infrautils instead 45/53745/4
Michael Vorburger [Thu, 23 Mar 2017 15:59:49 +0000 (16:59 +0100)]
DataStoreJobCoordinator @deprecated use infrautils instead

Change-Id: I13bfeef158bd8a45a325e3d0d5490b7b7f1a2db8
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAdd getChildInterfaces to IInterfaceManager 73/53873/1
Tali [Sun, 26 Mar 2017 19:53:50 +0000 (22:53 +0300)]
Add getChildInterfaces to IInterfaceManager

Change-Id: Id87aaabe7932d5c95e4f5986846abd85c104deae
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoAdded consts for counter service 18/51518/14
Guy Regev [Tue, 7 Feb 2017 14:24:50 +0000 (16:24 +0200)]
Added consts for counter service

Change-Id: Ifa12f3353c4fe4b8917bc36c99e37a3f823c0ce5
Signed-off-by: Guy Regev <guy.regev@hpe.com>
7 years agoMerge "Changes for policy-based path selection"
Sam Hague [Sat, 25 Mar 2017 13:29:04 +0000 (13:29 +0000)]
Merge "Changes for policy-based path selection"

7 years agoMerge "AbstractTestableListener timeout increased from 3s to 30s"
Sam Hague [Sat, 25 Mar 2017 12:40:44 +0000 (12:40 +0000)]
Merge "AbstractTestableListener timeout increased from 3s to 30s"

7 years agoFixing InterfacestateListener after BP migration 18/53818/4
Faseela K [Fri, 24 Mar 2017 21:22:38 +0000 (02:52 +0530)]
Fixing InterfacestateListener after BP migration

Change-Id: I7ee5576c83d17fe995511495167a503889fa435b
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoAbstractTestableListener timeout increased from 3s to 30s 38/53838/1
Michael Vorburger [Sat, 25 Mar 2017 02:24:19 +0000 (03:24 +0100)]
AbstractTestableListener timeout increased from 3s to 30s

including new "in progress" LOG

dito for TestableJobCoordinatorEventsWaiter (recently added)

Change-Id: Id1d37675b0df9533b2faff571d52961ca988ba99
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoFix bug in MatchInPort equals() method 55/53755/3
Michael Vorburger [Thu, 23 Mar 2017 22:55:18 +0000 (23:55 +0100)]
Fix bug in MatchInPort equals() method

Calling super() is wrong in this particular case, see MatchInPortTest
(which fails without this fix, but passes with it).

BTW: We need to just completelystop hand writing equals() and hashCode()
methods, anywhere... I'll put in a separate new change some time, to
replace all of this with immutables.org gen. code.

Change-Id: Iec1f3c9cd3588bf77b7d86e218c5dd586712690e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agolport-tag not released for vlan member interface deletion 23/53823/1
Faseela K [Fri, 24 Mar 2017 22:28:03 +0000 (03:58 +0530)]
lport-tag not released for vlan member interface deletion

Change-Id: I03b9f49a38b751454356fe8b48d514e5d8f01d8f
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoITM checkstyle enforcement 23/52623/15
Edwin Anthony [Fri, 24 Mar 2017 06:49:17 +0000 (12:19 +0530)]
ITM checkstyle enforcement

Change-Id: I3b06cd1d2361ccbe9c0c03ad14591d111415095e
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoMerge "interface-manager - Minor logging enhancement"
Faseela K [Fri, 24 Mar 2017 10:27:37 +0000 (10:27 +0000)]
Merge "interface-manager - Minor logging enhancement"

7 years agoMerge "Revert "Spec for Counter Framework bundle""
Vivek Srivastava [Fri, 24 Mar 2017 09:25:36 +0000 (09:25 +0000)]
Merge "Revert "Spec for Counter Framework bundle""

7 years agointerface-manager - Minor logging enhancement 74/53774/2
Faseela K [Fri, 24 Mar 2017 08:59:11 +0000 (14:29 +0530)]
interface-manager - Minor logging enhancement

Adding bfd-state in the update log information

Change-Id: Id8b4a6a38c1fc71d64c39783544f9f9d64be38f9
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoRevert "Spec for Counter Framework bundle" 73/53773/1
Faseela K [Fri, 24 Mar 2017 08:25:18 +0000 (13:55 +0530)]
Revert "Spec for Counter Framework bundle"

This reverts commit 5b27499fd1f7ca7635b50955d194b2d37104b1a7.

Change-Id: I42128c022d8f6f99a312329736a51feecc7f40a1
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoFix issues related to checkstyle enforcement for module 87/53687/2
David [Wed, 22 Mar 2017 15:31:27 +0000 (16:31 +0100)]
Fix issues related to checkstyle enforcement for module
interfacemanager-impl

- Dates
- Line lengths
- Formatting
- Exception catching
- Order imports
- Change variable names
- JavaDoc
- Move variables closer to their declaration
- Shorten type declarations
- Remove redundant modifiers

Note: more patches needed, checkstyle not enforced yet.

Change-Id: I252a1a2a120c92065b12cc714c01550dcbefa091
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
7 years agoRevert "ITM Tep Auto Config Unit test using Guice." 58/53758/1
Michael Vorburger [Thu, 23 Mar 2017 23:47:42 +0000 (00:47 +0100)]
Revert "ITM Tep Auto Config Unit test using Guice."

This reverts commit 381310f948d04ca1c1b830b366c81dada39bcb55.

Change-Id: Id07f7820f609db45c9c0f477f0d839f09d4a5297
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Fix overlapping bits in metadata between lport tag mask and elan subnet route...
Sam Hague [Thu, 23 Mar 2017 19:47:12 +0000 (19:47 +0000)]
Merge "Fix overlapping bits in metadata between lport tag mask and elan subnet route mask."

7 years agoMerge "Change externalId tep param dpn-br-name to br-name"
Vivek Srivastava [Thu, 23 Mar 2017 15:15:38 +0000 (15:15 +0000)]
Merge "Change externalId tep param dpn-br-name to br-name"

7 years agoMerge "ITM Tep Auto Config Unit test using Guice."
Vivek Srivastava [Thu, 23 Mar 2017 15:15:03 +0000 (15:15 +0000)]
Merge "ITM Tep Auto Config Unit test using Guice."

7 years agoMinor changes for Netvirt Egress Classifier tables 10/53710/3
Brady Johnson [Thu, 23 Mar 2017 09:38:35 +0000 (10:38 +0100)]
Minor changes for Netvirt Egress Classifier tables

- renamed EGRESS_SFC_CLASSIFIER_ACL_TABLE to EGRESS_SFC_CLASSIFIER_NEXTHOP_TABLE
- Added EGRESS_SFC_CLASSIFIER_EGRESS_TABLE

Change-Id: Ia2b6ca3824e9196ad8954c078f7ce5f0baa71737
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
7 years agomdsalutil-api datastoreutils thread pools etc. shutdown on bundle stop 76/52976/3
Michael Vorburger [Tue, 7 Mar 2017 23:59:00 +0000 (00:59 +0100)]
mdsalutil-api datastoreutils thread pools etc. shutdown on bundle stop

using an OSGi Activator, which isn't how I would do it in an ideal
world, but for the current design this is probably the best we can do;
the clean solution is as proposed in
https://git.opendaylight.org/gerrit/#/c/51431/14/jobcoordinator/jobcoordinator-impl/src/main/java/org/opendaylight/infrautils/jobcoordinator/internal/JobCoordinatorImpl.java

originally built in the hope that it would solve a problem with the
SingleFeatureTest (SFT) under Karaf 4, which it didn't - but this still
seems like a good idea, for possible future support of clean and fast
shut down.

probably will solve Bug 6564 in NetvirtIT (that wasn't the original
motivation, but as a "side effect" what's going on there should not
happen anymore)

Change-Id: I3e5e40ce5d23a15369732f79d0e6b0153a0cc351
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "TestIMdsalApiManager with naturally sorted flows"
Michael Vorburger [Thu, 23 Mar 2017 10:46:01 +0000 (10:46 +0000)]
Merge "TestIMdsalApiManager with naturally sorted flows"

7 years agoRemoving Deprecated Listener Base Classes 76/51876/10
Faseela K [Tue, 14 Feb 2017 19:16:37 +0000 (00:46 +0530)]
Removing Deprecated Listener Base Classes

Refer the weather item for more details:
https://wiki.opendaylight.org/view/Weather#Genius_AbstractDataChangeListener_clean-up

Change-Id: Ibb5e04c02fb94bca64c7c6d7c34210469aa913eb
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoChanges for policy-based path selection 33/52933/8
Tali [Tue, 7 Mar 2017 10:28:07 +0000 (12:28 +0200)]
Changes for policy-based path selection

* Constants definition
* Add classifier methods to MetadataUtil

Change-Id: I1df95db1db1f197085efff0766f8ac96009e5c89
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoChanges for New Netvirt SFC Classifier 68/53468/6
Brady Johnson [Fri, 17 Mar 2017 10:05:45 +0000 (11:05 +0100)]
Changes for New Netvirt SFC Classifier

- Adjusted service priorities
- Added SFC Classifier service, ingress and egress
- Added SFC Classifier table offsets
- More detail in Netvirt blueprint:
      https://git.opendaylight.org/gerrit/#/c/52063

Change-Id: I6d738979aaf4358bb429b538c8ee935e36fccd5a
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
7 years agoFix issues related to checkstyle enforcement for module 74/53574/2
David [Mon, 20 Mar 2017 17:03:52 +0000 (18:03 +0100)]
Fix issues related to checkstyle enforcement for module
interfacemanager-impl

- Dates
- Line lengths
- Formatting
- Exception catching
- Order imports
- Change variable names
- JavaDoc

Note: more patches needed, checkstyle not enforced yet.

Change-Id: Ifdc1c291f1be21e14b7f7bd0a95286f356acd00f
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
7 years agoSupport For Egress Service Binding On tunnels 69/53269/4
Faseela K [Tue, 14 Mar 2017 11:17:54 +0000 (16:47 +0530)]
Support For Egress Service Binding On tunnels

- Adding provision for binding egress services on tunnels
- GetEgressActionsForInterface will return new set of actions for tunnel
  interface
- Whenever a tunnel interface is created, a default service will be bound
  on the interface to take packets out on the tunnel port

Change-Id: Idf59949085876520c74548e269df0cc6927e3d7f
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "runOnlyInLeaderNode() - out of order event processing"
Faseela K [Mon, 20 Mar 2017 17:58:51 +0000 (17:58 +0000)]
Merge "runOnlyInLeaderNode() - out of order event processing"

7 years agoMerge "Ensure unique ids are allocate across cluster"
Faseela K [Mon, 20 Mar 2017 17:56:49 +0000 (17:56 +0000)]
Merge "Ensure unique ids are allocate across cluster"

7 years agoMerge "Cleanup: avoid immediate Optional.get()"
Michael Vorburger [Mon, 20 Mar 2017 14:14:19 +0000 (14:14 +0000)]
Merge "Cleanup: avoid immediate Optional.get()"

7 years agoFix overlapping bits in metadata between lport tag mask and elan subnet route mask. 46/53546/4
Yakir Dorani [Mon, 20 Mar 2017 09:24:38 +0000 (11:24 +0200)]
Fix overlapping bits in metadata between lport tag mask and elan subnet route mask.

When creating a VrfEntry with SubnetRoute augmentation, VrfEntryListener installs a
flow with vpn-id and elan-tag, but this overrides part of the lport-tag bits.
It looks like vpn-id is allocated in the range of 70,000 to 100,000,
but METADATA_MASK_VRFID has 31 bits (00000000FFFFFFFE).

This change shortens the VRFID to 23 bits which is enough for the vpn-id,
and shifts the elan subnet route mask which solves the overlapping.

Change-Id: Iaf23a15f41229782908dc56146e3dfae0cc78c58
Signed-off-by: Yakir Dorani <yakir.dorani@hpe.com>
7 years agoITM Tep Auto Config Unit test using Guice. 71/50371/16
Tarun Thakur [Thu, 12 Jan 2017 15:07:35 +0000 (20:37 +0530)]
ITM Tep Auto Config Unit test using Guice.

Added cases for:
- Change for def-tz-enabled and def-tz-tunnel-type config paramters
- Default-TZ creation and deletion based on def-tz-enabled flag
- TEP addition and deletion into/from default-TZ
- TZ creation and TEP addition into TZ
- TZ deletion and TEP deletion from TZ
- TEP addition and deletion into/from default-TZ via southbound
- TEP addition and deletion into/from northbound configured TZ via southbound
- TEP addition and deletion into/from NotHostedList via southbound
- Move TEP from one TZ to other TZ by changing tzname parameter in
  ExternalsIds list in Ovsdb node from southbound
- Update TEP for its bridge by changing dpn-br-name parameter in
  ExternalsIds list in Ovsdb node from southbound

Change-Id: Ie5300632009c174d571903cda137e829b995fb55
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>