This commit is contained in:
mugitya03 2025-04-29 16:20:43 +00:00 committed by GitHub
commit 2b3019f9ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -323,6 +323,9 @@ static int __send_notification(struct mgmt_be_client *client, const char *xpath,
int ret = 0;
assert(op != NOTIFY_OP_NOTIFICATION || xpath || tree);
if (!xpath && !tree){
return ret;
}
debug_be_client("%s: sending %sYANG %snotification: %s", __func__,
op == NOTIFY_OP_DS_DELETE ? "delete "
: op == NOTIFY_OP_DS_REPLACE ? "replace "

View file

@ -944,7 +944,9 @@ static int lib_vrf_create(struct nb_cb_create_args *args)
return NB_OK;
vrfp = vrf_get(VRF_UNKNOWN, vrfname);
if (!vrfp){
return NB_ERR;
}
SET_FLAG(vrfp->status, VRF_CONFIGURED);
nb_running_set_entry(args->dnode, vrfp);