summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2017-06-14 04:12:10 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 16:09:37 +0200
commitba0fcaf6df38668b2b77d22a5780d2c631405b81 (patch)
tree313182db34977736188ec9b050426413ebc943c4
parentbgpd: Update EVPN operational commands (diff)
downloadfrr-ba0fcaf6df38668b2b77d22a5780d2c631405b81.tar.xz
frr-ba0fcaf6df38668b2b77d22a5780d2c631405b81.zip
bgpd: Fix incorrect AFI reference
Fixes: "bgpd: Fixes related to use of L2VPN/EVPN" Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
-rw-r--r--bgpd/bgpd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index 208a4e4b4..7992075af 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1488,7 +1488,8 @@ static inline int peer_group_af_configured(struct peer_group *group)
|| peer->afc[AFI_IP6][SAFI_MULTICAST]
|| peer->afc[AFI_IP6][SAFI_LABELED_UNICAST]
|| peer->afc[AFI_IP6][SAFI_MPLS_VPN]
- || peer->afc[AFI_IP6][SAFI_ENCAP] || peer->afc[AFI_IP6][SAFI_EVPN])
+ || peer->afc[AFI_IP6][SAFI_ENCAP]
+ || peer->afc[AFI_L2VPN][SAFI_EVPN])
return 1;
return 0;
}