]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Do not delete nhg's when retain_mode is engaged 7364/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 22 Oct 2020 12:02:33 +0000 (08:02 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 22 Oct 2020 12:02:33 +0000 (08:02 -0400)
commitb1b07ef5a690d5da78b549ede282ff479c98169d
treec19f2858bea20489da857fad69581c344f9704a3
parent3506f3f9077581de184c28220274a7afcf150506
zebra: Do not delete nhg's when retain_mode is engaged

When `-r` is specified to zebra, on shutdown we should
not remove any routes from the fib.  This was a problem
with nhg's on shutdown due to their ref-count behavior.

Introduce a methodology where on shutdown we don't mess
with the nexthop groups in the kernel.  That way on
next startup things will be ok.

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