summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-11-25 08:55:15 +0200
committerGitHub <noreply@github.com>2022-11-25 08:55:15 +0200
commit85db584ff85c46cc3c5a33fdf548e7667f915c96 (patch)
treea467a6bb10665982cc6fcd5a9769acc1edac16d5 /lib
parent15ca0cb7f29a5e0161530c36683f4dcf419ae8be (diff)
parent02b684b8f74d1f2e6f333c1b8ad70b8f6a8010b1 (diff)
Merge pull request #12382 from FRRouting/mergify/bp/stable/8.4/pr-12374
lib: disable vrf before terminating interfaces (backport #12374)
Diffstat (limited to 'lib')
-rw-r--r--lib/vrf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 3a859895e8..5878c1734f 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -528,6 +528,7 @@ void vrf_init(int (*create)(struct vrf *), int (*enable)(struct vrf *),
static void vrf_terminate_single(struct vrf *vrf)
{
/* Clear configured flag and invoke delete. */
+ vrf_disable(vrf);
UNSET_FLAG(vrf->status, VRF_CONFIGURED);
if_terminate(vrf);
vrf_delete(vrf);