summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorSantosh P K <50885001+Spantik@users.noreply.github.com>2020-06-10 22:47:07 +0530
committerGitHub <noreply@github.com>2020-06-10 22:47:07 +0530
commit57dd2f009739664cbf857a82e7a6970c916b8e10 (patch)
tree7187878d1394bbc452ecc1e2bffd5edafb9a920d /lib/if.c
parent5e0494b38a53e5a3501088efb4b48b2cbb7a080f (diff)
parent1abe6c535e89f8b445c7d5808bc7972a6b60236d (diff)
Merge pull request #6414 from opensourcerouting/nb-error-handling
NB context + enhanced error handling
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/if.c b/lib/if.c
index b34744f80d..f03574e787 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1567,8 +1567,8 @@ static int lib_interface_destroy(struct nb_cb_destroy_args *args)
case NB_EV_VALIDATE:
ifp = nb_running_get_entry(args->dnode, NULL, true);
if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) {
- zlog_warn("%s: only inactive interfaces can be deleted",
- __func__);
+ snprintf(args->errmsg, args->errmsg_len,
+ "only inactive interfaces can be deleted");
return NB_ERR_VALIDATION;
}
break;