Library functions in clixon_cli_api.h (e.g cli_commit) is rewritten in new
for (eg cli_commitv). See clixon_cli_api.h for new names. Use restconf format for internal xmldb keys. Eg /a/b=3,4 Changed example to use multiple cli callbacks
This commit is contained in:
parent
c9f1ece53e
commit
7f0b9909b3
30 changed files with 1444 additions and 1054 deletions
|
|
@ -127,7 +127,7 @@ netconf_filter_xmldb(clicon_handle h,
|
|||
switch (foption){
|
||||
case FILTER_SUBTREE:
|
||||
/* Get the whole database as xml */
|
||||
if (xmldb_get(h, source, "/", 0, &xdb, NULL, NULL) < 0){
|
||||
if (xmldb_get(h, source, "/", &xdb, NULL, NULL) < 0){
|
||||
netconf_create_rpc_error(cb_err, xorig,
|
||||
"operation-failed",
|
||||
"application",
|
||||
|
|
@ -174,7 +174,7 @@ netconf_filter_xmldb(clicon_handle h,
|
|||
"<bad-attribute>select</bad-attribute>");
|
||||
goto done;
|
||||
}
|
||||
if (xmldb_get(h, source, selector, 0, &xdb, NULL, NULL) < 0){
|
||||
if (xmldb_get(h, source, selector, &xdb, NULL, NULL) < 0){
|
||||
netconf_create_rpc_error(cb_err, xorig,
|
||||
"operation-failed",
|
||||
"application",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue