summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_attr_evpn.h
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2019-02-20 01:02:00 +0100
committerChirag Shah <chirag@cumulusnetworks.com>2019-03-04 18:56:05 +0100
commiteee353c5565fff0cd7d3d4656065c5267fabec07 (patch)
treee77e169b4a22ef4f30fb76a33c0d9ac930733dbb /bgpd/bgp_attr_evpn.h
parentMerge pull request #3894 from donaldsharp/install_replace (diff)
downloadfrr-eee353c5565fff0cd7d3d4656065c5267fabec07.tar.xz
frr-eee353c5565fff0cd7d3d4656065c5267fabec07.zip
bgpd: parse and comapre rmac attr against self mac
Any evpn bgp update message comes with router mac extended community, which can potentially contain the madd adddress same as any of the local SVIs (L3VNI) MAC address. Set route mac exist and during route processing in bgp_update() filter the route. Ticket:CM-23674 Reviewed By:CCR-8336 Testing Done: Configure L3vni mac on TORS1 which is similar to TORC11 L3vni MAC. When TORC11 received the EVPN update with Router mac extended community, this check rejected the BGP update message. Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_attr_evpn.h')
-rw-r--r--bgpd/bgp_attr_evpn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr_evpn.h b/bgpd/bgp_attr_evpn.h
index b03670215..5b0ce1da2 100644
--- a/bgpd/bgp_attr_evpn.h
+++ b/bgpd/bgp_attr_evpn.h
@@ -60,7 +60,7 @@ extern void bgp_add_routermac_ecom(struct attr *attr,
struct ethaddr *routermac);
extern int bgp_build_evpn_prefix(int type, uint32_t eth_tag,
struct prefix *dst);
-extern void bgp_attr_rmac(struct attr *attr, struct ethaddr *rmac);
+extern bool bgp_attr_rmac(struct attr *attr, struct ethaddr *rmac);
extern uint32_t bgp_attr_mac_mobility_seqnum(struct attr *attr,
uint8_t *sticky);
extern uint8_t bgp_attr_default_gw(struct attr *attr);