Added restconf/operations get, see RFC8040 Sec 3.3.2:
This commit is contained in:
Olof hagsand 2018-03-04 21:24:38 +01:00
parent 6a22524d38
commit 990700b68d
16 changed files with 355 additions and 93 deletions

View file

@ -312,7 +312,7 @@ get(char *dbname,
restval++;
}
if (i == 1){ /* spec->module->node */
if ((y = yang_find_topnode(ys, name, 0)) == NULL){
if ((y = yang_find_topnode(ys, name, YC_DATANODE)) == NULL){
clicon_err(OE_UNIX, errno, "No yang node found: %s", name);
goto done;
}
@ -799,7 +799,7 @@ kv_put(xmldb_handle xh,
}
// clicon_log(LOG_WARNING, "%s", __FUNCTION__);
while ((x = xml_child_each(xt, x, CX_ELMNT)) != NULL){
if ((ys = yang_find_topnode(yspec, xml_name(x), 0)) == NULL){
if ((ys = yang_find_topnode(yspec, xml_name(x), YC_DATANODE)) == NULL){
clicon_err(OE_UNIX, errno, "No yang node found: %s", xml_name(x));
goto done;
}