Skip to content

Commit 902b9a3

Browse files
committed
do not remove link local route on ovn0 (#2341)
1 parent e8f32ac commit 902b9a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/daemon/controller_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func getNicExistRoutes(nic netlink.Link, gateway string) ([]netlink.Route, error
218218

219219
func routeDiff(existRoutes []netlink.Route, cidrs []string) (toAdd []string, toDel []string) {
220220
for _, route := range existRoutes {
221-
if route.Scope == netlink.SCOPE_LINK {
221+
if route.Scope == netlink.SCOPE_LINK || route.Dst == nil || route.Dst.IP.IsLinkLocalUnicast() {
222222
continue
223223
}
224224

0 commit comments

Comments
 (0)