]> git.puffer.fish Git - mirror/frr.git/commit
zebra: On Nexthop install failure don't set Installation failed 17859/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 14 Jan 2025 21:23:40 +0000 (16:23 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 14 Jan 2025 21:23:40 +0000 (16:23 -0500)
commitec6a000b0b19ac7888a9793676741af32ec38cde
tree0240f1cef4c2a98d2853f462991ce4e3cc2cb490
parentb61424a717fc3c3708d36ff355cdc6ca3e4c38d3
zebra: On Nexthop install failure don't set Installation failed

Currently FRR when installing a nexthop group, the installation can fail.
The assumption with the code was that the current nexthop group was
not already installed.  This leaves a problem state where if the
users of the nexthop group are removed, the nexthop group will be
removed possibly leaving a orphaned nexthop group in the data plane.

FRR on a nexthop group installation does not actually know the status
of the nexthop group in the kernel.  It's possible that a earlier
version of the nexthop group is left in play.  It's possible that
there is no nexthop group in the kernel at all.  Leaving the
Installed flag alone allows upon Zebra removing the nexthop
group when it is removed from zebra.

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