From b8b81d492a0a9260604eb8e0a84ee8df834bac63 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 10 Nov 2023 12:17:44 -0500 Subject: [PATCH] POSSIBLE FIX for ecmp problem being seen --- bgpd/bgp_zebra.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 95e80ba1bb91..d2689c947ce8 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -2626,19 +2626,13 @@ static int bgp_zebra_route_notify_owner(int command, struct zclient *zclient, } break; case ZAPI_ROUTE_REMOVED: - /* Route deleted from dataplane, reset the installed flag - * so that route can be reinstalled when client sends - * route add later - */ - UNSET_FLAG(dest->flags, BGP_NODE_FIB_INSTALLED); - if (BGP_DEBUG(zebra, ZEBRA)) - zlog_debug("route %pRN: Removed from Fib", dest); - break; + /* fallthrough */ case ZAPI_ROUTE_FAIL_INSTALL: new_select = NULL; if (BGP_DEBUG(zebra, ZEBRA)) - zlog_debug("route: %pRN Failed to Install into Fib", - dest); + zlog_debug( + "route: %pRN Failed to Install into Fib or removed from FIB", + dest); UNSET_FLAG(dest->flags, BGP_NODE_FIB_INSTALL_PENDING); UNSET_FLAG(dest->flags, BGP_NODE_FIB_INSTALLED); for (pi = bgp_dest_get_bgp_path_info(dest); pi; pi = pi->next) {