Topo2: Adding hosts and regions to the update model
Change-Id: I0473e2cb06803bbd3245db329db60f5fbcf13ea4
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Layout.js b/web/gui/src/main/webapp/app/view/topo2/topo2Layout.js
index 156d67a..fe30587 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2Layout.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2Layout.js
@@ -136,8 +136,6 @@
return this.settings[settingName][nodeType] || this.settings[settingName]._def_;
},
createForceLayout: function () {
- var regionLinks = t2rs.regionLinks(),
- regionNodes = t2rs.regionNodes();
this.force = d3.layout.force()
.size(t2vs.getDimensions())
@@ -146,17 +144,11 @@
.charge(this.settingOrDefault.bind(this, 'charge'))
.linkDistance(this.settingOrDefault.bind(this, 'linkDistance'))
.linkStrength(this.settingOrDefault.bind(this, 'linkStrength'))
- .nodes(regionNodes)
- .links(regionLinks)
+ .nodes([])
+ .links([])
.on("tick", this.tick.bind(this))
.start();
- this.link = this.elements.linkG.selectAll('.link')
- .data(regionLinks, function (d) { return d.get('key'); });
-
- this.node = this.elements.nodeG.selectAll('.node')
- .data(regionNodes, function (d) { return d.get('id'); });
-
this.drag = sus.createDragBehavior(this.force,
function () {}, // click event is no longer handled in the drag service
this.atDragEnd,