GUI- topo : added warning logs showing a race condition
- setting up the topology elements and trying to highlight them
because we are trying to monitor an intent.
Change-Id: Ic7d7be62c085c186a22ba91942970eccb5711fe4
diff --git a/web/gui/src/main/webapp/app/view/topo/topoOverlay.js b/web/gui/src/main/webapp/app/view/topo/topoOverlay.js
index fb15e94..5b07939 100644
--- a/web/gui/src/main/webapp/app/view/topo/topoOverlay.js
+++ b/web/gui/src/main/webapp/app/view/topo/topoOverlay.js
@@ -339,6 +339,8 @@
api.unsupNode(hdata.id, less);
}
// TODO: further highlighting?
+ } else {
+ $log.warn('HILITE: no host element:', host.id);
}
});
@@ -352,6 +354,8 @@
api.unsupNode(ddata.id, less);
}
// TODO: further highlighting?
+ } else {
+ $log.warn('HILITE: no device element:', device.id);
}
});
@@ -382,6 +386,8 @@
}
ldata.el.classed(portcls, true);
}
+ } else {
+ $log.warn('HILITE: no link element:', link.id);
}
});