diff options
| author | Santosh P K <50885001+Spantik@users.noreply.github.com> | 2020-06-10 22:47:07 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-10 22:47:07 +0530 |
| commit | 57dd2f009739664cbf857a82e7a6970c916b8e10 (patch) | |
| tree | 7187878d1394bbc452ecc1e2bffd5edafb9a920d /lib/if.c | |
| parent | 5e0494b38a53e5a3501088efb4b48b2cbb7a080f (diff) | |
| parent | 1abe6c535e89f8b445c7d5808bc7972a6b60236d (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
