Skip to content

Commit

Permalink
netconf_nmda UPDATE get-data factory-default support
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Nov 24, 2023
1 parent f3b3a0b commit 47d26a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/netconf_nmda.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ np2srv_rpc_getdata_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), const
ds = SR_DS_CANDIDATE;
} else if (!strcmp(leaf->value.ident->name, "operational")) {
ds = SR_DS_OPERATIONAL;
} else if (!strcmp(leaf->value.ident->name, "factory-default")) {
ds = SR_DS_FACTORY_DEFAULT;
} else {
rc = SR_ERR_INVAL_ARG;
sr_session_set_error_message(session, "Datastore \"%s\" is not supported.", lyd_get_value(&leaf->node));
Expand Down

0 comments on commit 47d26a0

Please sign in to comment.