From: Anuradha Karuppiah Date: Fri, 12 Oct 2018 15:43:19 +0000 (-0700) Subject: bgpd: perform route selection again when the local path is deleted X-Git-Tag: frr-7.1-dev~218^2~5 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3e3aa88e5fbd6a19e37b7c211013b8dc73d61ef7;p=matthieu%2Ffrr.git bgpd: perform route selection again when the local path is deleted This is needed to install the remote dst when a more preferred local path is removed. Ticket: CM-22685 Reviewed By: CCR-7936 Signed-off-by: Anuradha Karuppiah --- diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 574ece8cc5..945094a671 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -1921,8 +1921,10 @@ static int delete_evpn_route(struct bgp *bgp, struct bgpevpn *vpn, /* Delete route entry in the VNI route table. This can just be removed. */ delete_evpn_route_entry(bgp, afi, safi, rn, &pi); - if (pi) + if (pi) { bgp_path_info_reap(rn, pi); + evpn_route_select_install(bgp, vpn, rn); + } bgp_unlock_node(rn); return 0;