Manage race condition when deleting interface
[transportpce.git] / common / src / main / java / org / opendaylight / transportpce / common / openroadminterfaces / OpenRoadmInterfacesImpl221.java
index 3bee34472e76af41ad64b5a14b91dedf6fc4a171..6db81a9c1c97a3b2c306ee5bc6ec0eade44bf147 100755 (executable)
@@ -91,7 +91,7 @@ public class OpenRoadmInterfacesImpl221 {
     }
 
 
-    public void deleteInterface(String nodeId, String interfaceName) throws OpenRoadmInterfaceException {
+    public synchronized void deleteInterface(String nodeId, String interfaceName) throws OpenRoadmInterfaceException {
         LOG.info("deleting interface {} on device221 {}", interfaceName, nodeId);
         Optional<Interface> intf2DeleteOpt;
         try {