Skip to content
Snippets Groups Projects
Commit 39717829 authored by Shudong Zhou's avatar Shudong Zhou
Browse files

Add message to debug flapping between the same port

parent 49ebd8c0
No related branches found
No related tags found
No related merge requests found
......@@ -1169,6 +1169,18 @@ public class DeviceManagerImpl implements IDeviceManagerService, IOFMessageListe
"Device {}: flapping between {} and {}, block the latter",
new Object[] {device, swPort,
curAttachmentPoint.getSwitchPort()});
// Check if flapping is between the same switch port
if (swPort.getSw().getId() ==
curAttachmentPoint.getSwitchPort().getSw().getId()
&& swPort.getPort() ==
curAttachmentPoint.getSwitchPort().getPort()) {
log.warn("Fake flapping on port " + swPort.getPort() +
" between sw " + swPort.getSw() + " and " +
curAttachmentPoint.getSwitchPort().getSw());
device.removeOldAttachmentPoint(curAttachmentPoint);
removeAttachmentPointFromStorage(device,
curAttachmentPoint);
}
} else {
removeAttachmentPointFromStorage(device, curAttachmentPoint);
evHistAttachmtPt(device.getDataLayerAddressAsLong(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment