import java.util.List;
import org.opendaylight.ovsdb.openstack.netvirt.translator.NeutronNetwork;
+import org.opendaylight.ovsdb.openstack.netvirt.translator.NeutronPort;
import org.opendaylight.ovsdb.openstack.netvirt.api.*;
import org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter;
import org.opendaylight.ovsdb.utils.servicehelper.ServiceHelper;
LOG.error("Error fetching Interface Rows for node {}", node, e);
}
}
+ //remove neutronPort from the CleanupCache, if it has the entry.
+ NeutronPort neutronPort = null;
+ String neutronPortId = southbound.getInterfaceExternalIdsValue(ovsdbTerminationPointAugmentation,
+ Constants.EXTERNAL_ID_INTERFACE_ID);
+ if (neutronPortId != null) {
+ LOG.trace("Clean up the NeutronPortCache for {} ", neutronPortId);
+ neutronPort = neutronL3Adapter.getPortFromCleanupCache(neutronPortId);
+ }
+ if (neutronPort != null) {
+ LOG.debug("Clean up the NeutronPortCache ");
+ neutronL3Adapter.removePortFromCleanupCache(neutronPort);
+ } else {
+ LOG.trace("Nothing to Clean up in the NeutronPortCache ");
+ }
+
}
private boolean isInterfaceOfInterest(OvsdbTerminationPointAugmentation terminationPoint, List<String> phyIfName) {