genius.git
6 years agoRemove obsolete Maven Site configuration 14/70514/1
Thanh Ha [Sat, 7 Apr 2018 01:57:04 +0000 (21:57 -0400)]
Remove obsolete Maven Site configuration

Change-Id: Ia98ab43c4687b63f59c2fe39f247c3e58f71f47d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
6 years agoAlivenessMonitorUtils: wrap top-level in transactions 64/69764/5
Stephen Kitt [Wed, 21 Mar 2018 14:51:24 +0000 (15:51 +0100)]
AlivenessMonitorUtils: wrap top-level in transactions

This uses transactions throughout based on top-level operations,
propagating the transaction through the call chain to ensure
consistent views of the MD-SAL.

Change-Id: Iae31775989102b1277a4e8a11a7f0633df21ae08
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemove MDSALDataStoreUtils 51/69551/7
Stephen Kitt [Fri, 16 Mar 2018 10:00:40 +0000 (11:00 +0100)]
Remove MDSALDataStoreUtils

Since there are very few users left, remove the class entirely
(replacing it with SingleTransactionDataBroker).

This needs Ia012cc825a9eb7768de91c1882f76127d44c3595 to be merged
first.

Change-Id: I3c89e6549c7f2355583d6192d9134e9e589fbd39
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoNETVIRT-430 Ping responder on tenant network and FIP-FIP traffic between 81/69081/6
Aswin Suryanarayanan [Sat, 3 Mar 2018 05:06:14 +0000 (10:36 +0530)]
NETVIRT-430 Ping responder on tenant network and FIP-FIP traffic between
vm in same n/w in same compute is not working in stateful SG mode.

Added Ct Clear action

Depends-on: Change-Id: I163ed99d5af8d3643749ac2a278f5c8170d7ae29
Change-Id: If86203e73a5ec516ff487f3f5c33fbd7dbfd12e1
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
6 years agoadd requireNonNull to SingleTransactionDataBroker constructor 18/69818/6
Michael Vorburger [Thu, 22 Mar 2018 13:54:07 +0000 (14:54 +0100)]
add requireNonNull to SingleTransactionDataBroker constructor

thought of this while seeing this which is actually broken:

  @Inject DataBroker dataBroker;
  S.T.D.B. db = new SingleTransactionDataBroker(dataBroker);

which cannot work with Dependency Injection (Guice or otherwise), and
it's better to have the null check here in the constructor already, not
fail with NPE later when one of the (non-static) methods of it is used.

see Change-Id: I63d0a93da481003b701c5a1843cece7d50cf51d1

Change-Id: I319d92c2bb50446ff59d156c4f261a51afe01863
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agofix broken build; recent *Transaction change which removed commit() 76/70376/1
Michael Vorburger [Thu, 5 Apr 2018 14:46:36 +0000 (16:46 +0200)]
fix broken build; recent *Transaction change which removed commit()

The {@link ReadWriteTransaction#commit()} in JavaDoc lead to an "error:
reference not found" in maven-javadoc-plugin:3.0.0:jar (attach-javadocs)
@ mdsalutil-api during the build.

Change-Id: Ic489315ab050136f9de06a0331574aebb26e69c2
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoRemove AlivenessMonitor::read 52/69552/2
Stephen Kitt [Fri, 16 Mar 2018 10:24:55 +0000 (11:24 +0100)]
Remove AlivenessMonitor::read

This can be entirely replaced by SingleTransactionDataBroker.

Change-Id: I8c302537f7abefafc1cf57c5e5c884a6b879c18f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRemoved unused ACL constants 08/69808/3
Somashekar Byrappa [Thu, 22 Mar 2018 12:00:55 +0000 (17:30 +0530)]
Removed unused ACL constants

Ensured there are no references in netvirt for these constants.

Change-Id: I4372e2cd7733b469d0dee6f0ba0afc551eff0af5
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
6 years agoAdd transaction variant of getChildInterfaces 98/69798/5
Stephen Kitt [Thu, 22 Mar 2018 09:59:05 +0000 (10:59 +0100)]
Add transaction variant of getChildInterfaces

In preparation for removing the current implementation of
IInterfaceManager::getChildInterfaces, this patch adds a variant
accepting a transaction (along with a few other related methods).

Change-Id: Idd93023de5b549c8ee7bed23fc3c485752d87548
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoincrease max time out in AbstractTestableListenerTest from 50ms to 500ms 99/70299/2
Michael Vorburger [Tue, 3 Apr 2018 15:20:02 +0000 (17:20 +0200)]
increase max time out in AbstractTestableListenerTest from 50ms to 500ms

Change-Id: Ic45ad3bf911f81e030f7e425510a37fb2a54df0d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoMove tepsNotHosted from Config DS to Oper DS 00/70100/3
Tarun Thakur [Mon, 26 Mar 2018 09:51:49 +0000 (15:21 +0530)]
Move tepsNotHosted from Config DS to Oper DS

As tepsNotHosted list was part of transport-zones container in itm.yang
and stored into config DS earlier. Since, it gets populated from
southbound only and will be available again on switch/ODL restart,
even if the switch goes away, we do not want to track these information
unnecessarily in the config DS. So, it is better to keep this data into
OperDS instead of config DS.

Change-Id: I731dfdb64ea3dc589567f4abeac3457ca0cbe395
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
6 years agoRemove deprecated AsyncWriteTransaction#commit method 24/69924/2
Tom Pantelis [Thu, 22 Mar 2018 22:22:23 +0000 (18:22 -0400)]
Remove deprecated AsyncWriteTransaction#commit method

This method has been deprecated for quite some time and now has a
default implementation so can be safely removed from sub-classes.

Change-Id: I584c2e51ee1241b0198bcd310c2d2ca3d1b0f55a
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agodeprecate IfmUtils' read() method 17/69817/2
Michael Vorburger [Thu, 22 Mar 2018 13:48:05 +0000 (14:48 +0100)]
deprecate IfmUtils' read() method

Change-Id: If1f5b547f9861f28066f3c490c2164b82c310536
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoUse new Map methods 93/69393/4
Stephen Kitt [Mon, 12 Mar 2018 16:40:56 +0000 (17:40 +0100)]
Use new Map methods

Map::computeIfAbsent models the common "initialise value collection
when missing and add to it" idiom.

Change-Id: I6e21374a8dc3fba0b4942c40d0ab1031d65b97f8
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoUse switch instead of chained ifs 92/69392/4
Stephen Kitt [Mon, 12 Mar 2018 16:40:39 +0000 (17:40 +0100)]
Use switch instead of chained ifs

Change-Id: I9d99d610abc7984e146b459a7fa3dcdd64425aa1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoAdd a model conversion method for InterfaceOpState 90/69390/4
Stephen Kitt [Mon, 12 Mar 2018 16:38:20 +0000 (17:38 +0100)]
Add a model conversion method for InterfaceOpState

Change-Id: I984cb90ddd81e78bb346ece701de2ccf2de4edce
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agodeprecate ItmUtils' async*() methods 74/69674/3
Michael Vorburger [Tue, 20 Mar 2018 13:33:21 +0000 (14:33 +0100)]
deprecate ItmUtils' async*() methods

Change-Id: I82e08e6a2a31a2dda014e69eebea1373ddc3e1a6
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFlow-based listeners: use top-level transactions 65/69765/4
Stephen Kitt [Wed, 21 Mar 2018 15:02:56 +0000 (16:02 +0100)]
Flow-based listeners: use top-level transactions

This changes the listener to use a single transaction for its
top-level operations.

Change-Id: I739ba6ce11b881331945d77ea2a9d7c3b2120206
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoUtils for itm performance enhancements 09/69109/20
Edw7n [Tue, 6 Mar 2018 06:11:17 +0000 (11:41 +0530)]
Utils for itm performance enhancements

Change-Id: Id0400bd56473550ebc49d2968024632fcdf5b265
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
6 years agoRe-enable interface-manager l2vlan component tests 28/69528/11
Faseela K [Thu, 15 Mar 2018 12:05:29 +0000 (17:35 +0530)]
Re-enable interface-manager l2vlan component tests

Change-Id: I63d0a93da481003b701c5a1843cece7d50cf51d1
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoMake createVlanInterface APIs return ListenableFuture 41/69741/4
Faseela K [Wed, 21 Mar 2018 08:47:45 +0000 (14:17 +0530)]
Make createVlanInterface APIs return ListenableFuture

Note : This will require a remerge in netvirt repo.

Change-Id: I91511a3b6e7aa6f4709c9ebb215c5ce5f4d49a55
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoyang changes for scaling, 70/68170/5
Edw7n [Mon, 12 Feb 2018 17:50:07 +0000 (23:20 +0530)]
yang changes for scaling,
to support corresponding netvirt changes

Change-Id: If29c11f61658a44f8b5614baddfe660782fb7c69
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
6 years agodeprecate ItmUtils' read() and write() methods 73/69673/5
Michael Vorburger [Tue, 20 Mar 2018 13:26:06 +0000 (14:26 +0100)]
deprecate ItmUtils' read() and write() methods

Change-Id: I848145f71b3a3002898b34d26b9699514f14b684
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoGENIUS-103: use a callback to start LLDP monitoring 70/66570/5
Stephen Kitt [Mon, 18 Dec 2017 17:19:50 +0000 (18:19 +0100)]
GENIUS-103: use a callback to start LLDP monitoring

This ensures that the transaction is *processed* before we start LLDP
monitoring.

Change-Id: I61abc7e1d03321fd94c86fbe311aed2a2e3951ca
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoFix ITM UT failures 42/69742/4
Vishal Thapar [Wed, 21 Mar 2018 09:08:50 +0000 (14:38 +0530)]
Fix ITM UT failures

Yangtools has changed how IPAddresses are converted
to string. ITM code is using different methods to
convert String IPs to IpAddress. Fix is to use
IpAddressBuilder, which is v4/v6 anogstic, at all
places.

Change-Id: I49649152a2f97b8b1cbdc19a3bb35fd0791ff2a8
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
6 years agoUse Map::forEach instead of streaming maps 88/69388/3
Stephen Kitt [Mon, 12 Mar 2018 16:14:57 +0000 (17:14 +0100)]
Use Map::forEach instead of streaming maps

Change-Id: I3419d9767571ecc2ed078c0dee010fb512523938
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoadd real Lifecycle management to DataObjectCache 98/69198/6
Michael Vorburger [Wed, 7 Mar 2018 10:16:38 +0000 (11:16 +0100)]
add real Lifecycle management to DataObjectCache

by throwing an IllegalStateException if you get() or getAllPresent()
after close(), to prevent it from being used after it's closed, as was
attempted in Change-Id: I8d5f15757a805798f16b98b79b3ad03899b1130d (which
would lead to quite weird behaviour)

Change-Id: Id3a21afe5f297bebe15fc94bcd1fb24178bc334a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agominor JavaDoc fix to ManagedNewTransactionRunner 75/69675/1
Michael Vorburger [Tue, 20 Mar 2018 13:34:46 +0000 (14:34 +0100)]
minor JavaDoc fix to ManagedNewTransactionRunner

It should not @link to a (now) only package local class.

Change-Id: I444cb537be04401740793724d41e7e1b1736c441
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoService-Recovery: support for elan-interface entity type 48/69548/2
eswanit [Fri, 16 Mar 2018 09:05:10 +0000 (14:35 +0530)]
Service-Recovery: support for elan-interface entity type
instead of elan-instance entity type

Change-Id: I723bd2ac707bf8b34d869b9b7abfdea4b616c47a
Signed-off-by: eswanit <swati.udhavrao.niture@ericsson.com>
6 years agoRemove redundant type information 81/69381/4
Stephen Kitt [Mon, 12 Mar 2018 09:35:07 +0000 (10:35 +0100)]
Remove redundant type information

Change-Id: Ic03751095df7ff7a01dc112d7f397df94fc09096
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoClean up lambdas 91/69391/4
Stephen Kitt [Mon, 12 Mar 2018 16:39:57 +0000 (17:39 +0100)]
Clean up lambdas

Use method references and lambda expressions where appropriate.

Change-Id: Id329f3a6abc9d23678e6b5e4ce554778fc590c00
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoService Recovery Manager for ITM 09/68409/19
Nidhi Adhvaryu [Fri, 9 Mar 2018 10:28:27 +0000 (15:58 +0530)]
Service Recovery Manager for ITM

Change-Id: I5dab695d7c397606728c46f19c4f2e2e38dfef42
Signed-off-by: Nidhi Adhvaryu <nidhi.adhvaryu@ericsson.com>
6 years agoCaches for newly introduced immutables in ITM 03/68803/21
Edw7n [Wed, 7 Mar 2018 07:15:17 +0000 (12:45 +0530)]
Caches for newly introduced immutables in ITM

Change-Id: I8d5f15757a805798f16b98b79b3ad03899b1130d
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoenforce correct logging via findbugs-slf4j (GENIUS-118) 61/69361/6
malani [Sun, 11 Mar 2018 22:22:03 +0000 (03:52 +0530)]
enforce correct logging via findbugs-slf4j (GENIUS-118)

Modified genius/commons/binding-parent/pom.xml
to enable findbugs-slf4j enforcement in binding-parent.

This ensures we won’t have any regressions in log handling in modules
based on binding-parent.

Change-Id: I7030f32c3c5f16afb6ed7cd5e8c8ff96ca4865a2
Signed-off-by: Saurav Malani <sauravmalani1@gmail.com>
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix ItmAlarm Exception in logs 40/69540/2
Faseela K [Thu, 15 Mar 2018 19:21:48 +0000 (00:51 +0530)]
Fix ItmAlarm Exception in logs

This is a regression caused by :

https://git.opendaylight.org/gerrit/#/c/67658/

Change-Id: I16b58dc3a08bb012dd4d9366a77a9e4bf9ef064b
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoFix logging issues in ITM 87/69487/4
sathwik boggarapu [Wed, 14 Mar 2018 09:48:25 +0000 (15:18 +0530)]
Fix logging issues in ITM

Change-Id: Ie2d697ce8026f3b75022ac7150457dde9f486582
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
6 years agoFix logging issues in InterfaceManager 83/69483/5
sathwik boggarapu [Wed, 14 Mar 2018 07:17:00 +0000 (12:47 +0530)]
Fix logging issues in InterfaceManager

Change-Id: Ib77840b84f6190be7537c4a6f6f32d317cf89414
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
6 years agoMigrate ItmTunnelEventListener to use new listeners fw 58/67658/8
David Suarez [Mon, 29 Jan 2018 13:00:52 +0000 (14:00 +0100)]
Migrate ItmTunnelEventListener to use new listeners fw

Some additional changes:

- Make some variables final
- Remove dead code
- Make some methods private

Change-Id: I2679bb74ef1aafa775ab23cb1577a6c770f617fe
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoGENIUS-102: interface manager: use transaction manager 62/65662/8
Stephen Kitt [Tue, 14 Nov 2017 11:15:51 +0000 (12:15 +0100)]
GENIUS-102: interface manager: use transaction manager

Use the transaction manager to manage all write transactions.

Change-Id: If224c5193e4e9f4c12ebcaa1c31864646aafd026
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoUse List::sort instead of Collections::sort 89/69389/2
Stephen Kitt [Mon, 12 Mar 2018 16:33:26 +0000 (17:33 +0100)]
Use List::sort instead of Collections::sort

Change-Id: Ia9949460dd3e09b00cabd887a70386e42370734c
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoExtend DataObjectCache to allow for custom key 65/69265/7
Tom Pantelis [Thu, 8 Mar 2018 12:56:12 +0000 (07:56 -0500)]
Extend DataObjectCache to allow for custom key

Users want to be able to provide a custom key derived from the
DataObject instead of keying by InstanceIdentifier.

Change-Id: I5f55068ff56390998270c2813d2682763479a404
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix abstract listeners 09/69509/2
David Suarez [Wed, 14 Mar 2018 19:51:11 +0000 (20:51 +0100)]
Fix abstract listeners

The deprecated method are now properly implemented in the base class

Change-Id: Ieab4e8e4537400a7a1d27ca85a1bee4a812c79b8
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoFix logging issues in alivenessmonitor 99/69499/2
sathwik boggarapu [Wed, 14 Mar 2018 11:56:45 +0000 (17:26 +0530)]
Fix logging issues in alivenessmonitor

Change-Id: I730efda2afc6ffbeed547737e47c980ae418ccd5
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
6 years agoMake recoverableListenerMap maintain a queue of recoverableListeners. 05/69505/2
Faseela K [Wed, 14 Mar 2018 16:42:35 +0000 (22:12 +0530)]
Make recoverableListenerMap maintain a queue of recoverableListeners.

This was a review comment from Michael which was not addressed on the
original patch

Change-Id: I14b7d9f4a92a4439cae40b4c4b23b7972f5468b4
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoFix logging issues in SRM 00/69500/2
sathwik boggarapu [Wed, 14 Mar 2018 12:41:04 +0000 (18:11 +0530)]
Fix logging issues in SRM

Change-Id: I89a5ff35903202d549a91a510f323856d78b1542
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
6 years agoFix logging issues in fcapsapplication 98/69498/2
sathwik boggarapu [Wed, 14 Mar 2018 11:09:05 +0000 (16:39 +0530)]
Fix logging issues in fcapsapplication

Change-Id: I4aa3358a1c4774f6eea83b7c8b7d2805d5565f5b
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
6 years agoFixed issue when null is passed in CLI cmds 63/68663/5
Hema Gopalakrishnan [Sat, 24 Feb 2018 09:45:44 +0000 (15:15 +0530)]
Fixed issue when null is passed in CLI cmds

Due to the karaf migration, the tep CLIs were not working as expected when
null is passed as arguments in CLI cmds.

Change-Id: I4b493c1615846651717ac345b7eaf51551b80abe
Signed-off-by: Hema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
6 years agofix logging issues in mdsalutil 52/69452/4
Faseela K [Wed, 14 Mar 2018 06:54:41 +0000 (12:24 +0530)]
fix logging issues in mdsalutil

Change-Id: If22e310b05d927b61d3829c7a8e7188727348afd
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoAdd InstanceIdentifier to method add/update/remove in Genius' listeners 31/69231/5
David Suarez [Thu, 8 Mar 2018 23:33:26 +0000 (00:33 +0100)]
Add InstanceIdentifier to method add/update/remove in Genius' listeners

Some use cases require the Genius' listeners to provide the
InstanceIdentifier as a parameter in add, update and remove methods.

The change is made on the DataTreeChangeListenerActions interface by
making the new methods the default ones. The current methods are
deprecated and they will be removed once all the current implementations
are converted.

The AbstractDataTreeChangeListener will implement the old methods until
the migration to the new ones finishes.

Change-Id: I979e5f3e2480f441828f2ee87e917543df6504b0
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoRe-enable bindings of interfacemanager junits 19/69319/6
Faseela K [Tue, 13 Mar 2018 09:09:43 +0000 (14:39 +0530)]
Re-enable bindings of interfacemanager junits

Change-Id: I6618539c8349ad1fd3e83959377eb08ea8a597e6
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoRemove unnecessary boxing/unboxing 80/69380/3
Stephen Kitt [Mon, 12 Mar 2018 09:33:20 +0000 (10:33 +0100)]
Remove unnecessary boxing/unboxing

Change-Id: I06fee32b08066e3b1d95b7c2ca0220cef9800ab1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoRevert "GENIUS-116: Efficient Handling of DPN disconnect" 83/69283/2
Faseela K [Wed, 7 Mar 2018 10:51:37 +0000 (10:51 +0000)]
Revert "GENIUS-116: Efficient Handling of DPN disconnect"

This reverts commit 3cf5a4776c2b8dcd77049ecb3ba4e1b28bc1aa4c.

Change-Id: I7a377a9b4cd74fe9052843882e7b730a63cb0036
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agosimplify TestableJobCoordinatorEventsWaiter 23/69323/3
Michael Vorburger [Fri, 9 Mar 2018 20:43:07 +0000 (21:43 +0100)]
simplify TestableJobCoordinatorEventsWaiter

Change-Id: Ic9e5ab1e695e296d983b5ed3783e40c0373b6189
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoLockManager test failure 68/69368/2
Ankit [Mon, 12 Mar 2018 09:39:28 +0000 (15:09 +0530)]
LockManager test failure

Looks like underlying error message has changed. After changing the
expected error message accordingly, test is passing.

Change-Id: I46829aa23c353c3c7a7de9968d54462f8d0ba7ba
Signed-off-by: Ankit <ankit.j.jain@ericsson.com>
6 years agofix ItmManagerRpcServiceTest ExternalTunnelBuilder destinationDevice 75/69375/1
Michael Vorburger [Mon, 12 Mar 2018 12:10:07 +0000 (13:10 +0100)]
fix ItmManagerRpcServiceTest ExternalTunnelBuilder destinationDevice

but ... the fact that this destinationDevice is a "String typed" instead
of "strongly typed" (a real YANG model) seems really wrong, to me.

Change-Id: Ibfab110a7488c3dfd1a8cecd3cace773c55bc277
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoUpdating rst doc, how to run CSIT 94/68994/2
sathwik boggarapu [Fri, 2 Mar 2018 09:18:08 +0000 (14:48 +0530)]
Updating rst doc, how to run CSIT

Change-Id: I285bd34e687945801f1b1443d523a6c3b3908915
Signed-off-by: sathwik boggarapu <b.sathwik@ericsson.com>
6 years agoJobCoordinatorEventsWaiter to wait for specific job count completion 17/69017/4
Faseela K [Fri, 9 Mar 2018 14:49:52 +0000 (20:19 +0530)]
JobCoordinatorEventsWaiter to wait for specific job count completion

Change-Id: I88fb852a5bae667716044b61f4689f9fe258a151
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoImmutables for performance enhancements 24/68524/16
Edw7n [Fri, 2 Mar 2018 05:23:32 +0000 (10:53 +0530)]
Immutables for performance enhancements

Change-Id: I150d8edc58ad91724679dba15a1f269bd9e2e674
Depends-on: I250b75fea3ae29e8adb351693e7eeb0a596e18fe
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
6 years agoAdd InstanceIdDataObjectCache 64/69264/2
Tom Pantelis [Thu, 8 Mar 2018 12:42:36 +0000 (07:42 -0500)]
Add InstanceIdDataObjectCache

DataObjectCache will be extended to allow for custom key so
add implementation that keys by InstanceIdentifier.

Change-Id: I16450c794512afde8d1091dc88f43a43ef8639b5
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoBug: GENIUS-115 OVS Nodes Connect Quickly, Not All Get TransportZone TEPs 97/68797/4
Josh [Tue, 27 Feb 2018 05:49:56 +0000 (07:49 +0200)]
Bug: GENIUS-115 OVS Nodes Connect Quickly, Not All Get TransportZone TEPs

1) In ItemTepAddWorker do NOT use cached DPNTEPsInfos, read from DS instead
2) In ItmInternalTunnelAddWorker do not queue the new DPNTEPsInfos via
ITMBatchingUtils, instead write synchronously and unbatched in that thread

Change-Id: I91be9de8e7d098fbe94abc480605f460dfecef79
Signed-off-by: Josh <jhershbe@redhat.com>
6 years agoIssues with SRM service recovery 88/69188/3
Faseela K [Wed, 7 Mar 2018 06:39:12 +0000 (12:09 +0530)]
Issues with SRM service recovery

service recovery logic was doing a close of the already registred
listeners. However the close method of the AsyncListener base classes
were shutting down the dataTreeChangeHandlerExecutor as well, which
will cause issues when we again register the listeners.

Change-Id: I2e39c9ba0226c298fbd10f114ad33be39ae961a0
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoifm changes for itm performance enhancements 02/68802/5
Edw7n [Sat, 17 Feb 2018 20:27:39 +0000 (01:57 +0530)]
ifm changes for itm performance enhancements

Change-Id: I250b75fea3ae29e8adb351693e7eeb0a596e18fe
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
6 years agoadd JavaDoc to DataTreeEventCallbackRegistrar onAddOrUpdate 72/68772/3
Michael Vorburger [Mon, 26 Feb 2018 14:45:27 +0000 (15:45 +0100)]
add JavaDoc to DataTreeEventCallbackRegistrar onAddOrUpdate

in order to clarify null-ness expectation of the used BiFunction

also an appropriate @Nullable (has to be org.eclipse.jdt.annotation,
cannot be javax.annotation, because that is not a type annotation
suitable for annotating generics)

Change-Id: I73e0fc8a8313de1d51e99612d61631343f5a878c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoAdd HwvtepNodeHACache interface 89/66789/9
Tom Pantelis [Thu, 28 Dec 2017 16:15:28 +0000 (11:15 -0500)]
Add HwvtepNodeHACache interface

This is the first in a series of patches to eliminate the
static HwvtepHACache. Added an HwvtepNodeHACache interface
which HwvtepHACache temporarily implements until netvirt
is migrated to use HwvtepNodeHACache in the next patch.
The static HwvtepHACache instance is also temporarily
advertised as the HwvtepNodeHACache service.

Change-Id: I67154a0bfa21655d1158ba81b472e6501ac1ce76
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoMinor simplification in DataTreeEventCallbackRegistrarTest 71/68771/3
Michael Vorburger [Mon, 26 Feb 2018 14:36:38 +0000 (15:36 +0100)]
Minor simplification in DataTreeEventCallbackRegistrarTest

the point of the testAddOrUpdateAdd(), contrary to the
testAddOrUpdateUpdate(), is that the listener will only get call once
(for the add); this change makes that more obvious when reading the
test.  It still passes.

Change-Id: I9656b7f66f023689be56af1aa24877749b611061
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix ActionNxConntrack.NxNat problems with xtendbeans (with a test) 52/68952/2
Michael Vorburger [Thu, 1 Mar 2018 14:51:03 +0000 (15:51 +0100)]
Fix ActionNxConntrack.NxNat problems with xtendbeans (with a test)

Change-Id: I488c124c15e3cb8fc6c6952520893c6eabc1190a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix ActionNxConntrack.NxCtMark problem with xtendbeans (with a test) 47/68947/2
Michael Vorburger [Thu, 1 Mar 2018 14:25:00 +0000 (15:25 +0100)]
Fix ActionNxConntrack.NxCtMark problem with xtendbeans (with a test)

Change-Id: I0bb0d42226adbccd32775353da326a680bb4e238
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFlourine idmanager build failures 54/69054/1
Faseela K [Mon, 5 Mar 2018 05:26:06 +0000 (10:56 +0530)]
Flourine idmanager build failures

sal-common-testutil has been removed from controller,
as the relevant modules have moved to mdsal

Change-Id: Ib8ff40bed63b6a890507c93ea205f20a728527ca
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoRemove sal-common-testutil dependency 86/68986/3
Faseela K [Fri, 2 Mar 2018 04:03:24 +0000 (09:33 +0530)]
Remove sal-common-testutil dependency

This was previously used for EOS Tests, but since eos
has moved to mdsal repo, this is no longer needed.

Change-Id: Ibd8a7f70513ee428da35276edd7b17ec597f3455
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoService-Recovery: Support needed for ACL feature introduced in SRM 87/68987/2
Shashidhar Raja [Fri, 2 Mar 2018 06:28:17 +0000 (11:58 +0530)]
Service-Recovery: Support needed for ACL feature introduced in SRM
framework.

(a) srm-types.yang updated with 'netvirt-acl', 'netvirt-acl-interface' and
'netvirt-acl-instance' definitions to support ACL service and instance
recovery operations. 'netvirt-acl-interface' and
'netvirt-acl-instance' are the two instance recovery options supported.
(b) SrmRpcUtils.java and SrmCliUtils.java updated to add required ACL definitions
to the internal maps maintained to support recovery operations.

Change-Id: I4c91cd52e7595b92b494356dfa715dbdf15da3c5
Signed-off-by: Shashidhar Raja <shashidharr@altencalsoftlabs.com>
6 years agoGenius Specific Changes to support QoS with SRM 62/68862/2
Naveen Kumar Verma [Wed, 28 Feb 2018 09:15:39 +0000 (14:45 +0530)]
Genius Specific Changes to support QoS with SRM

Adding QOS option as recoverable service & Qos policy as recoverable
instance.

Change-Id: I0e123bec31f663d8b6673b37c5858fbcc85b8b46
Signed-off-by: Naveen Kumar Verma <naveen.kumar.verma@ericsson.com>
6 years agoEnable findbugs in commons binding-parent 19/68519/3
Tom Pantelis [Fri, 23 Feb 2018 03:08:16 +0000 (22:08 -0500)]
Enable findbugs in commons binding-parent

Change-Id: I6b5f9341e564487e4f29a817e3e1471afa461730
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix findbugs violations in fcapsapplication 16/68516/3
Tom Pantelis [Fri, 23 Feb 2018 02:18:49 +0000 (21:18 -0500)]
Fix findbugs violations in fcapsapplication

- Inconsistent synchronization
- Write to static field from instance method

Change-Id: I5b15553a4ced6d7ebdf7a57bdfc7590c3c221ba2
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix findbugs violations in resourcemanager-impl 11/68511/4
Tom Pantelis [Thu, 22 Feb 2018 22:50:28 +0000 (17:50 -0500)]
Fix findbugs violations in resourcemanager-impl

- Method ignores return value
- Incorrect lazy initialization of static field
- Dead store to local variable

Change-Id: I03b7a719b596af38f89db25ff0fc6547ec676bac
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoFix findbugs violations in itm-impl 75/68475/3
Tom Pantelis [Wed, 21 Feb 2018 17:11:11 +0000 (12:11 -0500)]
Fix findbugs violations in itm-impl

- Method ignores return value
- Dead store of class literal
- Null pointer dereference
- No relationship between generic parameter and method argument
- Invocation of toString on an array
- Reliance on default encoding
- Field should be package protected
- Inconsistent synchronization
- Inefficient use of keySet iterator instead of entrySet iterator
- Method checks to see if result of String.indexOf is positive
- Dead store to local variable
- Write to static field from instance method
- Load of known null value
- Class implements same interface as superclass
- Redundant nullcheck of value known to be non-null
- Exception is caught when Exception is not thrown
- Useless object created
- Useless control flow

Change-Id: Id0dc47011e6c2ec9f11d2876fd8fe77b63a687ec
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoSRM refactoring 40/68540/7
Faseela K [Fri, 23 Feb 2018 12:27:19 +0000 (17:57 +0530)]
SRM refactoring

Realized that some code that went in interface-manager for service
recovery can be reused across modules, and hence moving some of those
common utilities to srm.

Change-Id: I65dbb9b27bddbe11f7ca4a30a3a27838eef8cefc
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoGENIUS-116: Efficient Handling of DPN disconnect 02/66502/11
SujaT [Fri, 15 Dec 2017 11:19:04 +0000 (16:49 +0530)]
GENIUS-116: Efficient Handling of DPN disconnect

Dependent on OF plugin patch https://git.opendaylight.org/gerrit/#/c/63261/

The changes in openflowplugin includes, port removal event will come with proper
reason flag set which will enable interface-manager to distinguish between a port
removal and a "port removal due to node removal" from the info in
the incoming event itself.

Change-Id: I39c5cdc6f57052521cb0061ca97ab7518637a5fe
Signed-off-by: SujaT <suja.t@ericsson.com>
6 years agoFix findbugs violations in srm-shell 12/68512/2
Tom Pantelis [Thu, 22 Feb 2018 23:00:47 +0000 (18:00 -0500)]
Fix findbugs violations in srm-shell

- Format string should use %n rather than \n
- Consider using Locale parameterized version of invoked method

Change-Id: Id3be0c9b70c104ec0a2214e28b347add451c873a
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6 years agoDataTreeEventCallbackRegistrar: "add or update" param order 19/68419/5
Josh [Tue, 20 Feb 2018 07:55:21 +0000 (09:55 +0200)]
DataTreeEventCallbackRegistrar: "add or update" param order

Since functions receiving add or update events need to
handle updates they have two params. As such, in event
of an add the created object should be the second
param passed to the function.

Change-Id: If27121aa8af74038f775edca118bce4917dd2e51
Signed-off-by: Josh <jhershbe@redhat.com>
6 years agoadd new DataTreeEventCallbackRegistrarTest 59/67959/5
Michael Vorburger [Tue, 6 Feb 2018 13:28:51 +0000 (14:28 +0100)]
add new DataTreeEventCallbackRegistrarTest

this requires infrautils' I0d54b187fd58c6456708518a3886c3aedff3f86a

Change-Id: Iee7227d63c4ab995dae1642f6da3cd1c8f4bd91e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoBump versions by x.(y+1).z for next dev cycle 32/68732/1
Anil Belur [Mon, 26 Feb 2018 07:41:42 +0000 (17:41 +1000)]
Bump versions by x.(y+1).z for next dev cycle

Change-Id: I87a5d8d5d22dc66190d3af950bd6f802004fc3cf
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
6 years agoFix for GENIUS-112. 80/68480/6
Nobin Mathew [Wed, 21 Feb 2018 18:57:45 +0000 (00:27 +0530)]
Fix for GENIUS-112.

This is a race condition, proper fix should remove Batching manager from add callback.

Change-Id: Ia9de21864e82b2c8ded1ea121de615cafa6dab19
Signed-off-by: Nobin Mathew <nobin.mathew@ericsson.com>
6 years agoUpdate genius ITM Tunnel auto config spec 08/68508/2
Victor Pickard [Thu, 22 Feb 2018 20:15:30 +0000 (15:15 -0500)]
Update genius ITM Tunnel auto config spec

The TEP-IP is now obtained from other_config:local_ip,
so update the spec to reflect that change.

Change-Id: I47d04acb4897cd4c8c5e0a952a08a65dc7e36259
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agoRevert "ifm changes for performance enhancements" 69/68469/1
Stephen Kitt [Wed, 21 Feb 2018 15:02:14 +0000 (15:02 +0000)]
Revert "ifm changes for performance enhancements"

This reverts commit 51d5fab28b9fbd2c165bd0c803ad768441385d0f as discussed on the TSC mailing list: https://lists.opendaylight.org/pipermail/tsc/2018-February/008919.html

Change-Id: Icc95f983591f9c8c871dd14c1266642cba4eb9bb
Signed-off-by: Stephen Kitt <skitt@redhat.com>
6 years agoifm changes for performance enhancements 92/68392/6
Edw7n [Sat, 17 Feb 2018 20:27:39 +0000 (01:57 +0530)]
ifm changes for performance enhancements

Change-Id: Icdceb46e6453b6b1e503d14d89bd1b201f9a183b
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
6 years agoNETVIRT-1068: Upstreaming fixes 3 87/68287/6
HANAMANTAGOUD V Kandagal [Thu, 15 Feb 2018 09:30:09 +0000 (15:00 +0530)]
NETVIRT-1068: Upstreaming fixes 3

When ARP response is received for the learnt IPs like MIP, its not
processed due to wrong check of table-id. Hence this check is removed. One
more bug was SrcIp and DestIP had junk chars which led formation of wrong
MonitoringKey. Due to this , MIP IP Arp Response was not processed.

Change-Id: If25bbc6fdc264ac866b5cd89c247c487d9f6ca6b
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
6 years agoNETVIRT-1009 - Enable genius auto-tz 10/66110/5
Victor Pickard [Thu, 30 Nov 2017 19:42:43 +0000 (14:42 -0500)]
NETVIRT-1009 - Enable genius auto-tz

https://jira.opendaylight.org/browse/NETVIRT-1009

Enable genius auto tunnels. There will be a separate
patch to disable netvirt dynamic tunnels.

https://git.opendaylight.org/gerrit/#/c/66109/1

This will be the default starting in oxygen.
Carbon and nitrogen will continue to have netvirt
dynamic tunnels as the default.

Change-Id: I9b9bb5d47618b7988bcc61bcadf44a746b6a9452
Signed-off-by: Victor Pickard <vpickard@redhat.com>
6 years agoInterfaceManager Service Recovery 92/58792/25
Faseela K [Wed, 31 Jan 2018 07:47:51 +0000 (13:17 +0530)]
InterfaceManager Service Recovery

Adding recovery support for interface-manager.
Two types of recovery are supported:

1. Service Level Recovery - This triggers deregistration and
registration of all external facing listeners

2. Interface Instance Level Recovery - This triggeres a delete and
create of a particular interface configuration so that the state can
be fully reconstructed

Change-Id: I9b8ee67730d0ce7e07ef8f70e7d9e22b35b67c63
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoRemove FlowBasedServicesInterfaceStateListener 33/58233/17
Faseela K [Mon, 5 Jun 2017 10:37:19 +0000 (16:07 +0530)]
Remove FlowBasedServicesInterfaceStateListener

Now that all applications are properly calling unbind-service,
the interfacestatelistener which by itself tries to remove
dispatcher table entries can be removed for a cleaner implementation

Change-Id: Ic37f45d8c923e8a8f8800d331c3666f50bd7a9bd
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoMigrating IFM PM counters to infrautils counters 37/67237/18
Tarun Thakur [Wed, 17 Jan 2018 15:00:40 +0000 (20:30 +0530)]
Migrating IFM PM counters to infrautils counters

Existing IFM PM counters were using JMX MBeans,
now new counters are written for IFM PM counters using
infrautils metrics counter APIs which will be common library
to populate JMX MBeans for these counters by leveraging
Codahale framework.

Change-Id: I3a0f87ec3f60a207a56ec29eef5b28a22e3fd0c3
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
6 years agoItmRpcTestImpl throw UnsupportedOperationException instead return null 02/68102/2
Michael Vorburger [Fri, 9 Feb 2018 11:40:33 +0000 (12:40 +0100)]
ItmRpcTestImpl throw UnsupportedOperationException instead return null

Change-Id: I60138084a79bb2827cf363920506da5d44c29ad5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoFix more build failure due to openflowplugin lldp attribute name changes 11/68311/1
Michael Vorburger [Thu, 15 Feb 2018 16:23:25 +0000 (17:23 +0100)]
Fix more build failure due to openflowplugin lldp attribute name changes

Change-Id: I0848efef3982ecd34e9715a375d008ffac607a36
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoMigrate VtepConfigSchemaListener to use new listeners fw 76/67476/4
David Suarez [Tue, 23 Jan 2018 11:47:29 +0000 (12:47 +0100)]
Migrate VtepConfigSchemaListener to use new listeners fw

Additional changes:

- Remove useless JavaDoc
- Remove IllegalCatchs

Change-Id: I0b87599af95b95920d2bea157917889c06327861
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoMigrating FCAPSApplication PM Counters to Infrautils Counters 72/67272/12
Ankit [Thu, 18 Jan 2018 07:42:46 +0000 (13:12 +0530)]
Migrating FCAPSApplication PM Counters to Infrautils Counters

Change-Id: I2a4edeeb9deb72de15b8e4b75adf225843c4ddfb
Signed-off-by: Ankit <ank123it@gmail.com>
6 years agoMigrate HwVtepTunnelsStateHandler to use new listeners fw 29/67529/5
David Suarez [Wed, 24 Jan 2018 09:14:18 +0000 (10:14 +0100)]
Migrate HwVtepTunnelsStateHandler to use new listeners fw

Change-Id: I67ff8c833c13bbc8f8b6c61154309c61cac52b70
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
6 years agoBuild failures due to openflowplugin lldp attribute name changes 09/68309/3
Faseela K [Thu, 15 Feb 2018 15:30:05 +0000 (21:00 +0530)]
Build failures due to openflowplugin lldp attribute name changes

Change-Id: I9b06553ce1a0fcae7266492ea8fe176072d87874
Signed-off-by: Faseela K <faseela.k@ericsson.com>
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agouse feature for inter-project dependency 38/68238/3
Faseela K [Wed, 14 Feb 2018 12:36:50 +0000 (18:06 +0530)]
use feature for inter-project dependency

Use feature to express inter-project dependency correctly instead of
bundle.

For details, refer to
https://lists.opendaylight.org/pipermail/release/2018-January/013604.html
https://lists.opendaylight.org/pipermail/release/2017-September/012356.html

This depends on below patches to export necessary bundle as feature.
https://git.opendaylight.org/gerrit/#/c/68214/
https://git.opendaylight.org/gerrit/#/c/68233/

Change-Id: If3188ac2afaaa10d000969341e0f788c45c8bd2b
Signed-off-by: Faseela K <faseela.k@ericsson.com>
6 years agoNETVIRT-1066: Scale 150 DPN 60/63160/21
HANAMANTAGOUD V Kandagal [Fri, 15 Sep 2017 04:59:27 +0000 (10:29 +0530)]
NETVIRT-1066: Scale 150 DPN

Iterating through non-L2VLAN interfaces in L3VPN Tunnel
Interface State listener is unnecessary
For scaling to 150DPN , each TunnelIntfState add event causes a read of
list of interfaces on the given DPN.This list includes even non L2Vlan
type interfaces like tunnel-port etc. By ignoring these ports , read of
operational vpn-interface is avoided.

Change-Id: I3e658eb8eb78d39dc9ed0a7fc1750ce55ae6a7ec
Signed-off-by: HANAMANTAGOUD V Kandagal <hanamantagoud.v.kandagal@ericsson.com>
Signed-off-by: Sam Hague <shague@redhat.com>
6 years agoremove wrong @Inject from DataStoreMetrics (and very minor clean up) 40/68240/2
Michael Vorburger [Wed, 14 Feb 2018 13:31:17 +0000 (14:31 +0100)]
remove wrong @Inject from DataStoreMetrics (and very minor clean up)

because instances of DataStoreMetrics are created explicitly via new by
the listeners in package org.opendaylight.genius.datastoreutils, but
never by Blueprint XML or annotations, the @Inject here is not needed,
and could be confusing to humans and tools in the future (and we could
never @Inject Class<?> anyway).

Change-Id: Ia361a59f468f4fb77d30610b02882b354c66b847
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
6 years agoGENIUS-109: write interface state correctly 06/66706/4
Stephen Kitt [Thu, 21 Dec 2017 12:04:00 +0000 (13:04 +0100)]
GENIUS-109: write interface state correctly

we need to provide the mandatory statistics.

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