]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Prevent uninstall attempts when new entry is not happy
authorDonald Sharp <sharpd@nvidia.com>
Wed, 30 Sep 2020 21:26:02 +0000 (17:26 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 30 Sep 2020 21:26:44 +0000 (17:26 -0400)
commit5c18e66208b9c99a8c8bc4af93528404b341862b
treee323578f36778a9c9bf971ec03a798555896e0f0
parent9805b533eb409c9d66cd6612471cc29705e0a62e
zebra: Prevent uninstall attempts when new entry is not happy

In rib_process_update_fib, the function is sent two route entries
the old ( previously installed ) and new ( the one to install )
When the function detects that the new is unusable because
the number of nexthops that are usable for that route is 0,
then we uninstall the old route.  The problem here is that
we should not attempt to uninstall any route that is
not owned by FRR.  Modify the code to not attempt
this behavior

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