genius.git
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 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 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>
7 years agoChange externalId tep param dpn-br-name to br-name 17/52917/3
Tarun Thakur [Tue, 7 Mar 2017 07:30:02 +0000 (13:00 +0530)]
Change externalId tep param dpn-br-name to br-name

ExternalIds TEP parameter 'dpn-br-name' is changed to 'br-name'
to keep it in sync with Openstack.

Change-Id: I0a5bfacfb7ee50aac69696be09697cf930f77b19
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
7 years agorunOnlyInLeaderNode() - out of order event processing 62/53462/3
Faseela K [Fri, 17 Mar 2017 08:00:35 +0000 (13:30 +0530)]
runOnlyInLeaderNode() - out of order event processing

While using runOnlyInLeaderNode() check in a scaled setup,
noticing that we are processing back to back toggling events
out of order, since the check is executed in a separate
thread

Change-Id: I0c7dcaba5a75d9676d31c3f3ada1d4243c941845
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoEnsure unique ids are allocate across cluster 61/53461/4
Kency Kurian [Fri, 17 Mar 2017 07:41:40 +0000 (13:11 +0530)]
Ensure unique ids are allocate across cluster

When allocateId and releaseId is invoked, we can lock on the uniqueIdKey
using lockManager in order to ensure that unique ids are allocated.

Change-Id: If9b897b5323b8e74a5cb09f85c7e151c50119e16
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoFix issues related to checkstyle enforcement for module 84/53484/3
David [Fri, 17 Mar 2017 15:11:25 +0000 (16:11 +0100)]
Fix issues related to checkstyle enforcement for module
interfacemanager-impl

- Copyright sections
- Line lengths
- Formatting
- Exception catching
- Private constructor for Utility classes
- Final modifier for Utility classes
- Move variable declaration closer to its use
- Move overloaded methods closer to each other
- Remove redundant modifiers
- Order imports
- Change variable names
- JavaDoc

Note: more patches will come on this module until final enforcement.

Change-Id: I3a2f2244a60947f9b43060b55a6b6ad90ff05c1b
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
7 years agoCleanup: use correct format strings with String.format() 95/53495/3
Stephen Kitt [Fri, 17 Mar 2017 17:15:59 +0000 (18:15 +0100)]
Cleanup: use correct format strings with String.format()

String.format() expects C-style format strings, not SLF4J-style.

Change-Id: Ie10a9983a5bff0c8bd46ae0e55c8c872030e5992
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoCleanup: use equals() to compare object instances 94/53494/2
Stephen Kitt [Fri, 17 Mar 2017 17:13:41 +0000 (18:13 +0100)]
Cleanup: use equals() to compare object instances

... instead of ==.

Change-Id: I0207e611c237f8dff749fc58cefd324cae174f4f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoCleanup: avoid immediate Optional.get() 96/53496/2
Stephen Kitt [Fri, 17 Mar 2017 17:17:42 +0000 (18:17 +0100)]
Cleanup: avoid immediate Optional.get()

This reworks allocateId() to store the id directly, and wrap it in an
Optional when needed, instead of wrapping it and unwrapping it
immediately. The performance gain isn't significant, but this helps
static analysers which check for get()-without-isPresent().

Change-Id: I5155660e6240a8c9d01de0bce78528b80d755e10
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoMerge "NxMatchInfo redesign"
Faseela K [Fri, 17 Mar 2017 17:41:38 +0000 (17:41 +0000)]
Merge "NxMatchInfo redesign"

7 years agoMerge "Harden BFD configuration parameters"
Faseela K [Fri, 17 Mar 2017 17:24:51 +0000 (17:24 +0000)]
Merge "Harden BFD configuration parameters"

7 years agoUn-uglify AbstractInstructionInfoImpl 67/53467/4
Stephen Kitt [Fri, 17 Mar 2017 09:19:03 +0000 (10:19 +0100)]
Un-uglify AbstractInstructionInfoImpl

Abstract classes can override concrete methods with abstract
declarations to force their own sub-classes to re-implement them,
there's no need to use ...2() variants.

Make the equals/hashCode implementations consistent with the rest of
the InstructionInfo implementations.

Change-Id: I948dd27bc57934ad34493244ddb3a26cd30d1393
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoTestIMdsalApiManager with naturally sorted flows 99/53399/5
Michael Vorburger [Thu, 16 Mar 2017 12:33:47 +0000 (13:33 +0100)]
TestIMdsalApiManager with naturally sorted flows

This leads to much clearer failure messages in assertFlowsInAnyOrder()

Change-Id: Ic7c07d7eb29a8937b88d3b094c2fcdcdad755ee4
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Updated TestIMdsalApiManager.java to support installFlow() with CheckedFuture...
Michael Vorburger [Fri, 17 Mar 2017 10:17:26 +0000 (10:17 +0000)]
Merge "Updated TestIMdsalApiManager.java to support installFlow() with CheckedFuture return value"

7 years agoMerge "Fix status-and-diag after BP migration"
Faseela K [Fri, 17 Mar 2017 09:26:27 +0000 (09:26 +0000)]
Merge "Fix status-and-diag after BP migration"

7 years agoTestIMdsalApiManager methods must all be synchronized 92/53392/2
Michael Vorburger [Thu, 16 Mar 2017 10:47:02 +0000 (11:47 +0100)]
TestIMdsalApiManager methods must all be synchronized

Change-Id: Ic01effdf66a27dde6ed773267372000924119961
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Bug 7864: Specified Id key does not exist in id pool vpnservices"
Faseela K [Fri, 17 Mar 2017 05:36:11 +0000 (05:36 +0000)]
Merge "Bug 7864: Specified Id key does not exist in id pool vpnservices"

7 years agoMerge "Cleanup and correct two small equals bugs"
Faseela K [Fri, 17 Mar 2017 01:55:04 +0000 (01:55 +0000)]
Merge "Cleanup and correct two small equals bugs"

7 years agoHarden BFD configuration parameters 20/53120/4
Faseela K [Fri, 10 Mar 2017 07:57:12 +0000 (13:27 +0530)]
Harden BFD configuration parameters

When tunnels are configured with BFD enabled,
enabling forwarding_if_rx=true, so that tunnel monitoring can be
optimized. OVS uses existing traffic for tunnel monitoring, instead
of BFD, when tunnel carries traffic, if this config is enabled.
This way datapath can be optimized

Change-Id: Ia0205eb0ce3fc9c51726c56b684956b2e18dc312
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "Yang model changes for multiple VxLAN tunnel support"
Sam Hague [Thu, 16 Mar 2017 17:11:25 +0000 (17:11 +0000)]
Merge "Yang model changes for multiple VxLAN tunnel support"

7 years agoMerge "Fix broken hashCode & equals in FlowEntity related classes"
David Suarez [Thu, 16 Mar 2017 16:19:55 +0000 (16:19 +0000)]
Merge "Fix broken hashCode & equals in FlowEntity related classes"

7 years agoAsyncEventsWaiter support for DataStoreJobCoordinator 52/53352/3
Shashidhar Raja [Wed, 15 Mar 2017 13:54:26 +0000 (19:24 +0530)]
AsyncEventsWaiter support for DataStoreJobCoordinator

Change-Id: I6397b805685cb423b3fefd466c489051de9e62cb
Signed-off-by: Shashidhar Raja <shashidharr@altencalsoftlabs.com>
7 years agoMerge "To move Tep's from not hosted transport zone to transport zone."
Faseela K [Thu, 16 Mar 2017 14:49:16 +0000 (14:49 +0000)]
Merge "To move Tep's from not hosted transport zone to transport zone."

7 years agoMerge "ITM performance improvements in a scale setup"
Faseela K [Thu, 16 Mar 2017 14:42:48 +0000 (14:42 +0000)]
Merge "ITM performance improvements in a scale setup"

7 years agoYang model changes for multiple VxLAN tunnel support 70/51770/7
Tali [Sun, 12 Feb 2017 15:54:10 +0000 (17:54 +0200)]
Yang model changes for multiple VxLAN tunnel support

NB: This code must be submitted together with netvirt patch
https://git.opendaylight.org/gerrit/52506

Change-Id: I5d2d36013ee74488189bd9270b6f0b0a9c9a2e14
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoFix broken hashCode & equals in FlowEntity related classes 94/53394/3
Michael Vorburger [Thu, 16 Mar 2017 11:13:11 +0000 (12:13 +0100)]
Fix broken hashCode & equals in FlowEntity related classes

This in turn then fixes TestIMdsalApiManager assertFlowsInAnyOrder bug.

Change includes new TestIMdsalApiManagerTest non-regression test.

Also includes missing toString() - not directly related, but useful.

Change-Id: I92ec5948a91ecd41eaa75777d44545fc7adc142a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 7864: Specified Id key does not exist in id pool vpnservices 16/53116/6
eswanit [Fri, 10 Mar 2017 04:04:04 +0000 (09:34 +0530)]
Bug 7864: Specified Id key does not exist in id pool vpnservices

Id entry was not getting updated after allocation. This is fixed by
increasing latch wait time.

If the releaseId is called twice, then IdManagerException was thrown
since Id was not present. This is fixed by ignoring throwing an exception
if Id doesn't exist when releaseId is called the second time.

Change-Id: I8d8da8963f4509c9771795630662596ad2c528f9
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
7 years agoMerge "Clean-up of unwanted ERROR logs"
Faseela K [Thu, 16 Mar 2017 10:40:10 +0000 (10:40 +0000)]
Merge "Clean-up of unwanted ERROR logs"

7 years agoMerge "Remove deprecated yang models and rpcs"
Faseela K [Thu, 16 Mar 2017 09:49:36 +0000 (09:49 +0000)]
Merge "Remove deprecated yang models and rpcs"

7 years agoMerge "Adding API to support bucket addition/deletion"
Faseela K [Thu, 16 Mar 2017 09:11:18 +0000 (09:11 +0000)]
Merge "Adding API to support bucket addition/deletion"

7 years agoITM performance improvements in a scale setup 65/52065/6
Hema Gopalakrishnan [Mon, 20 Feb 2017 07:37:55 +0000 (13:07 +0530)]
ITM performance improvements in a scale setup

Introducing DJC for InterfaceStateListener
Introducing DJC for ItmTunnelEventListener
Changed the ItmTunnelEventListener to listen on StateTunnelList
Moved the DS read in ItmEventListener to read from cache
Introduced Batching for few ITM operations
Addressed review comments
Fixed UT failure

Change-Id: I5d60d8c2250a699436a0abd4770fff12465ac2ac
Signed-off-by: Hema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
7 years agoInstructionInfo implementations made valid beans (XtendBeanGenerator) 20/53320/2
Michael Vorburger [Wed, 15 Mar 2017 09:38:32 +0000 (10:38 +0100)]
InstructionInfo implementations made valid beans (XtendBeanGenerator)

This is required to unblock the (now) failing *AclServiceImplTest/s in
c/53002.  The IllegalStateException seen there were due to the
InstructionInfo implementations not having been valid beans; this caused
XtendBeanGenerator to be unable to get their fields values.

Change-Id: I0549a7faa306afdf8f95908efa3eb561185f81a4
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Spec for Counter Framework bundle"
Faseela K [Wed, 15 Mar 2017 15:38:23 +0000 (15:38 +0000)]
Merge "Spec for Counter Framework bundle"

7 years agoCleanup and correct two small equals bugs 36/53336/1
Alon Kochba [Tue, 14 Mar 2017 14:10:02 +0000 (16:10 +0200)]
Cleanup and correct two small equals bugs

Change-Id: I06f9f943294de081390bbcb4ad3ea7cf2b8ae3ea
Signed-off-by: Alon Kochba <alonko@hpe.com>
7 years agoRemove deprecated yang models and rpcs 29/53329/3
Faseela K [Wed, 15 Mar 2017 10:57:26 +0000 (16:27 +0530)]
Remove deprecated yang models and rpcs

interface-manager has some yang models which have been
deprecated from Beryllium time-frame, but still not removed
from the yangs.

Change-Id: I6fc72c5fdba62bcdccf5b9c5609e9c2516e9b79d
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoFix status-and-diag after BP migration 84/52984/2
Faseela K [Wed, 8 Mar 2017 05:18:43 +0000 (10:48 +0530)]
Fix status-and-diag after BP migration

The code for registering service-status through MBean was broken after
BP migration of interface-manager and ITM, since the code got removed.

Change-Id: Ie268473e41fcdfa6fd565ae392738c63f82f0f6a
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoClean-up of unwanted ERROR logs 94/53294/2
Faseela K [Tue, 14 Mar 2017 18:41:25 +0000 (00:11 +0530)]
Clean-up of unwanted ERROR logs

Some of the ERROR logs are coming in the standard call flow, and is
expected to fail, hence making them debugs

Change-Id: I34582bd41a733309eeeb6c442c6671aec77d7151
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoTo move Tep's from not hosted transport zone to transport zone. 97/45797/17
Nishchya Gupta [Mon, 19 Sep 2016 09:22:51 +0000 (14:52 +0530)]
To move Tep's from not hosted transport zone to transport zone.

-If teps are present under some transport zone in Not hosted transport zone and similar transport
zone is created by NBI, then move the tep from not hosted list to transport
zone list

Testcases:-
1.Add some teps to not hosted transport zone with some transport
zone(which is not yet present in Transport zone)
2.Create the same name transport zone from NBI.
3.Validate that teps should move from not hosted list to Transport zone
list.

Change-Id: I7d17d1c1608b025efaa36ede007825fa657073d5
Signed-off-by: Nishchya Gupta <nishchyag@altencalsoftlabs.com>
7 years agoFix exception & null handling in AbstractAlivenessProtocolHandler 31/51931/5
Michael Vorburger [Wed, 15 Feb 2017 22:47:30 +0000 (23:47 +0100)]
Fix exception & null handling in AbstractAlivenessProtocolHandler

Change-Id: Iea86daecda9a38d855c76a425d8dbc3675076c68
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAdding API to support bucket addition/deletion 18/52918/6
Kency Kurian [Tue, 7 Mar 2017 07:33:38 +0000 (13:03 +0530)]
Adding API to support bucket addition/deletion

Introduced new API in mdsal using which we can add or remove a backet from
the group.
With this application need not construct the entire group if it knows the
bucketId.
Have tested and made sure that the groups are getting updated properly
when this API is used.

Change-Id: I5b07da503bb33d39adf7bc4d7cdc53122ce36f03
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoMerge "Modify ACL table numbers for remote acl indirection"
Vishal Thapar [Mon, 13 Mar 2017 12:38:49 +0000 (12:38 +0000)]
Merge "Modify ACL table numbers for remote acl indirection"

7 years agoNxMatchInfo redesign 79/52179/9
Stephen Kitt [Wed, 22 Feb 2017 16:48:55 +0000 (17:48 +0100)]
NxMatchInfo redesign

Change-Id: Iae27c287dae8d9fe400e07d1429cd20bc94a14c6
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoRemove unnecessary casts 96/53196/1
David [Sun, 12 Mar 2017 18:23:17 +0000 (19:23 +0100)]
Remove unnecessary casts

Remove unnecessary casts in the call to newReleaseId.

Change-Id: If611f52d403c26d4a145edccced3b6d1aff89ded
Signed-off-by: David <david.suarez.fuentes@ericsson.com>
7 years agoMerge "Handling RACE conditions in bind/unbind service"
Faseela K [Sat, 11 Mar 2017 09:45:19 +0000 (09:45 +0000)]
Merge "Handling RACE conditions in bind/unbind service"

7 years agoUpdated TestIMdsalApiManager.java to support installFlow() with 43/53143/1
Shashidhar Raja [Fri, 10 Mar 2017 13:37:55 +0000 (19:07 +0530)]
Updated TestIMdsalApiManager.java to support installFlow() with
CheckedFuture return value

Change-Id: I8c15af6607f83a08354520872e4a5ff0ea16d2bf
Signed-off-by: Shashidhar Raja <shashidharr@altencalsoftlabs.com>
7 years agoImprove exception message in NWUtil.isIpv4Address(String) 41/52441/4
Michael Vorburger [Wed, 1 Mar 2017 02:11:55 +0000 (03:11 +0100)]
Improve exception message in NWUtil.isIpv4Address(String)

Change-Id: I590ee8c2e23685d7955ad31275d7ff04fb1aa2d8
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoHandling RACE conditions in bind/unbind service 25/52925/7
Faseela K [Tue, 7 Mar 2017 08:24:29 +0000 (13:54 +0530)]
Handling RACE conditions in bind/unbind service

There are race conditions seen while binding/unbinding services,
due to the configlistener and statelistener being executed parallelly.
Avoiding this by adding a new service_binding_entity, and processing
service binding only on the entity owner.

Removing batching of interface-child-info as it is causing issues in
clustered tests

Change-Id: I35ed95fe99878fcbde757cd61880400832b30220
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoAdding dest IP/MAC in ArpResponseReceived 87/53087/3
Tomer Pearl [Thu, 9 Mar 2017 15:07:51 +0000 (17:07 +0200)]
Adding dest IP/MAC in ArpResponseReceived

Destination IP and MAC are missing today in ArpResponseNotification.
This is now needed in NetVirt for discovery of PNFs

Change-Id: I616ef13a69177f95ba9052f722106d61e13489af
Signed-off-by: Tomer Pearl <tomer.pearl@hpe.com>
7 years agoMerge "Spec to support load balancing and high availability of multiple VxLAN tunnels"
Vivek Srivastava [Thu, 9 Mar 2017 15:59:39 +0000 (15:59 +0000)]
Merge "Spec to support load balancing and high availability of multiple VxLAN tunnels"

7 years agoModify ACL table numbers for remote acl indirection 13/52213/11
Alon Kochba [Thu, 23 Feb 2017 14:02:32 +0000 (16:02 +0200)]
Modify ACL table numbers for remote acl indirection

Change table numbers of ingress ACL, add another table
to each ACL service and add a metadata match for the
ACL service, in preparation for remote_acl_indirection
changes.

This patch must be merged combined with
https://git.opendaylight.org/gerrit/#/c/52215/
due to changes in ACL tables naming.

Change-Id: I597f705c68f898a2efa03b85182ab28618ffb0f7
Signed-off-by: Alon Kochba <alonko@hpe.com>
7 years agoMerge "Improve scale of AsyncXListenerBase"
Vishal Thapar [Thu, 9 Mar 2017 12:21:03 +0000 (12:21 +0000)]
Merge "Improve scale of AsyncXListenerBase"

7 years agoMerge "Fix (some) unlogged Thread death uncaught exceptions, now logged"
Michael Vorburger [Wed, 8 Mar 2017 01:13:46 +0000 (01:13 +0000)]
Merge "Fix (some) unlogged Thread death uncaught exceptions, now logged"