BUG 5885 - OVSDB plugin failure to update passive ovsdb nodes 48/39548/3
authorAnil Vishnoi <vishnoianil@gmail.com>
Fri, 27 May 2016 23:28:07 +0000 (16:28 -0700)
committerAnil Vishnoi <vishnoianil@gmail.com>
Sat, 28 May 2016 07:16:44 +0000 (07:16 +0000)
commit4fcb09fe739f7445f9b299b7737a8b56cef30616
tree81803fb20593c3cf8f65fe124f4cc90e7ca0ccd2
parentd060fbd46f9afe8acd43dada3b5f910204dff4c4
BUG 5885 - OVSDB plugin failure to update passive ovsdb nodes

Updates the ovsdb southbound so that configuration to ovsdb
nodes which have connected to the plugin passively can be
updated (e.g. such as qos or queue entries) without requiring
connection-info to be supplied in the configuration.
Similar to what already works when adding bridges or
termination points to passively connected ovsdb nodes.

The onDataChanged() method executes the following
sequence of operations on changes to the Ovsdb data tree:
- connect(changes)
- updateConnections(changes)
- updateData(changes)
- disconnect(changes)

When an OVSDB node has connected passively, or more
generally, when the changes to the OVSDB node do not
include 'connection-info', it is not necessary to
attempt to execute connection related operations for
the specified host.  This patch  checks for the absence
of the connection-info and skips trying to connect or
update a connection in the connect() and updateConnections()
methods.

v2 - add in data tree change patch from master branch
     now that data tree change listener is merged.

Change-Id: I8238711076a74cfa06422e5cacb127ba95fd23b7
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbDataTreeChangeListener.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/OvsdbNodeUpdateCommand.java