]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: router mac same as self skip route install 3967/head
authorChirag Shah <chirag@cumulusnetworks.com>
Wed, 13 Mar 2019 01:41:01 +0000 (18:41 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 19 Mar 2019 21:18:33 +0000 (14:18 -0700)
commit47bf0432d3e47807b95531aa64aab0c39ddcacce
tree4c4d62dea77051c3f1f4f0bed425440572ef8d1e
parent548ec776edc4c10518a98f273eded645ab471d27
bgpd: router mac same as self skip route install

When a bgp-peer comes up prior to l3vnis are up in bgpd.
The EVPN routes (type-2/type-5) are learnt via peer.
The routes can have one of interface's MAC in rmac attribute.
The self rmac check would bypass as l3vni is not present.

Once l3vni has come up in bgpd, while installing evpn
routes in vrf table, perform rmac attribute check against self mac.
The routes with rmac of ours will be removed via re-scan
of routes during bgp_mac_rescan_all_evpn_tables when
interface mac is added to bgp.

Ticket:CM-24224
Reviewed By:CCR-8423
Testing Done:

Signed-off-by: Chirag Shah <chirag@cumulunetworks.com>
bgpd/bgp_evpn.c