diff options
| author | Chirag Shah <chirag@cumulusnetworks.com> | 2019-02-27 16:36:47 -0800 |
|---|---|---|
| committer | Chirag Shah <chirag@cumulusnetworks.com> | 2019-03-04 09:56:13 -0800 |
| commit | 5c14a191826ea67cdc4499fbc714b76b70cd7998 (patch) | |
| tree | 4b4125c3959190b8e72847824a0e89c51dd22078 | |
| parent | eee353c5565fff0cd7d3d4656065c5267fabec07 (diff) | |
bgpd: router mac same as self supress bgp update
bgp update can contain router mac address same as one of SVIs
mac address, during processing of evpn route in bpg_update()
check for the flag is set and filter the route from installing.
This check is done prior to attribute lookup or storing in database.
Parse check and set is done once during attribute parse
because all the NLRIs containing evpn prefix
(type-2/type-5) will have same exntended community applicable.
Ticket:CM-23674
Reviewed By:CCR-8336
Testing Done:
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 666254a620..a83e4419e4 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -3094,7 +3094,7 @@ int bgp_update(struct peer *peer, struct prefix *p, uint32_t addpath_id, goto filtered; } - if (bgp_mac_entry_exists(p)) { + if (bgp_mac_entry_exists(p) || bgp_mac_exist(&attr->rmac)) { reason = "self mac;"; goto filtered; } |
