mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 19:05:44 +00:00
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>
This commit is contained in:
parent
0a2f9ac170
commit
abf386be5e
@ -901,15 +901,6 @@ void vpn_leak_from_vrf_withdraw(struct bgp *bgp_vpn, /* to */
|
|||||||
path_vrf->type, path_vrf->sub_type);
|
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)
|
if (!bgp_vpn)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user