]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_rib.c
zebra: resolve issue with rnh not evaluating nexhops correctly
authorDon Slice <dslice@cumulusnetworks.com>
Wed, 19 Jun 2019 11:22:21 +0000 (11:22 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Wed, 19 Jun 2019 14:06:32 +0000 (07:06 -0700)
commit739c9c90e78baf139ccd5d8f0776f0f4f5a83d59
tree4b511ee89d407d0f674b902f41321de512ae0bc9
parent8c86cd52be9be63ee221b54164867ea2031af6e3
zebra: resolve issue with rnh not evaluating nexhops correctly

Problem discovered in testing that occasionally when an interface
address was flushed, the corresponding route would be removed from
the kernel and zebra but remain in the bgp table and be advertised
to peers.  Discovered that when zebra_rib_evaluate_nexthops spun
thru the tree list of rns, if the timing and circumstances were
right, it would move elements and miss evaluating some.  Changed
from frr_each to frr_each_safe and the problem is now gone.

Ticket: CM-25301
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
zebra/zebra_rib.c