BUG 8280: TerminationPoint reconciliation fails 01/55901/1
authorVishal Thapar <vishal.thapar@ericsson.com>
Mon, 24 Apr 2017 12:25:39 +0000 (17:55 +0530)
committerVishal Thapar <vishal.thapar@ericsson.com>
Mon, 24 Apr 2017 12:25:39 +0000 (17:55 +0530)
commit16b77b93af16583c819259a82438a6cd7257ce10
treeb985a968b26744b712ea43f3cf32af045651c580
parent3f5447275daba8288347865d130af62761087946
BUG 8280: TerminationPoint reconciliation fails

TerminationPointConfigReconciliationTask is incorrectly setting up
BridgeOperationalState to be empty. This ends up triggering reconciliation
even for ports that are already present in switch.

When we try to add ports that are already present we get constraint
violation in transaction and as per OVSDB RFC it causes all operations in
that transaction to abort. This means that the ports that actually needede
to be reconciled never get added back.

Change-Id: I48819f46b6419c15a8ba85541b06551b950a3055
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/BridgeOperationalState.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/reconciliation/configuration/TerminationPointConfigReconciliationTask.java