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 e8f32ac commit 902b9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/controller_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func getNicExistRoutes(nic netlink.Link, gateway string) ([]netlink.Route, error

func routeDiff(existRoutes []netlink.Route, cidrs []string) (toAdd []string, toDel []string) {
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 902b9a3

Please sign in to comment.