]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: perform route selection again when the local path is deleted
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Fri, 12 Oct 2018 15:43:19 +0000 (08:43 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 31 Oct 2018 10:23:32 +0000 (06:23 -0400)
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>
bgpd/bgp_evpn.c

index 574ece8cc53b6ae7d21af6edb6c09b10abe96aab..945094a671eba9ccadd8bb10ca9839d2f7c50be0 100644 (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;