From c27ee4c4e46b5d3a089d622483e7aa7259a8f428 Mon Sep 17 00:00:00 2001 From: vivek Date: Wed, 27 Feb 2019 08:19:06 +0000 Subject: [PATCH] bgpd: Fix EVPN advertise route-map application When a IPv4 or IPv6 route that was formerly allowed by the route-map to be injected into EVPN gets an updated set of attributes that now causes it to be filtered, the route needs to be pulled out of EVPN. Signed-off-by: Vivek Venkatraman Reviewed-by: Anuradha Karuppiah Reviewed-by: Donald Sharp --- bgpd/bgp_route.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index ad983da498..7ddc10ae01 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -2490,6 +2490,9 @@ static void bgp_process_main_one(struct bgp *bgp, struct bgp_node *rn, bgp_evpn_advertise_type5_route( bgp, &rn->p, new_select->attr, afi, safi); + else + bgp_evpn_withdraw_type5_route( + bgp, &rn->p, afi, safi); } else { bgp_evpn_advertise_type5_route(bgp, &rn->p, -- 2.39.5