ONOS-2186 - GUI Topo Overlay - (WIP)
- Showing traffic on selected intent now subdues other elements.
- Augmented Highlights to allow for retrieval by ID.
- Reparented HostHighlight and DeviceHighlight to NodeHighlight.
- Added a few extra highlight unit tests.
Change-Id: I0de1cefdcfda58a6fec6e90be5fe898d35aa1b37
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 555fa50..dbe8f9f 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoForce.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoForce.js
@@ -242,6 +242,10 @@
// ========================
+ function nodeById(id) {
+ return lu[id];
+ }
+
function makeNodeKey(node1, node2) {
return node1 + '-' + node2;
}
@@ -515,10 +519,10 @@
});
}
- function unsuppressLink(id, less) {
+ function unsuppressLink(key, less) {
var cls = supAmt(less);
link.each(function (n) {
- if (n.id === id) {
+ if (n.key === key) {
n.el.classed(cls, false);
}
});
@@ -922,6 +926,7 @@
clearLinkTrafficStyle: clearLinkTrafficStyle,
removeLinkLabels: removeLinkLabels,
findLinkById: tms.findLinkById,
+ findNodeById: nodeById,
updateLinks: updateLinks,
updateNodes: updateNodes,
supLayers: suppressLayers,