summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
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 9df5d19516..fb64589287 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -1082,8 +1082,8 @@ static int lib_vrf_destroy(struct nb_cb_destroy_args *args)
case NB_EV_VALIDATE:
vrfp = nb_running_get_entry(args->dnode, NULL, true);
if (CHECK_FLAG(vrfp->status, VRF_ACTIVE)) {
- zlog_debug("%s Only inactive VRFs can be deleted",
- __func__);
+ snprintf(args->errmsg, args->errmsg_len,
+ "Only inactive VRFs can be deleted");
return NB_ERR_VALIDATION;
}
break;