]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Handle possible non-selection of local route 5432/head
authorChirag Shah <chirag@cumulusnetworks.com>
Mon, 25 Nov 2019 22:34:29 +0000 (14:34 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Tue, 26 Nov 2019 05:41:14 +0000 (21:41 -0800)
commit7ab604ab79d60b839e2d38020fd6ccbe0be033b8
treec80fc472fa83c925a17a19a2b4a3881fb86c36f8
parentee6e8c1cb07986c0c271bb414e3d139c6e41c284
bgpd: Handle possible non-selection of local route

In rare situations, the local route in a VNI may not get selected as the
best route. One situation is during a race between bgp and zebra which
was addressed in a prior commit. This change addresses another situation
where due to a change of tunnel IP, it is possible that a received route
may be selected as the best route if the path selection needs to take
next hop IPs into consideration. This is a pretty convoluted scenario,
but the code should handle it and delete and withdraw the local route
as well as (re)install the received route.

Ticket: CM-24114
Reviewed By: CCR-9487
Testing Done:
1. Manual tests - note, problem is not readily reproducible
2. evpn-smoke - results documented in the ticket

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
bgpd/bgp_evpn.c