diff options
| author | anlan_cs <anlan_cs@126.com> | 2024-12-14 18:40:45 +0800 |
|---|---|---|
| committer | anlan_cs <anlan_cs@126.com> | 2024-12-17 16:14:30 +0800 |
| commit | 4d2ac714f01c5d33cb3fc47f34a0eafba5dfd13e (patch) | |
| tree | a6d1183546409ca1b20a6d64bd3a1ffe9278f1d1 /zebra | |
| parent | 298bc623e78a15ae950bfbac9a103e24ac57e8bd (diff) | |
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>
Diffstat (limited to 'zebra')
| -rw-r--r-- | zebra/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index f7fd112cd4..1c86a6a5c7 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 |
