From 068a00f11e17c984088c621a05cf6e7d3c3df2d7 Mon Sep 17 00:00:00 2001 From: Christopher Dziomba Date: Fri, 14 Feb 2025 10:22:54 +0100 Subject: [PATCH] bgpd: Do not withdraw EVPN route to update Previously bgpd needed to send a withdraw followed by an install to update an EVPN prefix route. With refcount tracking in zebra this is no longer needed Signed-off-by: Christopher Dziomba --- bgpd/bgp_route.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 0c3f983f42..4a6ad402db 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -3968,14 +3968,6 @@ static void bgp_process_main_one(struct bgp *bgp, struct bgp_dest *dest, || new_select->sub_type == BGP_ROUTE_AGGREGATE || new_select->sub_type == BGP_ROUTE_IMPORTED)) { - /* if this is an evpn imported type-5 prefix, - * we need to withdraw the route first to clear - * the nh neigh and the RMAC entry. - */ - if (old_select && - is_route_parent_evpn(old_select)) - bgp_zebra_withdraw_actual(dest, old_select, bgp); - bgp_zebra_route_install(dest, new_select, bgp, true, NULL, false); } else { -- 2.39.5