From d528c02a204086da0d542d5655b8724de681a65c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 7 Jun 2024 13:50:07 -0400 Subject: zebra: Handle kernel routes appropriately Current code intentionally ignores kernel routes. Modify zebra to allow these routes to be read in on linux. Also modify zebra to look to see if a route should be treated as a connected and mark it as such. Additionally this should properly handle some of the issues being seen with NOPREFIXROUTE. Signed-off-by: Donald Sharp --- zebra/interface.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zebra/interface.c') diff --git a/zebra/interface.c b/zebra/interface.c index 03b710e1a0..d146004781 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1058,6 +1058,8 @@ void if_down(struct interface *ifp) /* Delete all neighbor addresses learnt through IPv6 RA */ if_down_del_nbr_connected(ifp); + + rib_update_handle_vrf_all(RIB_UPDATE_INTERFACE_DOWN, ZEBRA_ROUTE_KERNEL); } void if_refresh(struct interface *ifp) -- cgit v1.2.3