]> git.puffer.fish Git - mirror/frr.git/commit
lib: terminate default vrf last
authorStephen Worley <sworley@nvidia.com>
Thu, 10 Jun 2021 20:52:35 +0000 (16:52 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 18 Jun 2021 13:59:04 +0000 (16:59 +0300)
commit68ea1450ee9de6ecf3b14137085801a991841af5
tree7a04bc46dba670c0a876a24489dcb8824148cda7
parent583cbd89848178bdf33900e3942c6251de6e3be8
lib: terminate default vrf last

Always terminate default VRF last during FRR shutdown.

On shutdown we were simply looping over the RB tree and terminating
VRFs from the ROOT. This is not guaranteed to be the default last ever.

Instead switch to RB_SAFE and skip the default VRF till the very end.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
lib/vrf.c