summaryrefslogtreecommitdiffstats
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-02-09 20:39:32 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2021-02-09 20:39:32 +0100
commit18e196f6fad9dac2a6eaa3e5ab3ac3a9ec4fcceb (patch)
tree5e46bd715a780b2c848d1973d2d8e01ef3722b17 /lib/vrf.c
parentvrf: mark vrf as configured when entering vrf node (diff)
downloadfrr-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 7d0336314..87744ea95 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -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;
}