first cut at edges. not quite working yet.
diff --git a/web/ons-demo/js/model.js b/web/ons-demo/js/model.js
index 3a19190..e16565c 100644
--- a/web/ons-demo/js/model.js
+++ b/web/ons-demo/js/model.js
@@ -5,7 +5,9 @@
edgeSwitches: [],
aggregationSwitches: [],
coreSwitches: [],
- flows: results.flows
+ flows: results.flows,
+ controllers: results.controllers,
+ links: results.links
}
@@ -21,6 +23,8 @@
});
results.switches.forEach(function (s) {
+ s.controller = results.mapping[s.dpid][0].controllerId
+
if (coreSwitchDPIDs[s.dpid]) {
model.coreSwitches.push(s);
} else if (aggregationSwitchDPIDs[s.dpid]) {