summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_mac.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_mac.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_mac.h')
-rw-r--r--bgpd/bgp_mac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_mac.h b/bgpd/bgp_mac.h
index 1dd987ef1..68449b574 100644
--- a/bgpd/bgp_mac.h
+++ b/bgpd/bgp_mac.h
@@ -37,5 +37,6 @@ void bgp_mac_dump_table(struct vty *vty);
* Function to lookup the prefix and see if we have a matching mac
*/
bool bgp_mac_entry_exists(struct prefix *p);
+bool bgp_mac_exist(struct ethaddr *mac);
#endif