]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Fix non-notification of better admin won
authorDonald Sharp <sharpd@nvidia.com>
Tue, 14 Nov 2023 15:15:42 +0000 (10:15 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 29 Nov 2023 18:47:48 +0000 (13:47 -0500)
commit2d3005068c10e38b32448ef8acf89a0b67ab4276
tree2ec3553a7e23a209b559b159cd28ae0651687973
parent609f40575e99a9248829e4d795fa928ef6169145
zebra: Fix non-notification of better admin won

If there happens to be a entry in the zebra rib
that has a lower admin distance then a newly received
re, zebra would not notify the upper level protocol
about this happening.  Imagine a case where there
is a connected route for say a /32 and bgp receives
a route from a peer that is the same route as the
connected.  Since BGP has no network statement and
perceives the route as being `good` bgp will install
the route into zebra.  Zebra will look at the new
bgp re and correctly identify that the re is not
something that it will use and do nothing.  This
change notices this and sends up a BETTER_ADMIN_WON
route notification.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_rib.c