]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Remove route sub-type checks in route-leak withdraw
authorvivek <vivek@cumulusnetworks.com>
Thu, 28 Feb 2019 11:18:10 +0000 (11:18 +0000)
committervivek <vivek@cumulusnetworks.com>
Thu, 28 Feb 2019 11:18:10 +0000 (11:18 +0000)
The check on which routes are exportable is a superset, so remove the
route sub-type checks. Also, this change is needed to handle EVPN-imported
leaked routes correctly.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
bgpd/bgp_mplsvpn.c

index 1e2706f15204c4f112815b58d443079d36651a7f..39b0e2f1c8dfae508163492cdcfbfe5e3cb7dd52 100644 (file)
@@ -901,15 +901,6 @@ void vpn_leak_from_vrf_withdraw(struct bgp *bgp_vpn,               /* to */
                        path_vrf->type, path_vrf->sub_type);
        }
 
-       if (path_vrf->sub_type != BGP_ROUTE_NORMAL
-           && path_vrf->sub_type != BGP_ROUTE_STATIC
-           && path_vrf->sub_type != BGP_ROUTE_REDISTRIBUTE) {
-
-               if (debug)
-                       zlog_debug("%s: wrong sub_type %d", __func__,
-                                  path_vrf->sub_type);
-               return;
-       }
        if (!bgp_vpn)
                return;