Skip to content

Commit

Permalink
When applying the NAT remappings, merge with existing nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Wilkie committed Sep 7, 2015
1 parent b96adf0 commit 444cf5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion probe/endpoint/nat.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ func (n *natmapper) applyNAT(rpt report.Report, scope string) {
return
}

rpt.Endpoint.Nodes[copyEndpointID] = node.Copy()
node = node.Copy()
if existing, ok := rpt.Endpoint.Nodes[copyEndpointID]; ok {
node = node.Merge(existing)
}
rpt.Endpoint.Nodes[copyEndpointID] = node
})
}

0 comments on commit 444cf5b

Please sign in to comment.