Each time a port add received from openflow, an update follows. ITM
does state change two times for add and update. This creates conflicting
transactions.
Change-Id: I11b6c5f443d1c61b79b942e9dbfae58d1aef61f1
Signed-off-by: Apurba Mukherjee <apurba.mukherjee@ericsson.com>
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);