bug 8674 fix port vlan bindings reconciliation 87/58787/5
authorK.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
Tue, 13 Jun 2017 06:58:44 +0000 (12:28 +0530)
committerK.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
Fri, 30 Jun 2017 07:00:00 +0000 (12:30 +0530)
commiteef681f66c5ce7283dcecb209ec6787d80c2f96c
tree33de28b7173a4798fe1b49fea9a9af0c336c8a81
parent2905d2b249f5142e269cd7f88c33e070da63f831
bug 8674 fix port vlan bindings reconciliation

1. When controller is restarted after clearing the config by
removing journals and snapshots, it does not have any config data
for ports.

Do not fire delete of port during reconciliation.
Fire port update to clear the vlan bindings.
Port addition/deletion is always managed by southbound not by controller.
Only port update is managed by controller.

2. Sometimes logical switch does not get deleted from device due to some
local ucast/mcast references to it. Cleanup the references also while
deleting the logical switch. It can still fail if vlan binding reference
is not removed.

3. Make sure that mcast and ucast programming during reconciliation
uses proper physical locators.

Change-Id: I81f095a6e030e05d6702997600ced012d4666c36
Signed-off-by: K.V Suneelu Verma <k.v.suneelu.verma@ericsson.com>
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/reconciliation/configuration/HwvtepReconciliationTask.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/HwvtepOperationalState.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/LogicalSwitchRemoveCommand.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/PhysicalPortRemoveCommand.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/TransactUtils.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/main/java/org/opendaylight/ovsdb/hwvtepsouthbound/transact/UcastMacsRemoteUpdateCommand.java
hwvtepsouthbound/hwvtepsouthbound-impl/src/test/java/org/opendaylight/ovsdb/hwvtepsouthbound/HwvtepDataChangeListenerTest.java