Fix: Update following an add port creates transaction conflict
[genius.git] / itm / itm-impl / src / main / java / org / opendaylight / genius / itm / itmdirecttunnels / listeners / TunnelInventoryStateListener.java
index 31b14e446bca8a635d4354cb7618a7ea8c62cba7..d6c65904e490c1e170122d5004873e00ef449d44 100644 (file)
@@ -187,7 +187,10 @@ public class TunnelInventoryStateListener extends
             return;
         }
 
-        if (fcNodeConnectorNew.getReason() == PortReason.Delete || !directTunnelUtils.isEntityOwner()) {
+        if (fcNodeConnectorNew.getReason() == PortReason.Delete
+                || fcNodeConnectorNew.getReason() == PortReason.Update || !directTunnelUtils.isEntityOwner()) {
+            EVENT_LOGGER.debug("ITM-TunnelInventoryState,UPDATE with reason {}, is entity owner? {}",
+                    fcNodeConnectorNew.getReason(), directTunnelUtils.isEntityOwner());
             return;
         }
         LOG.debug("Received NodeConnector Update Event: {}, {}, {}", key, fcNodeConnectorOld, fcNodeConnectorNew);