Bug 5199 : Fixed unbind & other issues in intrface
[vpnservice.git] / interfacemgr / interfacemgr-impl / src / main / java / org / opendaylight / vpnservice / interfacemgr / renderer / ovs / confighelpers / OvsInterfaceConfigRemoveHelper.java
index 64e7957139d3001f3e1a5932f3408623b3bf5ec0..fe92920478682621050574990b936134d2af373e 100644 (file)
@@ -92,6 +92,7 @@ public class OvsInterfaceConfigRemoveHelper {
         NodeConnectorId ncId = new NodeConnectorId(ifState.getLowerLayerIf().get(0));
         BigInteger dpId = new BigInteger(IfmUtil.getDpnFromNodeConnectorId(ncId));
         FlowBasedServicesUtils.removeIngressFlow(interfaceOld.getName(), dpId, transaction);
+        InterfaceManagerCommonUtils.deleteParentInterfaceEntry(transaction, parentRefs.getParentInterface());
         // For Vlan-Trunk Interface, remove the trunk-member operstates as well...
 
         InterfaceParentEntryKey interfaceParentEntryKey = new InterfaceParentEntryKey(interfaceOld.getName());