Skip to content

Commit

Permalink
do not remove link local route on ovn0 (#2341)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Feb 15, 2023
1 parent 79584c4 commit f8b97e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/controller_linux.go
Expand Up @@ -205,7 +205,7 @@ func getNicExistRoutes(nic netlink.Link, gateway string) ([]netlink.Route, error

func routeDiff(existRoutes []netlink.Route, cidrs, joinCIDR []string, gateway string, srcIPv4, srcIPv6 net.IP) (toAdd, toDel []netlink.Route) {
for _, route := range existRoutes {
if route.Scope == netlink.SCOPE_LINK {
if route.Scope == netlink.SCOPE_LINK || route.Dst == nil || route.Dst.IP.IsLinkLocalUnicast() {
continue
}

Expand Down

0 comments on commit f8b97e7

Please sign in to comment.