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 <anuradhak@cumulusnetworks.com>
This commit is contained in:
Anuradha Karuppiah 2018-10-12 08:43:19 -07:00 committed by Donald Sharp
parent e98e4b8899
commit 3e3aa88e5f

View File

@ -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;