OVSDB MD-SAL SB - remove extra disconnected call 29/15129/2
authorEric Multanen <eric.w.multanen@intel.com>
Tue, 10 Feb 2015 22:52:38 +0000 (14:52 -0800)
committerSam Hague <shague@redhat.com>
Wed, 11 Feb 2015 14:02:02 +0000 (14:02 +0000)
When deleting an active ODL connection to an OVS node
via restconf, the disconnect() call in
OvsdbConnectionManager.java called the disconnected()
method which resulted in two transactions to remove the
operational MD-SAL entry for the node.  Which resulted
in WARNings in the log.

Change-Id: I305be04a9217c03d646b103294e7f0d7eabf7df8
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java

index 8180007c777e07fa5a1412bd726451093c7ec99c..3860d4180121822a377b0070ffd9e750562541f9 100644 (file)
@@ -85,7 +85,6 @@ public class OvsdbConnectionManager implements OvsdbConnectionListener, AutoClos
         OvsdbClient client = clients.get(key);
         if (client != null) {
             client.disconnect();
-            disconnected(client);
         }
     }