GUI2 Bug fixes to Topo view
Change-Id: Ib40279fec94ffecb1d6c771aa376ad1cded03c02
diff --git a/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/traffic.service.ts b/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/traffic.service.ts
index 9aff0c7..6864414 100644
--- a/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/traffic.service.ts
+++ b/web/gui2-topo-lib/projects/gui2-topo-lib/src/lib/traffic.service.ts
@@ -54,7 +54,7 @@
init(force: ForceSvgComponent) {
this.wss.bindHandlers(new Map<string, (data) => void>([
['topo2Highlights', (data) => {
- force.handleHighlights(data.devices, data.hosts, data.links);
+ force.handleHighlights(data.devices, data.hosts, data.links, 5000);
}
]
]));
@@ -75,6 +75,7 @@
destroy() {
this.wss.sendEvent('topo2CancelTraffic', {});
this.wss.unbindHandlers(this.handlers);
+ this.handlers.pop();
this.log.debug('Traffic monitoring canceled');
}