Refactor of cli show commands:
- Changed `cli_show_config()` - Removed `cli_show_config_state()` - Replaced `cli_auto_show()` with `cli_show_auto_mode()`
This commit is contained in:
parent
9a224ea4a0
commit
a6f67755b3
32 changed files with 706 additions and 746 deletions
|
|
@ -70,10 +70,7 @@ new "test params: -y $fyang"
|
|||
|
||||
testrun "top one leaf-list" '{"json:l1":[1]}' '<l1 xmlns="urn:example:clixon">1</l1>'
|
||||
|
||||
# XXX There is a problem with how clixon shows json and xml on top-level
|
||||
# Typically, there is a loop over xml children to cope with the case if there is more
|
||||
# than one top-level which is invalid in XML.
|
||||
# See for example clixon_util_xml.c, clixon_util_json.c, cli_auto_show, cli_show_config
|
||||
|
||||
#testrun "top two leaf-list" '{"json:l1":[1,2]}' '<l1 xmlns="urn:example:clixon">1</l1><l1 xmlns="urn:example:clixon">2</l1>'
|
||||
|
||||
testrun "one leaf-list" '{"json:c":{"l1":[1]}}' '<c xmlns="urn:example:clixon"><l1>1</l1></c>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue