TEXT output/parser: fix space-separated leaf/leaf-lists

This commit is contained in:
Olof hagsand 2022-06-07 13:23:05 +02:00
parent 01b38c6645
commit b1cb774c9d
3 changed files with 22 additions and 28 deletions

View file

@ -452,7 +452,7 @@ cli_auto_show(clicon_handle h,
/* Print configuration according to format */
switch (format){
case FORMAT_XML:
if (clixon_xml2file(stdout, xp, 0, pretty, fprintf, skiproot) < 0)
if (clixon_xml2file(stdout, xp, 0, pretty, cligen_output, skiproot) < 0)
goto done;
fprintf(stdout, "\n");
break;
@ -474,7 +474,7 @@ cli_auto_show(clicon_handle h,
NETCONF_BASE_NAMESPACE, NETCONF_MESSAGE_ID_ATTR);
if (pretty)
fprintf(stdout, "\n");
if (clixon_xml2file(stdout, xp, 2, pretty, fprintf, skiproot) < 0)
if (clixon_xml2file(stdout, xp, 2, pretty, cligen_output, skiproot) < 0)
goto done;
fprintf(stdout, "</config></edit-config></rpc>]]>]]>\n");
break;