Skip to content

Commit

Permalink
feat: Disable binding overlay tunnels to specific device
Browse files Browse the repository at this point in the history
  • Loading branch information
nextsux authored and aauren committed Oct 30, 2023
1 parent f41defc commit 66890d5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/controllers/routing/network_routes_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -854,11 +854,6 @@ func (nrc *NetworkRoutingController) setupOverlayTunnel(tunnelName string, nextH
"setup", nrc.overlayEncap)
}

// need to skip binding device if nrc.nodeInterface is loopback, otherwise packets never leave
// from egress interface to the tunnel peer.
if nrc.nodeInterface != "lo" {
cmdArgs = append(cmdArgs, []string{"dev", nrc.nodeInterface}...)
}
klog.V(2).Infof("Executing the following command to create tunnel: ip %s", cmdArgs)
out, err := exec.Command("ip", cmdArgs...).CombinedOutput()
if err != nil {
Expand Down

0 comments on commit 66890d5

Please sign in to comment.