We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db83ad commit 01ec883Copy full SHA for 01ec883
pkg/controllers/routing/network_routes_controller.go
@@ -364,8 +364,9 @@ func (nrc *NetworkRoutingController) injectRoute(path *table.Path) error {
364
dst, _ := netlink.ParseIPNet(nlri.String())
365
var route *netlink.Route
366
367
- // check if the neighbour is in same subnet
368
- if !nrc.nodeSubnet.Contains(nexthop) {
+ // check if the neighbour is in same subnet. If node is not in same subnet and --override-nexthop=false
+ // only then create IPIP tunnels
369
+ if !nrc.nodeSubnet.Contains(nexthop) && !nrc.overrideNextHop {
370
tunnelName := generateTunnelName(nexthop.String())
371
glog.Infof("Found node: " + nexthop.String() + " to be in different subnet.")
372
0 commit comments