]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Fix deterministic-med check for stale paths
authorvivek <vivek@cumulusnetworks.com>
Thu, 3 Dec 2020 04:04:19 +0000 (20:04 -0800)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 16 Feb 2023 12:42:39 +0000 (07:42 -0500)
commitde692a4ebe0b8ea8e191d8ac1f3b41a386edd577
tree72f55fd0f6a83d696d983bec65460ca2fe27ff5c
parentbf9bc2e5f2213069801dd1445abc2bfa95214fdf
bgpd: Fix deterministic-med check for stale paths

When performing deterministic MED processing, ensure that the peer
status is not checked when we encounter a stale path. Otherwise, this
path will be skipped from the DMED consideration leading to it potentially
not being installed.

Test scenario: Consider a prefix with 2 (multi)paths. The peer that
announces the path with the winning DMED undergoes a graceful-restart.
Before it comes back up, the other path goes away. Prior to the fix, a
third router that receives both these paths would have ended up not
having any path installed to the prefix after the above events.

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
For internal use:
Ticket: CM-32032
Testing done: Multiple manual testing
bgpd/bgp_route.c