Fixed issue with 'removeHost' event handling in the
topo view (hopefully), to handle multi-homed hosts.
Change-Id: I60ba0c2df4d56a594e08085596a555436f14db7e
diff --git a/web/gui/src/main/webapp/app/view/topo/topoForce.js b/web/gui/src/main/webapp/app/view/topo/topoForce.js
index a629dfc..6f77bed 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoForce.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoForce.js
@@ -397,12 +397,8 @@
}
function removeHostElement(d, upd) {
- // first, remove associated hostLink...
- removeLinkElement(d.linkData);
-
- // remove hostLink bindings
- delete lu[d.ingress];
- delete lu[d.egress];
+ // first, remove associated hostLink(s)...
+ removeAllLinkElements(d.links);
// remove from lookup cache
delete lu[d.id];