From 2c9ba7c7cdbabedb618c4f6c5945a74dac81bd93 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Fri, 20 Jan 2017 17:13:24 +0100 Subject: [PATCH] bgpd: add support for epvn into afindex afindex needs knowledge of l2vpn afi parameter, as well as evpn safi parameter. Signed-off-by: Vivek Venkatraman --- bgpd/bgpd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h index 2eef04e1d1..09c64aa331 100644 --- a/bgpd/bgpd.h +++ b/bgpd/bgpd.h @@ -73,6 +73,7 @@ enum bgp_af_index BGP_AF_IPV6_VPN, BGP_AF_IPV4_ENCAP, BGP_AF_IPV6_ENCAP, + BGP_AF_L2VPN_EVPN, BGP_AF_MAX }; @@ -1414,6 +1415,16 @@ afindex (afi_t afi, safi_t safi) break; } break; + case AFI_L2VPN: + switch (safi) + { + case SAFI_EVPN: + return BGP_AF_L2VPN_EVPN; + break; + default: + return BGP_AF_MAX; + break; + } default: return BGP_AF_MAX; break; -- 2.39.5