Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better detection of endpoint children, to avoid including MapX2IP results #1248

Merged
merged 1 commit into from
Apr 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions render/detailed/connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func outgoingConnectionsTable(topologyID string, n report.Node, ns report.Nodes)
func endpointChildrenOf(n report.Node) []report.Node {
result := []report.Node{}
n.Children.ForEach(func(child report.Node) {
if _, _, _, ok := report.ParseEndpointNodeID(child.ID); ok {
if child.Topology == report.Endpoint {
result = append(result, child)
}
})
Expand All @@ -147,7 +147,7 @@ func endpointChildrenOf(n report.Node) []report.Node {
func endpointChildIDsOf(n report.Node) report.IDList {
result := report.MakeIDList()
n.Children.ForEach(func(child report.Node) {
if _, _, _, ok := report.ParseEndpointNodeID(child.ID); ok {
if child.Topology == report.Endpoint {
result = result.Add(child.ID)
}
})
Expand Down