Skip to content

Commit

Permalink
zebra: check kernel routes when interface becomes up
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
anlancs committed Dec 17, 2024
1 parent 6cac71a commit 9b5738f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zebra/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b5738f

Please sign in to comment.