summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ruddy <pat@voltanet.io>2020-12-14 16:28:09 +0000
committerGitHub <noreply@github.com>2020-12-14 16:28:09 +0000
commitc2dba6e5b80e63149e5c65609d32cd22d883b23c (patch)
treebb8c8feb3a003b28a1696f3d7a6abba4d9774861
parent219218d96497c36a98b328360a404f739b358039 (diff)
parent5bbd2cc1e62d45a4edbd35995617eca1492ae90d (diff)
Merge pull request #7726 from chiragshah6/mdev
bgpd: fix evpn route-map vni filter at origin
-rw-r--r--bgpd/bgp_evpn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c
index 15d647f4df..b85a5c3636 100644
--- a/bgpd/bgp_evpn.c
+++ b/bgpd/bgp_evpn.c
@@ -743,6 +743,7 @@ static void build_evpn_type5_route_extcomm(struct bgp *bgp_vrf,
} else
ecom = ecommunity_dup(&ecom_encap);
attr->ecommunity = ecom;
+ attr->encap_tunneltype = tnl_type;
/* Add the export RTs for L3VNI/VRF */
vrf_export_rtl = bgp_vrf->vrf_export_rtl;
@@ -799,6 +800,7 @@ static void build_evpn_route_extcomm(struct bgpevpn *vpn, struct attr *attr,
/* Add Encap */
attr->ecommunity = ecommunity_dup(&ecom_encap);
+ attr->encap_tunneltype = tnl_type;
/* Add the export RTs for L2VNI */
for (ALL_LIST_ELEMENTS(vpn->export_rtl, node, nnode, ecom))