completing the function of hide for autocli-op in the yang files

This commit is contained in:
shmuels 2021-04-21 15:15:35 +03:00
parent 33ad428854
commit b0c5e43d50
4 changed files with 7 additions and 7 deletions

View file

@ -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;