summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorG. Paul Ziemba <paulz@labn.net>2018-03-21 21:18:25 -0700
committerG. Paul Ziemba <paulz@labn.net>2018-03-21 21:18:25 -0700
commit56c2c080f4be618ae7d78b19a21e97a80f2aa78f (patch)
treea44e619293dd94b0d75df9d3a2a517dfdd657452
parent1b3510a0603deefae2287b63f278b11f4fddf141 (diff)
bgpd: qualify use of BGP_ROUTE_RFP with ENABLE_BGP_VNC
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
-rw-r--r--bgpd/bgp_mplsvpn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_mplsvpn.c b/bgpd/bgp_mplsvpn.c
index 00878e1f46..9f740db325 100644
--- a/bgpd/bgp_mplsvpn.c
+++ b/bgpd/bgp_mplsvpn.c
@@ -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);
if (!info_vpn->net) {
+#if ENABLE_BGP_VNC
/* BGP_ROUTE_RFP routes do not have info_vpn->net set (yet) */
if (info_vpn->type == ZEBRA_ROUTE_BGP &&
info_vpn->sub_type == BGP_ROUTE_RFP) {
return;
}
+#endif
if (debug)
zlog_debug("%s: info_vpn->net unexpectedly NULL, no prefix, bailing",
__func__);