don't create *derived* nodes in nodeToIP

IP nodes are children of the "proper" topology nodes, not the other
way round. The former relationship is established in ipToNode.
This commit is contained in:
Matthias Radestock
2017-07-13 17:00:14 +01:00
parent 4a77e9bfac
commit bd9fafff42

View File

@@ -51,7 +51,7 @@ func ConnectionJoin(toIPs func(report.Node) []string, r Renderer) Renderer {
nodeToIP := func(n report.Node, _ report.Networks) report.Nodes {
result := report.Nodes{}
for _, ip := range toIPs(n) {
result[ip] = NewDerivedNode(ip, n).
result[ip] = report.MakeNode(ip).
WithTopology(IP).
WithLatests(map[string]string{
originalNodeID: n.ID,