Remove host location when a switch port is removed

Change-Id: I7c729b7d65d3918964dedf3c10f30a278b5e03b6
This commit is contained in:
enen92 2018-07-03 23:16:53 +01:00 committed by Thomas Vachuska
parent 9f5b52bee6
commit 3305efe879

View File

@ -778,7 +778,9 @@ public class HostLocationProvider extends AbstractProvider implements HostProvid
}
break;
case PORT_REMOVED:
// Nothing to do?
if (hostRemovalEnabled) {
processPortDown(new ConnectPoint(device.id(), event.port().number()));
}
break;
default:
break;