Use server side resolving only, add proper support for nexthop resolving (#81)
* Revert "Use resolved data if gateway was already resolved (#78)" This reverts commit44bb8e9d3d
. * Revert "proportions: lookup gateway name" This reverts commit94662cb3dc
. * Revert "infobox/node: change mac used to lookup nodes" This reverts commit2ca2604403
. * Revert "infobox/node: resolve nexthop and gateway from data" This reverts commit9e7049c9e3
. * Resolve nexthop full chain if possible requires hopglass/hopglass-server#79 * Correctly handle sidecase when nodes on route report inconsistent gateway
This commit is contained in:
parent
44bb8e9d3d
commit
5cb88e8d06
4 changed files with 28 additions and 51 deletions
|
@ -2,7 +2,6 @@ define(["infobox/link", "infobox/node", "infobox/location"], function (Link, Nod
|
|||
return function (config, sidebar, router) {
|
||||
var self = this
|
||||
var el
|
||||
var nodeDict
|
||||
|
||||
function destroy() {
|
||||
if (el && el.parentNode) {
|
||||
|
@ -34,7 +33,7 @@ define(["infobox/link", "infobox/node", "infobox/location"], function (Link, Nod
|
|||
|
||||
self.gotoNode = function (d) {
|
||||
create()
|
||||
new Node(config, el, router, d, nodeDict)
|
||||
new Node(config, el, router, d)
|
||||
}
|
||||
|
||||
self.gotoLink = function (d) {
|
||||
|
@ -47,14 +46,6 @@ define(["infobox/link", "infobox/node", "infobox/location"], function (Link, Nod
|
|||
new Location(config, el, router, d)
|
||||
}
|
||||
|
||||
self.setData = function (d) {
|
||||
nodeDict = {}
|
||||
d.graph.nodes.forEach(function (d) {
|
||||
nodeDict[d.id.substr(0, 8)] = d
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
return self
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue