Merge pull request #12374 from sworleys/VRF-Disable

lib: disable vrf before terminating interfaces
This commit is contained in:
Donatas Abraitis 2022-11-24 09:28:42 +02:00 committed by GitHub
commit f6ebf84d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);