Fix syncronization issue in table 220 flows
[genius.git] / interfacemanager / interfacemanager-impl / src / main / java / org / opendaylight / genius / interfacemanager / listeners / InterfaceInventoryStateListener.java
index 717d80f7acb298304c5ffc0c85c00c33f165f52a..551aeea17ce04ad11fdfe0b99902a08719664bf3 100644 (file)
@@ -427,10 +427,12 @@ public class InterfaceInventoryStateListener
                         }
                         // remove ingress flow only for northbound configured interfaces
                         // skip this check for non-unique ports(Ex: br-int,br-ex)
-                        if (iface != null || !interfaceName.contains(fcNodeConnectorOld.getName())) {
+
+                        if (iface != null) {
                             FlowBasedServicesUtils.removeIngressFlow(interfaceName, dpId, txRunner, futures);
+                            IfmUtil.unbindService(txRunner, coordinator, iface.getName(),
+                                    FlowBasedServicesUtils.buildDefaultServiceId(iface.getName()));
                         }
-
                         // Delete the Vpn Interface from DpnToInterface Op DS.
                         InterfaceManagerCommonUtils.deleteDpnToInterface(dpId, interfaceName, operTx);
                     }