Fixed the GUI to work with the recent API changes
Change-Id: I981d3cee108625842edd7794e99473acff01fbb7
diff --git a/web/js/topo.js b/web/js/topo.js
index 2648fc4..4c6e517 100644
--- a/web/js/topo.js
+++ b/web/js/topo.js
@@ -24,12 +24,12 @@
links.forEach(function(item) {
var link={};
for (var i = 0; i < sws.length; i++){
- if(sws[i].name == item['src-switch'])
+ if(sws[i].name == item['src']['dpid'])
break;
}
link.source=i;
for (var i = 0; i < sws.length; i++){
- if(sws[i].name == item['dst-switch'])
+ if(sws[i].name == item['dst']['dpid'])
break;
}
link.target=i;