Bug 9048: Vpp node reconnect bug in oxygen
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / util / MountedDataBrokerProvider.java
index ffc2fa653cb78e51ad3c9f3dea136db76d740cec..96c3cb169eefe7097c9c6c8091727059f639c5ff 100644 (file)
@@ -9,6 +9,7 @@
 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;
@@ -109,4 +110,8 @@ public class MountedDataBrokerProvider {
         };
         return executorService.submit(task);
     }
+
+    public void deleteDataBrokerForMountPoint(InstanceIdentifier<Node> mountPointIid) {
+        VbdNetconfTransaction.NODE_DATA_BROKER_MAP.remove(mountPointIid);
+    }
 }