getting legacy grideye application to work on clixon
This commit is contained in:
parent
6169ea6bed
commit
c1c1670a74
22 changed files with 952 additions and 805 deletions
|
|
@ -153,7 +153,7 @@ xml_filter2(cxobj *xfilter,
|
|||
sprev = s = NULL;
|
||||
while ((s = xml_child_each(xparent, s, CX_ELMNT)) != NULL) {
|
||||
if ((f = xml_find(xfilter, xml_name(s))) == NULL){
|
||||
xml_prune(xparent, s, 1);
|
||||
xml_purge(s);
|
||||
s = sprev;
|
||||
continue;
|
||||
}
|
||||
|
|
@ -166,7 +166,7 @@ xml_filter2(cxobj *xfilter,
|
|||
if (xml_filter2(f, s, &remove_s) < 0)
|
||||
return -1;
|
||||
if (remove_s){
|
||||
xml_prune(xparent, s, 1);
|
||||
xml_purge(s);
|
||||
s = sprev;
|
||||
}
|
||||
sprev = s;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ netconf_filter_xmldb(clicon_handle h,
|
|||
switch (foption){
|
||||
case FILTER_SUBTREE:
|
||||
/* Get the whole database as xml */
|
||||
if (xmldb_get(h, source, NULL, 0, &xdb, NULL, NULL) < 0){
|
||||
if (xmldb_get(h, source, "/", 0, &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