completing the function of hide for autocli-op in the yang files
This commit is contained in:
parent
33ad428854
commit
b0c5e43d50
4 changed files with 7 additions and 7 deletions
|
|
@ -521,10 +521,10 @@ cli_auto_show(clicon_handle h,
|
|||
switch (format){
|
||||
case FORMAT_XML:
|
||||
if (isroot)
|
||||
stdout(xp, 0, pretty, 1);
|
||||
xml2file(xp, 0, pretty, fprintf);
|
||||
else{
|
||||
while ((xc = xml_child_each(xp, xc, CX_ELMNT)) != NULL)
|
||||
stdout(xc, 0, pretty, 1);
|
||||
xml2file(xc, 0, pretty, fprintf);
|
||||
}
|
||||
fprintf(stdout, "\n");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue