completing the function of hide for autocli-op in the yang files
This commit is contained in:
parent
8ca5944111
commit
c370ac8706
16 changed files with 98 additions and 44 deletions
|
|
@ -205,7 +205,7 @@ main(int argc, char **argv)
|
|||
xpath = "/";
|
||||
if (xmldb_get(h, db, NULL, xpath, &xt) < 0)
|
||||
goto done;
|
||||
clicon_xml2file(stdout, xt, 0, 0);
|
||||
clicon_xml2file(stdout, xt, 0, 0, 0);
|
||||
fprintf(stdout, "\n");
|
||||
if (xt){
|
||||
xml_free(xt);
|
||||
|
|
@ -228,7 +228,7 @@ main(int argc, char **argv)
|
|||
clicon_err(OE_DB, 0, "xt is NULL");
|
||||
goto done;
|
||||
}
|
||||
clicon_xml2file(stdout, xt, 0, 0);
|
||||
clicon_xml2file(stdout, xt, 0, 0, 0);
|
||||
if (xt){
|
||||
xml_free(xt);
|
||||
xt = NULL;
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ main(int argc,
|
|||
for (i = 0; i < xlen; i++){
|
||||
xc = xvec[i];
|
||||
fprintf(stdout, "%d: ", i);
|
||||
clicon_xml2file(stdout, xc, 0, 0);
|
||||
clicon_xml2file(stdout, xc, 0, 0, 0);
|
||||
fprintf(stdout, "\n");
|
||||
fflush(stdout);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -281,9 +281,9 @@ main(int argc, char **argv)
|
|||
if (sort)
|
||||
xml_sort_recurse(xb);
|
||||
if (strcmp(xml_name(xb),"top")==0)
|
||||
clicon_xml2file(stdout, xml_child_i_type(xb, 0, CX_ELMNT), 0, 0);
|
||||
clicon_xml2file(stdout, xml_child_i_type(xb, 0, CX_ELMNT), 0, 0, 0);
|
||||
else
|
||||
clicon_xml2file(stdout, xb, 0, 0);
|
||||
clicon_xml2file(stdout, xb, 0, 0, 0);
|
||||
fprintf(stdout, "\n");
|
||||
retval = 0;
|
||||
done:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue