due to cache mechanism which was only adding Databroker to
cache and not removing it on delete, we hit issues when reconnecting
the same node, because of wrong Databroker.
Change-Id: I5792256ff6d8e5d419360c7498551dc5e6e473a6
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
final CheckedFuture<Void, TransactionCommitFailedException> checkedFuture = wTx.submit();
try {
checkedFuture.checkedGet();
+ mountProvider.deleteDataBrokerForMountPoint(mountPointIid);
return Futures.immediateFuture(cause);
} catch (TransactionCommitFailedException e) {
final String message = String.format("Failed to resolve disconnected node %s", node.getNodeId().getValue());
package org.opendaylight.groupbasedpolicy.renderer.vpp.util;
import java.util.AbstractMap;
+import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
};
return executorService.submit(task);
}
+
+ public void deleteDataBrokerForMountPoint(InstanceIdentifier<Node> mountPointIid) {
+ VbdNetconfTransaction.NODE_DATA_BROKER_MAP.remove(mountPointIid);
+ }
}