From 9b5738f28b1cc7f9e0561fe664634ecbec441aa3 Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Sat, 14 Dec 2024 18:40:45 +0800 Subject: [PATCH] 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 --- zebra/interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zebra/interface.c b/zebra/interface.c index f7fd112cd4ce..1c86a6a5c707 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -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