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) {
return;
}
SouthboundEvent ev = (SouthboundEvent) abstractEvent;
- LOG.trace("processEvent: {}", ev);
+ LOG.trace("processEvent ({}): {}", ev, ev.getTransactionId());
switch (ev.getType()) {
case NODE:
processOvsdbNodeEvent(ev);
LOG.warn("Unable to process type {} action {} for node {}", ev.getType(), ev.getAction(), ev.getNode());
break;
}
+ LOG.trace("processEvent exit ({}): {}", ev, ev.getTransactionId());
}
private void processOvsdbNodeEvent(SouthboundEvent ev) {