]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_attr_evpn.c
bgpd: parse and comapre rmac attr against self mac
authorChirag Shah <chirag@cumulusnetworks.com>
Wed, 20 Feb 2019 00:02:00 +0000 (16:02 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Mon, 4 Mar 2019 17:56:05 +0000 (09:56 -0800)
commiteee353c5565fff0cd7d3d4656065c5267fabec07
treee77e169b4a22ef4f30fb76a33c0d9ac930733dbb
parent700e9faa28bbdc3460e1d7aa109b6e4acaf347b3
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>
bgpd/bgp_attr.c
bgpd/bgp_attr_evpn.c
bgpd/bgp_attr_evpn.h
bgpd/bgp_mac.c
bgpd/bgp_mac.h