From 5c14a191826ea67cdc4499fbc714b76b70cd7998 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Wed, 27 Feb 2019 16:36:47 -0800 Subject: [PATCH] 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 --- bgpd/bgp_route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5