Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit aa5916d

Browse files
authored
return routes for unknown next hops
1 parent a81422a commit aa5916d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

pkg/cloudprovider/providers/openstack/openstack_routes.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,9 @@ func (r *Routes) ListRoutes(clusterName string) ([]*cloudprovider.Route, error)
7777

7878
var routes []*cloudprovider.Route
7979
for _, item := range router.Routes {
80-
nodeName, ok := nodeNamesByAddr[item.NextHop]
81-
if !ok {
82-
// Not one of our routes?
83-
glog.V(4).Infof("Skipping route with unknown nexthop %v", item.NextHop)
84-
continue
85-
}
8680
route := cloudprovider.Route{
8781
Name: item.DestinationCIDR,
88-
TargetNode: nodeName,
82+
TargetNode: nodeNamesByAddr[item.NextHop], //empty if NextHop is unknown
8983
DestinationCIDR: item.DestinationCIDR,
9084
}
9185
routes = append(routes, &route)

0 commit comments

Comments
 (0)