commit | 3305efe879a4926de1297f511db4caa72f460286 | [log] [tgz] |
---|---|---|
author | enen92 <miguel.freitas@ist.utl.pt> | Tue Jul 03 23:16:53 2018 +0100 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Jul 10 22:21:10 2018 +0000 |
tree | 9046092e25c1f4b527d107a4af64a06cc8d72218 | |
parent | 9f5b52bee6ce456fb688f8ebee6471ab284564e6 [diff] |
Remove host location when a switch port is removed Change-Id: I7c729b7d65d3918964dedf3c10f30a278b5e03b6
diff --git a/providers/host/src/main/java/org/onosproject/provider/host/impl/HostLocationProvider.java b/providers/host/src/main/java/org/onosproject/provider/host/impl/HostLocationProvider.java index edc5ef5..768c4fa 100644 --- a/providers/host/src/main/java/org/onosproject/provider/host/impl/HostLocationProvider.java +++ b/providers/host/src/main/java/org/onosproject/provider/host/impl/HostLocationProvider.java
@@ -778,7 +778,9 @@ } break; case PORT_REMOVED: - // Nothing to do? + if (hostRemovalEnabled) { + processPortDown(new ConnectPoint(device.id(), event.port().number())); + } break; default: break;