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 cee5bb7 commit 36c3d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,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 36c3d87

Please sign in to comment.