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 <anlan_cs@126.com>
This commit is contained in:
anlan_cs 2024-12-14 18:40:45 +08:00
parent 298bc623e7
commit 4d2ac714f0

View File

@ -972,6 +972,8 @@ void if_up(struct interface *ifp, bool install_connected)
event_ignore_late_timer(zif->speed_update);
if_addr_wakeup(ifp);
rib_update_handle_vrf_all(RIB_UPDATE_KERNEL, ZEBRA_ROUTE_KERNEL);
}
/* Interface goes down. We have to manage different behavior of based