Skip to content

Commit 9b5738f

Browse files
committed
zebra: check kernel routes when interface becomes up
Just like `link down`, check all kernel routes when interface become up. And, they maybe will be selected as the best one by zebra. Signed-off-by: anlan_cs <[email protected]>
1 parent 6cac71a commit 9b5738f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zebra/interface.c

+2
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ void if_up(struct interface *ifp, bool install_connected)
972972
event_ignore_late_timer(zif->speed_update);
973973

974974
if_addr_wakeup(ifp);
975+
976+
rib_update_handle_vrf_all(RIB_UPDATE_KERNEL, ZEBRA_ROUTE_KERNEL);
975977
}
976978

977979
/* Interface goes down. We have to manage different behavior of based

0 commit comments

Comments
 (0)