diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-02-09 20:39:32 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-02-09 20:39:32 +0100 |
commit | 18e196f6fad9dac2a6eaa3e5ab3ac3a9ec4fcceb (patch) | |
tree | 5e46bd715a780b2c848d1973d2d8e01ef3722b17 /lib/vrf.c | |
parent | vrf: mark vrf as configured when entering vrf node (diff) | |
download | frr-18e196f6fad9dac2a6eaa3e5ab3ac3a9ec4fcceb.tar.xz frr-18e196f6fad9dac2a6eaa3e5ab3ac3a9ec4fcceb.zip |
vrf: use wrappers to change VRF_CONFIGURED flag
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r-- | lib/vrf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1064,7 +1064,7 @@ static int lib_vrf_create(struct nb_cb_create_args *args) vrfp = vrf_get(VRF_UNKNOWN, vrfname); - SET_FLAG(vrfp->status, VRF_CONFIGURED); + vrf_set_user_cfged(vrfp); nb_running_set_entry(args->dnode, vrfp); return NB_OK; @@ -1090,7 +1090,7 @@ static int lib_vrf_destroy(struct nb_cb_destroy_args *args) vrfp = nb_running_unset_entry(args->dnode); /* Clear configured flag and invoke delete. */ - UNSET_FLAG(vrfp->status, VRF_CONFIGURED); + vrf_reset_user_cfged(vrfp); vrf_delete(vrfp); break; } |