genius.git
5 years agoUse scope=provided for karaf shell 83/80183/1
Robert Varga [Thu, 7 Feb 2019 09:31:11 +0000 (10:31 +0100)]
Use scope=provided for karaf shell

The is filtered from features, but its dependencies are not,
fix that by having shell at scope=provided.

Change-Id: If927a076ef8701ddd2fc883a55d2223cddfa71a0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoDrop Karaf console dependency from genius-api 70/80070/3
Stephen Kitt [Thu, 31 Jan 2019 15:52:44 +0000 (16:52 +0100)]
Drop Karaf console dependency from genius-api

We shouldn’t be passing the command session around in the API layer;
use exceptions for errors throughout, and rework showTeps to return
the information to be displayed instead of displaying it directly.

Change-Id: Ic61909aa47c7246308a0dd3260f542b3b44b53a2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoGENIUS-248: ITM-Vtem Auto tunnel feature- Tunnels not coming up after deleting extern... 53/79853/5
Tarun Thakur [Wed, 23 Jan 2019 13:23:12 +0000 (18:53 +0530)]
GENIUS-248: ITM-Vtem Auto tunnel feature- Tunnels not coming up after deleting external id's in OVS

Issue:
When exterenal_id is deleted from OVS, then TEPs are supposed to move in def-TZ.
When TEP's movement to default-transport-zone from TZA happens, tunnels do not come up.
Main issue is during movement, TEP is added followed by TEP deletion
which makes TEP not available in tep-show-state. This happens because
TEP is keyed on dpn-id in DpnTepsInfo and tz-membership do not help in synchronization
issues.

Fix:
Introduced DataTreeEventCallbackRegistrar on DpnTepsInfo to check if TEP is deleted and
when it is removed and event is notified, then only perform TEP add in TZ movement case.

Change-Id: Iadbcc2a23ac971722237d0dd8f0b9d603d31a8ff
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
5 years agoBump versions by x.y.(z+1) 86/80086/1
jenkins-releng [Fri, 1 Feb 2019 13:06:29 +0000 (13:06 +0000)]
Bump versions by x.y.(z+1)

Change-Id: I5363fef9ef2795a360283a066117bddef3caf937
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
5 years agoGENIUS: Migrate fcaps from XML to annotation based BP 93/78893/8
Faseela K [Thu, 20 Dec 2018 17:01:43 +0000 (22:31 +0530)]
GENIUS: Migrate fcaps from XML to annotation based BP

Change-Id: I9ca19e733770a07f8976024bbd62a1c06a9ccd34
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoUse odl-apache-sshd 68/80068/2
Stephen Kitt [Thu, 31 Jan 2019 15:24:26 +0000 (16:24 +0100)]
Use odl-apache-sshd

... instead of pulling in the sshd bundle.

Change-Id: Ibde7756506ac814f914888ec943810c08cf74508
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoGENIUS-185: Removing usage of databroker tx 62/74962/25
Edw7n [Mon, 21 Jan 2019 14:41:03 +0000 (20:11 +0530)]
GENIUS-185: Removing usage of databroker tx

- replaces most uses of databroker tx
- few worker classes have been refactored into their respective listeneres
- some classes ommitted in /itm-impl/..../cli/
    would lead to other comprehensive changes which are out of scope

Change-Id: I8d2218636471923b7fb9e61dd2b42b6d80207bcf
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
5 years agoCreating OF Tunnel parent child in memory mapping. 46/79946/3
Dimple Jain [Mon, 28 Jan 2019 10:43:17 +0000 (16:13 +0530)]
Creating OF Tunnel parent child in memory mapping.

Change-Id: Id14d216b7bd744bd1d6ce28bd7baede9777a24ae
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoAdd a wrapping DataBroker test wiring ... 45/79945/1
Stephen Kitt [Mon, 28 Jan 2019 09:51:46 +0000 (10:51 +0100)]
Add a wrapping DataBroker test wiring ...

which wraps an MD-SAL DataBroker with a Controller DataBroker for test
purposes. (This will be removed once the migration is complete in
Genius and NetVirt.)

Change-Id: I7b8e9316d9e12f6c4252c6d64dfaeb3f482616c3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoGENIUS-268: Disabling BFD by default. 29/79629/4
Dimple Jain [Fri, 18 Jan 2019 08:48:58 +0000 (14:18 +0530)]
GENIUS-268: Disabling BFD by default.

Change-Id: I172779668282fce77f58946b8a303483b4d8ca11
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoAdd mdsal 3 DataBroker test modules 64/79464/7
Stephen Kitt [Fri, 11 Jan 2019 10:02:54 +0000 (11:02 +0100)]
Add mdsal 3 DataBroker test modules

Change-Id: Id2a34b49bd144e6a2b6e930cdf28965515839954
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agogenius/interfacemanager annotation based bp 96/79796/3
Faseela K [Mon, 14 Jan 2019 08:59:48 +0000 (14:29 +0530)]
genius/interfacemanager annotation based bp

Change-Id: I3f91ce5cf6b60beaa0a634c1f73bb4cfd42d6646
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoAdding OF Tunnel detail to config DS. 37/79837/6
Dimple Jain [Wed, 23 Jan 2019 07:24:11 +0000 (12:54 +0530)]
Adding OF Tunnel detail to config DS.

Change-Id: I4ad233308e64d8e2dcaba6eee7d8a4fc1398d961
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoPort fcapsapplication to mdsal 3 10/79410/2
Stephen Kitt [Thu, 10 Jan 2019 10:51:05 +0000 (11:51 +0100)]
Port fcapsapplication to mdsal 3

Change-Id: I12189d6d63d4e346cfe9c280abc90a57367a3f65
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoGENIUS-130: Adding OFTunnel enablement configuration 51/79651/4
Dimple Jain [Fri, 18 Jan 2019 10:19:02 +0000 (15:49 +0530)]
GENIUS-130: Adding OFTunnel enablement configuration
flag in ITM and removing from IFM.

Change-Id: I5d2c7c5e8a80251d2fc824963075d5a0623abfe4
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoTSC-181 01/79601/6
Chintan Apte [Thu, 17 Jan 2019 08:15:18 +0000 (13:45 +0530)]
TSC-181
Marking the fields set to be removed as depercated.
Taking care of Hema's comments.
Gerrit link for the corresponding spec change:-
https://git.opendaylight.org/gerrit/77605

Signed-off-by: Chintan Apte <chintan.apte@ericsson.com>
Change-Id: I611cfbe52a38c84f4dd3221c1df9e48e1c06d857

5 years agoBump mdsal to 3.0.6 52/79752/6
Robert Varga [Sun, 20 Jan 2019 02:43:51 +0000 (03:43 +0100)]
Bump mdsal to 3.0.6

This aligns with odlparent-4.0.9 and yangtools-2.1.8.

Change-Id: Ie7f524c8a482f570f43257d12856a5dd6c83d620
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoBump to odlparent 4.0.9 66/79666/2
Stephen Kitt [Fri, 18 Jan 2019 15:32:40 +0000 (16:32 +0100)]
Bump to odlparent 4.0.9

Change-Id: Ieeae64846bab1f12c91520cd3285f8434401dc89
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoHuge INFO log in TerminationPointStateListener 09/79609/2
Faseela K [Thu, 17 Jan 2019 11:44:59 +0000 (17:14 +0530)]
Huge INFO log in TerminationPointStateListener

This log is coming in csit runs for each bfd status
update on tunnel creation.

Change-Id: I0b75b68b2ca299b791755c57597ca20dd98f798a
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoRD allocation using IDManager 57/79157/6
Vyshakh Krishnan CH [Wed, 2 Jan 2019 17:39:49 +0000 (23:09 +0530)]
RD allocation using IDManager

JIRA: GENIUS-262

RD is currently allocated by opensatck in netvirt.
For COE, RD has to be auto generated.
These changes is to introduce the logic in GENIUS using IDmanager

Change-Id: I8afadbc330b41f8dc7b71252de396f8500bfd5d1
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
5 years agoBump mdsal to 3.0.4 31/79431/2
Robert Varga [Thu, 10 Jan 2019 15:44:25 +0000 (16:44 +0100)]
Bump mdsal to 3.0.4

This realigns odlparent/yangtools/mdsal and brings in the latest
improvements.

Change-Id: Ia4f91421a4ca9ccf8f1b70513f74855d95a93ad6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to odlparent 4.0.8 60/79360/3
Stephen Kitt [Wed, 9 Jan 2019 14:54:53 +0000 (15:54 +0100)]
Bump to odlparent 4.0.8

Change-Id: I28d2d37031a530ebadf04224cd7ccabf89e65576
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoPort alivenessmonitor to mdsal 3 39/77339/10
Stephen Kitt [Tue, 30 Oct 2018 08:26:42 +0000 (09:26 +0100)]
Port alivenessmonitor to mdsal 3

Change-Id: I936f986dabbac2d7c917d1086dcf645ff2067984
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoGENIUS-130: Adding OFTunnel enablement configuration. 76/77676/3
Dimple Jain [Mon, 12 Nov 2018 06:51:25 +0000 (12:21 +0530)]
GENIUS-130: Adding OFTunnel enablement configuration.

Change-Id: I0458f4d1f1af760570bdb22e96af8fd94ab2e39a
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoGENIUS:arputil from XML to annotation based BP 73/78873/5
Faseela K [Wed, 19 Dec 2018 15:16:03 +0000 (20:46 +0530)]
GENIUS:arputil from XML to annotation based BP

Change-Id: I500dc72ba4f630a18ede2ec000d73f070cf64f7e
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoGENIUS: idmanager from xml to annotation based bp 42/78942/3
Faseela K [Fri, 21 Dec 2018 10:47:13 +0000 (16:17 +0530)]
GENIUS: idmanager from xml to annotation based bp

Change-Id: I7b5f0197340a5c72b306fa766db685ae9821c6b5
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoBump odlparent to 4.0.7 16/79116/2
Stephen Kitt [Wed, 2 Jan 2019 10:24:09 +0000 (11:24 +0100)]
Bump odlparent to 4.0.7

Change-Id: I6235a463da8f44663c1b2415e1524c492df87cd3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoFix odl-genius-fcaps-framework 90/79190/3
Robert Varga [Thu, 3 Jan 2019 15:40:58 +0000 (16:40 +0100)]
Fix odl-genius-fcaps-framework

This feature is using stuff from infrautils, make sure we depend
on the correct upstream feature.

Change-Id: I6b7d31d1ccd20f3860f5c6e1fc848fcbc6542d0f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUse odl-apache-commons-net 89/79189/1
Robert Varga [Thu, 3 Jan 2019 15:35:31 +0000 (16:35 +0100)]
Use odl-apache-commons-net

odlparent provides a wrapper feature, use it to package commons-net.

Change-Id: Ic4afbb808323dbe63cdc76f0497f4167554e442d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRevert "skip tests using xtend until odlparent bump" 94/78994/3
Robert Varga [Sat, 22 Dec 2018 17:37:30 +0000 (18:37 +0100)]
Revert "skip tests using xtend until odlparent bump"

This reverts commit c30f9b64ecde99cb4078bd8fd3a7eb1ad752d3a0. With
odlparent-4.0.5, the tests should work again as expected.

Change-Id: Ia125654dd8fcf623ee175927a982ee6f21df940d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoGENIUS:alivenessmonitor from XML to annotation based blueprint 71/78871/5
Faseela K [Wed, 19 Dec 2018 11:52:30 +0000 (17:22 +0530)]
GENIUS:alivenessmonitor from XML to annotation based blueprint

Change-Id: I442b1efd4af465fe4a2e8a6aa5aa613a069c5bb8
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoBump mdsal to 3.0.3 16/79016/1
Robert Varga [Sun, 23 Dec 2018 22:55:55 +0000 (23:55 +0100)]
Bump mdsal to 3.0.3

This brings in latest fixes and alignes with odlparent-4.0.5.

Change-Id: I5457187f545fa0b1a39d74bdc840cfb2a7e62270
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to odlparent 4.0.5 12/78912/3
Stephen Kitt [Fri, 21 Dec 2018 09:10:08 +0000 (10:10 +0100)]
Bump to odlparent 4.0.5

Change-Id: I8b171097895667e34397a1b3ce0ba5eb904c3088
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoskip tests using xtend until odlparent bump 02/78902/2
Faseela K [Fri, 21 Dec 2018 06:26:17 +0000 (11:56 +0530)]
skip tests using xtend until odlparent bump

Change-Id: I4d7f5e3fbed0aabbada457500b85bc081d4a0a81
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoDrop nullToEmpty 71/78371/6
Stephen Kitt [Mon, 3 Dec 2018 10:11:23 +0000 (11:11 +0100)]
Drop nullToEmpty

Use the nonnull getter variants where appropriate.

Change-Id: I25d0b58cd3984d6924fee406ac7cd7a4de358abf
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoMove IdManager based VNI Carving to a centralized module 19/78319/10
Faseela K [Fri, 30 Nov 2018 11:06:49 +0000 (16:36 +0530)]
Move IdManager based VNI Carving to a centralized module

JIRA: GENIUS-250

Netvirt currently has a vni carving logic which is
tightly coupled with NAT. There are more netvirt
services which are in need of this utility now, and
hence we need to move this to a centralized place.
Adding a new VniUtils in genius, to which later
netvirt services can be migrated to.

Change-Id: I68c2f6cfe74d03c741e519e86704490043787d95
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoGENIUS-246:Removing updation of cache. 43/78643/8
Dimple Jain [Tue, 11 Dec 2018 10:42:46 +0000 (16:12 +0530)]
GENIUS-246:Removing updation of cache.

When tunnels are not found in cache today, ITM does a dip into DS
and updates the cache accordingly. This cause stale entries
getting added into the cache.
This issue was observed when a tep delete command is executed:
1. ITM initiates delete process.
2. ITM removes the tunnel from the InternalTunnel cache.
3. Before the DS is cleaned up, we try to fetch tunnels from cache
   to process clearance of Alarm if any for that tunnel.
   As the cache does not have that specific tunnel; ITM
   repopulates the cache by doing a dip into the DS.
4. Thereby a stale tunnel gets added to the cache.

The fix is to dip into DS if the tunnel is not present in the
cache but not update the cache.

Change-Id: I1fa7dded96f7a15cba0e63cf9318af5c75e2b41d
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoStale interface cache entry 50/78750/2
Faseela K [Thu, 13 Dec 2018 11:42:16 +0000 (17:12 +0530)]
Stale interface cache entry

interface-config and interface-state DS entries
are front ended by a ConcurrentHashMap for easy
subsequent access. These maps are populated
by a clustered DTCN, but on top of that there
is an additional logic for populating the maps
when an external entity tries to access the same
from DS. This logic is causing stale data to be
written to the cache in some cases.

Change-Id: I6e57777094e0aff98af9b27fa7548d0b954161a7
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoEnsure that maps accesses are protected 49/78749/3
Stephen Kitt [Thu, 13 Dec 2018 11:05:23 +0000 (12:05 +0100)]
Ensure that maps accesses are protected

All methods which directly access the flow, group and bucket maps
should be synchronized.

Change-Id: I3e600d141ed1b090a1fb7e7783163a464adaa152
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoRemove genius/resourcemanager 46/78746/2
Faseela K [Thu, 13 Dec 2018 10:37:57 +0000 (16:07 +0530)]
Remove genius/resourcemanager

resourcemanager is not used by any applications for
the last few releases. Let us remove it from the
main genius feature, and add it back only when
someone really needs it.

Change-Id: I3e381cc3b401bca94a1084469d45c643cfad5f47
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoUse cached invariant objects 56/77956/10
Robert Varga [Mon, 19 Nov 2018 20:06:28 +0000 (21:06 +0100)]
Use cached invariant objects

This caches operation result futures and make use of them, so we
do not need to allocate them.

Change-Id: I670996cadb905fefe0a104bbafa9a281428e0241
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoreduce 'Total taken ##time' log level in ResourceBatchingManager from INFO to DEBUG 72/78672/1
Michael Vorburger [Wed, 12 Dec 2018 10:06:58 +0000 (11:06 +0100)]
reduce 'Total taken ##time' log level in ResourceBatchingManager from INFO to DEBUG

JIRA: GENIUS-255
Change-Id: I5d2c5d9e257474a4d5d5abb415ea5792812f2c5e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoAdding few log statements for Cache updation. 32/78632/1
Dimple Jain [Tue, 11 Dec 2018 08:14:11 +0000 (13:44 +0530)]
Adding few log statements for Cache updation.

Change-Id: Ie7eab2422bf2b797bff83d0addd2634a4f95b88f
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
5 years agoFix an xtend warning 67/78167/4
Robert Varga [Mon, 26 Nov 2018 18:53:04 +0000 (19:53 +0100)]
Fix an xtend warning

This is != vs !== confusion, xtend is not java.

Change-Id: I32b64cffbe2415acdd6683a9dacc524add1186d4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to mdsal-3.0.2 49/78149/4
Robert Varga [Mon, 26 Nov 2018 09:27:52 +0000 (10:27 +0100)]
Bump to mdsal-3.0.2

This bumps mdsal to 3.0.2.

Change-Id: Ib51a71a0bfcac88fa81a41f5ac967db46d5e7e28
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAdd missing optionOfTunnel 13/78313/1
Stephen Kitt [Fri, 30 Nov 2018 09:11:02 +0000 (10:11 +0100)]
Add missing optionOfTunnel

As done in I5c34b8d147dff82e8e56bc82fa472919e425f368, this adds a
missing optionOfTunnel, which is necessary for the mdsal 3.0.2 bump.

Change-Id: I41b937c450be279e40ea82ad8e9e1ef892070929
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoReduce liblldp usage 84/78284/2
Stephen Kitt [Thu, 29 Nov 2018 09:50:54 +0000 (10:50 +0100)]
Reduce liblldp usage

We can use Byte.SIZE instead of NetUtils.NUM_BITS_IN_A_BYTE.

Change-Id: I8b0bf17e9b6472dea45fa50e323b0813cb5acaf7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoFix mtu type in router-advertisement-packet 68/77668/5
Sridhar Gaddam [Sun, 11 Nov 2018 09:06:37 +0000 (14:36 +0530)]
Fix mtu type in router-advertisement-packet

This patch also defines few constants used while
framing an RA.

Change-Id: Ic67a92522438c6d60dfa90198196bb0e7af13f5f
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
5 years agoDo not use createMissingParents 55/77955/5
Robert Varga [Mon, 19 Nov 2018 19:52:29 +0000 (20:52 +0100)]
Do not use createMissingParents

Locks does not have any elements which would be created, so do not
force this operation to be needlessly slow.

Change-Id: I56acb72e943e05d6a1fc4dd7f71e2afdd0f2bfb2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAllocate InstanceIdentifier only when needed 54/77954/5
Robert Varga [Mon, 19 Nov 2018 19:49:01 +0000 (20:49 +0100)]
Allocate InstanceIdentifier only when needed

LockData, which we are passing around anyway, has enough information
to build an InstanceIdentifier. Lower the number of arguments being
passed around by moving InstanceIdentifier creation to the point
where it is actually needed.

Change-Id: I6454a37cfd16b6cd8bea752462b95ead5a49e0d9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoGENIUS-212: TEP IP Update does not work in ITM auto-tunnel 01/76701/5
Tarun Thakur [Fri, 21 Sep 2018 07:31:01 +0000 (13:01 +0530)]
GENIUS-212: TEP IP Update does not work in ITM auto-tunnel

Issue: During local_ip update, old-tep is being set.

Fix: New tep ip is getting passed during tep addition after old tep is
removed.

Change-Id: I37573b69178188ce9e809805f63d0dca0b1cefdb
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
5 years agoDouble registration of listener 17/78217/2
Faseela K [Tue, 27 Nov 2018 16:29:43 +0000 (21:59 +0530)]
Double registration of listener

InterfaceConfigListener is registering
its listener twice, resulting in all events
being triggered twice.

JIRA: CONTROLLER-1874

Change-Id: Ic9246a303df7b9309062a9343ac0543df5a26487
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoFix for Id allocation failure 69/77369/7
Ankit Jain [Tue, 30 Oct 2018 08:51:50 +0000 (14:21 +0530)]
Fix for Id allocation failure

This issue is caused due to gerrit
https://git.opendaylight.org/gerrit/#/c/75824/, where
"ReadFailedException" exception is not handled, which is preventing
further code execution. Hence resulting in id allocation failure.

Fix is to handle the exception, so that code excecution doesn't stop
if read fails.

Change-Id: I9b16f40310205550c866785ff1197a9ad1eaaa89
Signed-off-by: Ankit Jain <ankit.j.jain@ericsson.com>
5 years agofix wrong JavaDoc of SingleTransactionDataBroker syncRead() 89/78089/4
Michael Vorburger [Fri, 23 Nov 2018 10:33:05 +0000 (11:33 +0100)]
fix wrong JavaDoc of SingleTransactionDataBroker syncRead()

prompted by review of I9b16f40310205550c866785ff1197a9ad1eaaa89 where
this was not read and done wrong, but if the doc is misleading, that
doesn't help... ;-)

Change-Id: Iec020c9e85308dda07864ac3b98398f72f14763c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoGENIUS-243: Timing issues in tunnel mesh creation 82/76982/16
Edw7n [Fri, 23 Nov 2018 05:58:36 +0000 (11:28 +0530)]
GENIUS-243: Timing issues in tunnel mesh creation

- takes care of timing issues during mesh creation in a scaled setup
- introduction of a new immutable to synchronize between event processing
  of dpnTepsState & dpnTepsInfo

Change-Id: Iceed44605c84a73398d020a387f52e210e008bd1
Signed-off-by: Edw7n <n.edwin.anthony@ericsson.com>
5 years agoAdditional DEBUG logs for bridge-interface deletion 98/78098/2
Faseela K [Fri, 23 Nov 2018 14:24:18 +0000 (19:54 +0530)]
Additional DEBUG logs for bridge-interface deletion

Change-Id: Id0fc2e775621a21862819410b131a3f1cb01e7f0
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoFix comment in TunnelInventoryStateListener 84/78084/2
Faseela K [Fri, 23 Nov 2018 10:03:40 +0000 (15:33 +0530)]
Fix comment in TunnelInventoryStateListener

Change-Id: I7ee6dbaf12dfee51c4919f0cd4da55e11f741468
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoDo not leak implementation CompletableFutures 53/77953/2
Robert Varga [Mon, 19 Nov 2018 19:20:20 +0000 (20:20 +0100)]
Do not leak implementation CompletableFutures

Rather than LockListener performing a lookup and modification of
CompletableFuture, expose a package-private method to remove the
lock -- thus properly encapsulating the operation.

Change-Id: Ib968b42c2e032aed49125ceac523435d7a1b41c6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoAdd JvmGlobalLocks 12/77912/5
Robert Varga [Sun, 18 Nov 2018 14:43:03 +0000 (15:43 +0100)]
Add JvmGlobalLocks

As explained in NETVIRT-1510, the String.intern()-based locking is
a thing of pure horror.

Provide a migration class, where the semantics are explained, so
that we can catch all places performing this funkiness. This will
bind the locking domain, which we can then split into finer domains,
properly expressing our locking.

JIRA: NETVIRT-1510
Change-Id: I82b1ad1c150ad191055ca3049525d99af0612e8e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMake nullToEmpty return immutable empty lists 84/77584/3
Stephen Kitt [Wed, 7 Nov 2018 16:43:55 +0000 (17:43 +0100)]
Make nullToEmpty return immutable empty lists

This matches the mdsal behaviour.

Change-Id: I990e848102e2ec0a2e273ea6c63fa0ad804b19bf
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agooptimize creation of JobCoordinator key String in EntityOwnershipUtils 01/77901/3
Michael Vorburger [Fri, 16 Nov 2018 14:58:02 +0000 (15:58 +0100)]
optimize creation of JobCoordinator key String in EntityOwnershipUtils

because (Generic)Entity.toString() appears to have a noticeable cost,
and it's easy to avoid, so let's do that locally here (without having to
change JobCoordinator), it cannot hurt and may help.

JIRA: GENIUS-237
Change-Id: I0263ab250b4adce75adefd279f23aec7e1feafbe
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoswitch from FindBugs to SpotBugs 31/77931/3
Michael Vorburger [Mon, 19 Nov 2018 09:46:34 +0000 (10:46 +0100)]
switch from FindBugs to SpotBugs

Change-Id: If5819cffd14f4f4020c31bc6175a8b4b16068f89
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoUnnecessarly log removal in auto-tunnels 70/77870/2
Faseela K [Fri, 16 Nov 2018 06:46:39 +0000 (12:16 +0530)]
Unnecessarly log removal in auto-tunnels

Removed un-necessary trace log message being invoked so frequently.
It will help in lesser log messages in karaf.log

Change-Id: Iaa69f605d8a2c0266c119037d6e8dfa6a99f568f
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoGENIUS-240 IdPoolListener equals() on DataObject seems to cause huge object allocatio... 66/77766/2
Ankit Jain [Wed, 14 Nov 2018 07:28:09 +0000 (12:58 +0530)]
GENIUS-240 IdPoolListener equals() on DataObject seems to cause huge object allocation overhead

Cause
=====
ReleasedIdsHolder contains the list of ids have been released and these
ids are not used until the AvailableIdsHolder exhausts. Hence size of
ReleasedIdsHolder object keeps on increasing for each id release and
results in huge object allocation when two objects are compared.

Fix
====
ReleasedIdsHolder has an attribute called "availableIdCount" to keep track of
number of released ids. Instead of comparing entire ReleasedIdsHolder
object, we can only compare "availableIdCount" attribute to check if object is
updated or not.

Change-Id: I4222cfe8df4aaed7508c982a3d4f645b10497ecb
Signed-off-by: Ankit Jain <ankit.j.jain@ericsson.com>
5 years agoGENIUS-213: vxlan tep tunnels are not being created 95/77195/13
Nishchya Gupta [Tue, 23 Oct 2018 10:58:17 +0000 (16:28 +0530)]
GENIUS-213: vxlan tep tunnels are not being created

Problem
-------
EntityOwner was not coming active due to some syncronization issues, which
was resulting in skipping of Default-Transport-Zone creation.

Solution
--------
To resolve synchronization issue , now we are listening for
proper event which is received only when entity owner is elected.

Change-Id: I78a69ebbf71bc193ed0219f2a8fdc485acd3ca23
Signed-off-by: Nishchya Gupta <nishchyag@altencalsoftlabs.com>
5 years agoGENIUS-236: Excessive toString in OvsdbNodeListener.getOvsdbTepInfo() 46/77846/2
Tarun Thakur [Thu, 15 Nov 2018 10:47:36 +0000 (16:17 +0530)]
GENIUS-236: Excessive toString in OvsdbNodeListener.getOvsdbTepInfo()

Removed un-necessary trace log message being invoked so frequently.
It will help in lesser log messages in karaf.log

Change-Id: I27749efa252dac15c396c9cdd2377a4e62bcbdff
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
5 years agoIMdsalApiManager clean-up 07/76607/3
Stephen Kitt [Wed, 3 Oct 2018 11:55:47 +0000 (13:55 +0200)]
IMdsalApiManager clean-up

This patch removes a number of methods which are no longer used in
Genius and NetVirt (once I11c363097e0a667cba4e7ca52e5691d28ea9800c is
merged). It also adds a simpler constructor, allowing dependencies to
switch to that before it gets removed in a subsequent patch.

Change-Id: I540e16f2eaaa71d1e302b0373e38405268d3e684
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoHandle nullable lists 39/77539/4
Stephen Kitt [Mon, 5 Nov 2018 14:41:24 +0000 (15:41 +0100)]
Handle nullable lists

... and a few other potential NPEs (with some drive-by clean-up, which
I can split out if necessary).

Change-Id: I84ed816ff938f25be2113068c4903a5e325ae216
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agorootNode.getDataAfter() return null instead of emptylist 93/77493/4
Faseela K [Mon, 5 Nov 2018 08:56:39 +0000 (14:26 +0530)]
rootNode.getDataAfter() return null instead of emptylist

After Neon MRI version bump, on a node removal, rootNode.getDataAfter()
is returning null instead of empty list, and hence requires a change
in service-binding logic of GENIUS

JIRA: TSC-179
Change-Id: I098fed50647268b70469b7097b3979d2424f8a0f
Signed-off-by: Faseela K <faseela.k@ericsson.com>
5 years agoAdd vtep optionOfTunnel values 53/77453/2
Stephen Kitt [Fri, 2 Nov 2018 13:02:34 +0000 (14:02 +0100)]
Add vtep optionOfTunnel values

Vteps now has an optionOfTunnel field which is initialised to null by
default but should be false in our tests.

Change-Id: I5c34b8d147dff82e8e56bc82fa472919e425f368
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoCompare lists in TestIMdsalApiManager 52/77452/2
Stephen Kitt [Fri, 2 Nov 2018 13:03:43 +0000 (14:03 +0100)]
Compare lists in TestIMdsalApiManager

assertFlows() ends up comparing a list to a set, which works with
Xtends’s text representations but fails with equals(). This patch
stores the contents of the set in a list before comparing.

Change-Id: I106f6ee9c5a4fdbaf3a3ba256bcae837cb6f2198
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoremove TestableQueues from itm-impl/src/test, use infrautils' 63/76663/5
Michael Vorburger [Thu, 4 Oct 2018 18:28:07 +0000 (20:28 +0200)]
remove TestableQueues from itm-impl/src/test, use infrautils'

Change-Id: I20568d2d34653a41cc829098ebd72ca505021515
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoremove un-used imports in ITM tests Xtend 61/76661/2
Michael Vorburger [Mon, 29 Oct 2018 16:38:05 +0000 (17:38 +0100)]
remove un-used imports in ITM tests Xtend

right click > Source > Organize Xtend imports

Change-Id: Ib2b55751c3b441ecb564742aada3b1a8645c1597
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoGenius Neon MRI changes 14/76414/23
Vishal Thapar [Mon, 24 Sep 2018 11:45:58 +0000 (17:15 +0530)]
Genius Neon MRI changes

Mockito & PowerMock bumps are deferred to "later".

JIRA: GENIUS-210
Change-Id: Ia693f0f19a8304ef8754253fc2956638876c529d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUse plain @Nullable 45/77245/1
Stephen Kitt [Wed, 24 Oct 2018 08:16:23 +0000 (10:16 +0200)]
Use plain @Nullable

The @NullableDecl reference added in
https://git.opendaylight.org/gerrit/75824 breaks when upgrading Guava;
use @Nullable instead.

Change-Id: I62b726bb21cdd26e113e284d04cd108a7ec1c45f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoMissing nicira's NxmOfFieldType's 22/76922/2
Somashekar Byrappa [Fri, 12 Oct 2018 10:32:15 +0000 (16:02 +0530)]
Missing nicira's NxmOfFieldType's

+ Added missing nicira's NxmOfFieldType's.
+ Added couple of constants in MetaDataUtil which will be used by
  Netvirt.

Change-Id: I491fb106a0352169d526378225b1070c87fed8a7
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
5 years agoPotential fix for id duplication 24/75824/8
Ankit Jain [Fri, 7 Sep 2018 05:42:39 +0000 (11:12 +0530)]
Potential fix for id duplication

We have seen the cases where same id was allocated to two different
keys.

Below are the scenarios which may result in allocating duplicate ids.

i) When an Id is released, as part of released id two DJC jobs are
scheduled. First job, to update the released id into the released id
holder of child pool, gets executed successfully. But the second job,
to delete the id from parent pool, somehow gets failed. This will end
up having same id exist at two places, and may eventually result in
allocating same id for two different keys.

Here fix is to return the future object to DJC so that job is retried,
if failed.

ii) It was observed that when a child pool is present in the Idmanager
datastore but not in local cache, Idmanager first creates the child pool
then stores the created child pool in the local cache, and then
allocates id from
the local cache. Since the same child pool is already present in the
datastore,
a pool update event gets triggered, which overrides the local cache. We
have
seen that this scenario is resulting in generating duplicate ids.

When Idmanager datastore is deleted, as part of this id pool delete
events are triggered, which clear the local pool cache. Since Idmanager
doesn't act on pool add event, local cache doesn't populate when same
Idmanager datastore is pushed back through RESTCONF. Hence this can
result in id pool
present is datastore but not in local cache.

If child pool is not present in the local cache, before creating the
child pool, it should be checked if the child is present in the
datastore or
not.

Change-Id: Ia08349bf227fdbfbdb1d6e9009a0eed35cc27b18
Signed-off-by: Ankit Jain <ankit.j.jain@ericsson.com>
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoUpdate docs header to Neon on master 86/76886/2
Daniel Farrell [Thu, 11 Oct 2018 15:15:08 +0000 (15:15 +0000)]
Update docs header to Neon on master

This version name gets rendered into the main header of Genius' docs.

Now that these docs have moved from the docs repo to project-owned
repos, projects need to update this version themselves.

Should be Neon on master and Fluorine on stable/fluorine.

Change-Id: Ibab0c65217b320c3d1d3d72e69a85010c2c1f037
Jira: DOCS-112
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
5 years agoGRE Config removal doesn't remove tunnel from Oper DS 05/74905/10
Hema Gopalakrishnan [Tue, 7 Aug 2018 08:39:52 +0000 (14:09 +0530)]
GRE Config removal doesn't remove tunnel from Oper DS

When GRE config is removed, GRE external tunnel is not cleaned up on the
switch.
Fix is to cache the internal tunnel in InterfaceManager so that it knows
the internal tunnels to be ignored and only process the external tunnels.
This cache is built across the cluster

Change-Id: I776b1b11418377c8d3fee378a48734063fefe607
Signed-off-by: Hema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
5 years agofix 2 minor Checkstyle problems 62/76662/2
Michael Vorburger [Thu, 4 Oct 2018 18:25:03 +0000 (20:25 +0200)]
fix 2 minor Checkstyle problems

these appear in my Eclipse, but for some reason don't fail the build

Change-Id: I3a31326030acec45c17f8607118bfe262021ca73
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoRevert "Revert "Rename ether-types to monitor-protocol-type"" 94/76694/2
Somashekar B [Fri, 5 Oct 2018 10:33:28 +0000 (10:33 +0000)]
Revert "Revert "Rename ether-types to monitor-protocol-type""

This reverts commit 018ddc36ef8744fb2210f9f404aa42c1a91ed7f5.

Reverting the reverted patch to pass the build.

The dependent patch [1] is already merged in Netvirt, hence this patch
which is revert of [0] is required to pass the build.

[0]. Genius: https://git.opendaylight.org/gerrit/#/c/76271/
[1]. Netvirt: https://git.opendaylight.org/gerrit/#/c/76272/

Change-Id: I54589eb7f9babe76c8b82060e10746a84f26696b
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
5 years agoRevert "Rename ether-types to monitor-protocol-type" 48/76648/2
Sam Hague [Thu, 4 Oct 2018 14:41:37 +0000 (14:41 +0000)]
Revert "Rename ether-types to monitor-protocol-type"

This reverts commit 3c5f6750cf080ce1d9311b03caef3c0a8302010e.

Change-Id: I0c401e21f0b54d82a39e24700892955122ba7ff5
Signed-off-by: Sam Hague <shague@redhat.com>
5 years agoDrop Xtend Equinox Common overrides 51/76651/2
Stephen Kitt [Thu, 4 Oct 2018 15:23:52 +0000 (17:23 +0200)]
Drop Xtend Equinox Common overrides

These are no longer necessary and make it harder than it should be to
upgrade Xtend in odlparent.

Change-Id: I98d745633a2a4f146d65d02b6b6fb8cc64ef7abb
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoReplace yang notifications in ipv6-nd-util.yang 21/76221/4
Somashekar Byrappa [Tue, 18 Sep 2018 14:00:57 +0000 (19:30 +0530)]
Replace yang notifications in ipv6-nd-util.yang

+ In ipv6-nd-util.yang, instead of "notification na-received",
  neighbor-advertise-packet has been augmented with packet-metadata.
+ Netvirt patch [0] handles replacing yang notifications with direct API call
  for reliability.

This patch will break Netvirt build, hence the corresponding patch in
Netvirt [0] needs to be merged along with this one.

JIRA: NETVIRT-1434

[0] https://git.opendaylight.org/gerrit/#/c/76222/

Change-Id: I9f879f924fa34b5de1b181c9fef8f015ad1bab18
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
5 years agoRename ether-types to monitor-protocol-type 71/76271/4
Somashekar Byrappa [Wed, 19 Sep 2018 14:17:47 +0000 (19:47 +0530)]
Rename ether-types to monitor-protocol-type

+ Renamed ether-types to monitor-protocol-type in
  aliveness-monitor.yang.
+ Addressed review comments mentioned in [0].

This patch will break Netvirt build, hence the corresponding patch in
Netvirt [1] needs to be merged along with this one.

[0] https://git.opendaylight.org/gerrit/#/c/73027/
[1] https://git.opendaylight.org/gerrit/#/c/76272/

Change-Id: I15c6eb50b5e82ff8b9fa66086697fad408bf2ec1
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
5 years agovery minor change to TestIMdsalApiManager 26/76526/2
Michael Vorburger [Mon, 1 Oct 2018 11:09:45 +0000 (13:09 +0200)]
very minor change to TestIMdsalApiManager

Change-Id: Ie59161cede9d67ca9be344327a84715e4c94a77d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoGENIUS-201: TepCommandHelper should avoid heavy DS reads in bean initialization 01/76201/7
Tarun Thakur [Fri, 31 Aug 2018 09:07:00 +0000 (14:37 +0530)]
GENIUS-201: TepCommandHelper should avoid heavy DS reads in bean initialization

Changes done:

Separate worker queued to DJC on EOS owner to create the default transport zone.
Register listener in the bundle bring up.
 - If vteps are discovered for default TZ,  check if default-TZ is already created.
   - If present, add it
   - If not present ,check if the flag is enabled, then add it to the “tep Not Hosted”.
   - Handle default TZ creation as any other TZ creation and move the teps from “Not hosted” to appropriate TZ

Since default-TZ will be created during start of ItmProvider class
through JobCoordinator which runs in separate thread, this change
impacts on current test cases, so Updated ItmTepAutoConfigTest component
test cases and one change in ItmManagerRpcServiceTest.java

Change-Id: I4334a8bb37de86649e7cbf5718d5b262e603ffd4
Signed-off-by: Tarun Thakur <tarun.t@altencalsoftlabs.com>
5 years agoMismatch b/w table 21 and table 220 reg values 06/76406/2
Somashekar Byrappa [Mon, 24 Sep 2018 07:39:35 +0000 (13:09 +0530)]
Mismatch b/w table 21 and table 220 reg values

Mismatch b/w table 21 and table 220 reg values after tep-delete/tep-add

Issue:
------
During external tep-delete/tep-add, ITM was treating it as
internal tunnel due to incorrect if check. Due to this during
tep-delete, table 21 flows are not deleted and hence it remains as
stale. Even tep-add doesn't program table 21 flows correctly as it is
treated as internal tunnel. Hence traffic fails between DC-GW and VM's.

Solution:
---------
In case of external tunnel, destination-device object will be of IP
address format where-as for internal tunnel, it would contain DPN-ID.
Corrected the if check accordingly.

JIRA: NETVIRT-1429

Change-Id: I267ecd239ddfc9f39a9a5497f9cb27b78ac7e454
Signed-off-by: Somashekar Byrappa <somashekar.b@altencalsoftlabs.com>
5 years agoAdd more MdsalApiManager test methods, key them 76/76276/4
Stephen Kitt [Wed, 19 Sep 2018 14:57:58 +0000 (16:57 +0200)]
Add more MdsalApiManager test methods, key them

This adds implementations of some of the new MdsalApiManager methods
to TestIMdsalApiManager, allowing them to be used in downstream
tests.

It also reworks the storage to be keyed, using the same distinguishers
as the real datastore, avoiding errors related to duplicate handling.

Change-Id: Id87cac5d78d271d6650a513cc8b03c3bd6c88c79
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoAdd NxMatch toString() implementations 68/76368/3
Stephen Kitt [Sat, 22 Sep 2018 21:03:32 +0000 (23:03 +0200)]
Add NxMatch toString() implementations

These help greatly when debugging.

Change-Id: Ic0c68a12e52d5b918c40cbd776fc10f4b8d307d9
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoCherry-picking the preventive fix from the ITM side for the 09/74909/4
Chintan Apte [Tue, 7 Aug 2018 09:51:29 +0000 (15:21 +0530)]
Cherry-picking the preventive fix from the ITM side for the
duplicate ITM tunnels issue.

Change-Id: Iee4c2bbdebca0f3f8ae843b367d9471aa43bd140
Signed-off-by: Chintan Apte <chintan.apte@ericsson.com>
5 years agoMinor changes 11/76111/1
David Suarez [Sat, 15 Sep 2018 14:30:38 +0000 (16:30 +0200)]
Minor changes

Change-Id: I36a412d191eace67db24f70c4f350dbbc765c4a3
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
5 years agoSupport write-only typed cancellable transactions 42/75942/3
Stephen Kitt [Mon, 10 Sep 2018 16:24:52 +0000 (18:24 +0200)]
Support write-only typed cancellable transactions

When support for cancelling non-written write-only transactions was
added, typed write-only transactions got left out; this patch adds
support for them.

Change-Id: I097efeaf62a88a0cfbfa8e8eb1d6608269bf3736
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoadd @CheckReturnValue to Managed/New/TransactionFactory/Runner/Impl 35/75935/4
Michael Vorburger [Mon, 10 Sep 2018 15:25:16 +0000 (17:25 +0200)]
add @CheckReturnValue to Managed/New/TransactionFactory/Runner/Impl

to 3 internal private & protected methods, and more consistently to
public; where we had it on some but not all @Override methods.. the
ManagedTransactionFactory and ManagedNewTransactionRunner interface
methods also have it.

Perhaps impl don't need to repeat it (inheritance of annotations is a a
bit of a mess AFAIK), but it can't hurt.  Otherwise let's remove it from
all impl, for consistency (but keep it on those 3 internal methods).

Change-Id: I0b0c7365685f45e9cfde18a7a0ee9681e8a08d77
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoMigrate genius user-guide to project repo 93/75893/3
Thanh Ha [Sun, 9 Sep 2018 01:39:48 +0000 (21:39 -0400)]
Migrate genius user-guide to project repo

Issue: DOCS-69
Change-Id: Ie81e3ca990a6a14bcfc65ea354fd11713773efcf
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
5 years agoremove apparently un-used public method in IdManager impl 21/75921/5
Michael Vorburger [Mon, 10 Sep 2018 11:29:57 +0000 (13:29 +0200)]
remove apparently un-used public method in IdManager impl

Change-Id: I352417bbfd5b271abe500526afad3721f4ffcd01
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agomake ManagedTransactionFactoryImpl's internal methods protected 32/75932/2
Michael Vorburger [Mon, 10 Sep 2018 15:21:36 +0000 (17:21 +0200)]
make ManagedTransactionFactoryImpl's internal methods protected

instead of package local, just on the off chance that this currently
entirely package local class will be made public when moving to mdsal.

Change-Id: Ic35f5060dd5339b99fd3ad40e3cce15fe644a191
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoRefer to java.util Future instead of Netty’s 41/75941/1
Stephen Kitt [Mon, 10 Sep 2018 16:06:39 +0000 (18:06 +0200)]
Refer to java.util Future instead of Netty’s

Change-Id: I918759a5807f0a6100a45f9e77d45a222d62f9db
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agominor: move JavaDoc to public RetryingManagedNewTransactionRunner 42/75842/2
Michael Vorburger [Fri, 7 Sep 2018 13:57:21 +0000 (15:57 +0200)]
minor: move JavaDoc to public RetryingManagedNewTransactionRunner

from package-local RetryingManagedNewTransactionRunnerImpl

Change-Id: I1663ab6a0a6ee27edc4c6c07d312bfe8f9c49451
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoRefactor ManagedTransactionFactory to reduce dupes 43/75843/4
Stephen Kitt [Fri, 7 Sep 2018 14:58:51 +0000 (16:58 +0200)]
Refactor ManagedTransactionFactory to reduce dupes

This reworks the factory and runner to have a single method in charge
of each type of behaviour.

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