Merge pull request #7726 from chiragshah6/mdev

bgpd: fix evpn route-map vni filter at origin
This commit is contained in:
Patrick Ruddy 2020-12-14 16:28:09 +00:00 committed by GitHub
commit c2dba6e5b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))