]> git.proxmox.com Git - mirror_frr.git/commit - lib/vrf.c
lib: terminate default vrf last
authorStephen Worley <sworley@nvidia.com>
Thu, 10 Jun 2021 20:52:35 +0000 (16:52 -0400)
committerStephen Worley <sworley@nvidia.com>
Fri, 11 Jun 2021 15:48:23 +0000 (11:48 -0400)
commitea0d70b1c4096199428ffdcc02eab1120f2b1284
tree5257dae719b69cf7fc7563a834cceb6ceb092e3f
parent352cc841d897eb343f12d7f85c7f346ab3c29beb
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