diff options
| author | vivek <vivek@cumulusnetworks.com> | 2019-02-28 11:18:10 +0000 |
|---|---|---|
| committer | vivek <vivek@cumulusnetworks.com> | 2019-02-28 11:18:10 +0000 |
| commit | abf386be5edbd3ca2ce13a2f275edc1625f0993a (patch) | |
| tree | 6778189d0634bda729832f5369cc254f7d2993fa | |
| parent | 0a2f9ac170f19a8739146838120a1518cd370029 (diff) | |
bgpd: Remove route sub-type checks in route-leak withdraw
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>
| -rw-r--r-- | bgpd/bgp_mplsvpn.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c index 1e2706f152..39b0e2f1c8 100644 --- a/bgpd/bgp_mplsvpn.c +++ b/bgpd/bgp_mplsvpn.c @@ -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; |
