forked from Mirror/frr
bgpd: qualify use of BGP_ROUTE_RFP with ENABLE_BGP_VNC
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
This commit is contained in:
parent
1b3510a060
commit
56c2c080f4
|
@ -968,12 +968,14 @@ void vpn_leak_to_vrf_withdraw(struct bgp *bgp_vpn, /* from */
|
||||||
zlog_debug("%s: start (info_vpn=%p)", __func__, info_vpn);
|
zlog_debug("%s: start (info_vpn=%p)", __func__, info_vpn);
|
||||||
|
|
||||||
if (!info_vpn->net) {
|
if (!info_vpn->net) {
|
||||||
|
#if ENABLE_BGP_VNC
|
||||||
/* BGP_ROUTE_RFP routes do not have info_vpn->net set (yet) */
|
/* BGP_ROUTE_RFP routes do not have info_vpn->net set (yet) */
|
||||||
if (info_vpn->type == ZEBRA_ROUTE_BGP &&
|
if (info_vpn->type == ZEBRA_ROUTE_BGP &&
|
||||||
info_vpn->sub_type == BGP_ROUTE_RFP) {
|
info_vpn->sub_type == BGP_ROUTE_RFP) {
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if (debug)
|
if (debug)
|
||||||
zlog_debug("%s: info_vpn->net unexpectedly NULL, no prefix, bailing",
|
zlog_debug("%s: info_vpn->net unexpectedly NULL, no prefix, bailing",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
Loading…
Reference in a new issue