bug 6579 handling back to back tx updates 41/48741/5
authorK.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
Mon, 28 Nov 2016 14:14:50 +0000 (19:44 +0530)
committersuneel verma <k.v.suneelu.verma@ericsson.com>
Mon, 12 Dec 2016 08:37:39 +0000 (08:37 +0000)
commitdb5b2546600affca74281ae02613db72f993701a
tree102f1706a503f43118c2afff926d965f2a908b57
parent480b80d0b790672a95f07da1caedc9f2fa38a566
bug 6579 handling back to back tx updates

Added the following utility methods in operational state and device info
isKeyPartOfCurrentTx indicates this key is also part of the same tx
isKeyInTransit indicates this key is part of prev tx to device

Before inserting any key into any table
check if this key or its dependent keys are part of prev transaction

Change-Id: I87699c244b7feee27d2c95178dfe5727f4148cdb
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionInstance.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepConnectionManager.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepDeviceInfo.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepSouthboundUtil.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/HwvtepOperationalState.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/DataChangeListenerTestBase.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepOperationalStateTest.java [new file with mode: 0644]