Add restconf get list extra =restval test
This commit is contained in:
parent
4c1249fd9b
commit
05009aed67
4 changed files with 19 additions and 2 deletions
|
|
@ -1074,6 +1074,15 @@ api_path2xml_vec(char **vec,
|
|||
}
|
||||
break;
|
||||
default: /* eg Y_CONTAINER, Y_LEAF */
|
||||
if (restval != NULL){
|
||||
if (strict){
|
||||
cprintf(cberr, "malformed api-path, =%s not expected", restval);
|
||||
if (xerr &&
|
||||
netconf_malformed_message_xml(xerr, cbuf_get(cberr)) < 0)
|
||||
goto done;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
if (x0 &&
|
||||
(x = xml_find_type(x0, NULL, name, CX_ELMNT)) == NULL){ /* eg key of list */
|
||||
if ((x = xml_new(name, x0, CX_ELMNT)) == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue