summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2016-09-05 13:20:41 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2017-02-14 13:58:58 +0100
commitdfa42ea338db2d3bec31d69544fb941bb1822594 (patch)
treedc0c11827e500b11f45144b3b12b4e649189d619 /bgpd/bgp_route.c
parentbgpd: add EVPN RT5 gatewayIp address to bgp_static context (diff)
downloadfrr-dfa42ea338db2d3bec31d69544fb941bb1822594.tar.xz
frr-dfa42ea338db2d3bec31d69544fb941bb1822594.zip
bgpd: handling router mac extended community
For each received routermac extended community, the mac address is copied into routermac extended community context. For each emission, a check is done against routermac extended community, if L2VPN is enabled. If enabled, the extended community is appended. Signed-off-by: Philippe Gubiert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index f92447667..8d513fa1d 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -4019,6 +4019,10 @@ bgp_static_update_safi (struct bgp *bgp, struct prefix *p,
bet.vnid = p->u.prefix_evpn.eth_tag;
bgp_encap_type_vxlan_to_tlv(&bet, &attr);
}
+ if (bgp_static->router_mac)
+ {
+ bgp_add_routermac_ecom (&attr, bgp_static->router_mac);
+ }
}
/* Apply route-map. */
if (bgp_static->rmap.name)