Skip to content

Commit

Permalink
Avoid stranded internet nodes in the containers view.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie authored and paulbellamy committed Nov 16, 2015
1 parent d57d4aa commit 7aa2d6e
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions render/topologies.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,19 @@ var ContainerRenderer = MakeReduce(
// We need to be careful to ensure we only include each edge once. Edges brought in
// by the above renders will have a pid, so its enough to filter out any nodes with
// pids.
Map{
FilterUnconnected(Map{
MapFunc: MapIP2Container,
Renderer: FilterUnconnected(
MakeReduce(
Map{
MapFunc: MapContainer2IP,
Renderer: SelectContainer,
},
Map{
MapFunc: MapEndpoint2IP,
Renderer: SelectEndpoint,
},
),
Renderer: MakeReduce(
Map{
MapFunc: MapContainer2IP,
Renderer: SelectContainer,
},
Map{
MapFunc: MapEndpoint2IP,
Renderer: SelectEndpoint,
},
),
},
}),
)

type containerWithImageNameRenderer struct {
Expand Down

0 comments on commit 7aa2d6e

Please sign in to comment.