Fixed: [Clixon CLI issue: when I try to print the value of the leaf node nothing appeared](https://github.com/clicon/clixon/issues/345)

This commit is contained in:
Olof hagsand 2022-07-26 13:32:57 +02:00
parent d7ed503bad
commit 57bc36d5ed
3 changed files with 4 additions and 3 deletions

View file

@ -128,6 +128,7 @@ Developers may need to change their code
### Corrected Bugs
* Fixed: [Clixon CLI issue: when I try to print the value of the leaf node nothing appeared](https://github.com/clicon/clixon/issues/345)
* Fixed: [Can't use + symbol in the enum statement without quotes](https://github.com/clicon/clixon/issues/241)
* Fixed: [String concatenation in YANG model leads to syntax error ](https://github.com/clicon/clixon/issues/265)
* Fixed: ["autocli:hide-show" extension cause bug in xmldb_put method #343](https://github.com/clicon/clixon/issues/343)

View file

@ -770,11 +770,11 @@ cli_show_auto1(clicon_handle h,
fprintf(stdout, "</config></edit-config></rpc>]]>]]>\n");
break;
case FORMAT_JSON:
if (clixon_json2file(stdout, xp, 1, cligen_output, 1, 1) < 0)
if (clixon_json2file(stdout, xp, 1, cligen_output, 0, 1) < 0)
goto done;
break;
case FORMAT_TEXT:
if (clixon_txt2file(stdout, xp, 0, cligen_output, 1, 1) < 0)
if (clixon_txt2file(stdout, xp, 0, cligen_output, 0, 1) < 0)
goto done;
break;
case FORMAT_XML:

View file

@ -69,7 +69,7 @@ copy("Copy and create a new object") {
discard("Discard edits (rollback 0)"), discard_changes();
show("Show a particular state of the system"){
auto("Show expand") @datamodel, cli_show_auto("candidate", "xml");
auto("Show expand") @datamodelshow, cli_show_auto("candidate", "xml");
xpath("Show configuration") <xpath:string>("XPATH expression")
[<ns:string>("Namespace")], show_conf_xpath("candidate");
version("Show version"), cli_show_version("candidate", "text", "/");