Don't ever select the flannel bridge or cni bridge

This commit is contained in:
Darren Shepherd 2019-02-07 20:54:50 -07:00 committed by Rafael Breno
parent 971ee49018
commit 820493d82a

View File

@ -434,6 +434,9 @@ func chooseHostInterfaceFromRoute(routes []Route, nw networkInterfacer, addressF
if route.Family != family {
continue
}
if strings.HasPrefix(route.Interface, "flannel") || strings.HasPrefix(route.Interface, "cni") {
continue
}
klog.V(4).Infof("Default route transits interface %q", route.Interface)
finalIP, err := getIPFromInterface(route.Interface, family, nw)
if err != nil {