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
|
|
@ -90,32 +90,32 @@ show("Show a particular state of the system"){
|
|||
text, cli_pagination("use xpath var", "es", "http://example.com/ns/example-social", "text", "10");
|
||||
json, cli_pagination("use xpath var", "es", "http://example.com/ns/example-social", "json", "10");
|
||||
}
|
||||
configuration("Show configuration"), cli_auto_show("datamodel", "candidate", "text", true, false);{
|
||||
xml("Show configuration as XML"), cli_auto_show("datamodel", "candidate", "xml", true, false);{
|
||||
configuration("Show configuration"), cli_show_auto_mode("candidate", "text", true, false);{
|
||||
xml("Show configuration as XML"), cli_show_auto_mode("candidate", "xml", true, false);{
|
||||
default("With-default mode"){
|
||||
report-all, cli_auto_show("datamodel", "candidate", "xml", true, false, "report-all");
|
||||
trim, cli_auto_show("datamodel", "candidate", "xml", true, false, "trim");
|
||||
explicit, cli_auto_show("datamodel", "candidate", "xml", true, false, "explicit");
|
||||
report-all-tagged, cli_auto_show("datamodel", "candidate", "xml", true, false, "report-all-tagged");
|
||||
report-all-tagged-default, cli_auto_show("datamodel", "candidate", "xml", true, false, "report-all-tagged-default");
|
||||
report-all-tagged-strip, cli_auto_show("datamodel", "candidate", "xml", true, false, "report-all-tagged-strip");
|
||||
report-all, cli_show_auto_mode("candidate", "xml", true, false, "report-all");
|
||||
trim, cli_show_auto_mode("candidate", "xml", true, false, "trim");
|
||||
explicit, cli_show_auto_mode("candidate", "xml", true, false, "explicit");
|
||||
report-all-tagged, cli_show_auto_mode("candidate", "xml", true, false, "report-all-tagged");
|
||||
report-all-tagged-default, cli_show_auto_mode("candidate", "xml", true, false, "report-all-tagged-default");
|
||||
report-all-tagged-strip, cli_show_auto_mode("candidate", "xml", true, false, "report-all-tagged-strip");
|
||||
}
|
||||
}
|
||||
cli("Show configuration as CLI commands"), cli_auto_show("datamodel", "candidate", "cli", true, false, "explicit", "set ");
|
||||
netconf("Show configuration as netconf edit-config operation"), cli_auto_show("datamodel", "candidate", "netconf", true, false);
|
||||
text("Show configuration as text"), cli_auto_show("datamodel", "candidate", "text", true, false);
|
||||
json("Show configuration as JSON"), cli_auto_show("datamodel", "candidate", "json", true, false);
|
||||
cli("Show configuration as CLI commands"), cli_show_auto_mode("candidate", "cli", true, false, "explicit", "set ");
|
||||
netconf("Show configuration as netconf edit-config operation"), cli_show_auto_mode("candidate", "netconf", true, false);
|
||||
text("Show configuration as text"), cli_show_auto_mode("candidate", "text", true, false);
|
||||
json("Show configuration as JSON"), cli_show_auto_mode("candidate", "json", true, false);
|
||||
|
||||
}
|
||||
state("Show configuration and state"), cli_auto_show("datamodel", "running", "text", true, true); {
|
||||
xml("Show configuration and state as XML"), cli_auto_show("datamodel", "running", "xml", true, true);{
|
||||
state("Show configuration and state"), cli_show_auto_mode("running", "text", true, true); {
|
||||
xml("Show configuration and state as XML"), cli_show_auto_mode("running", "xml", true, true);{
|
||||
default("With-default mode"){
|
||||
report-all, cli_auto_show("datamodel", "running", "xml", true, true, "report-all");
|
||||
trim, cli_auto_show("datamodel", "running", "xml", true, true, "trim");
|
||||
explicit, cli_auto_show("datamodel", "running", "xml", true, true, "explicit");
|
||||
report-all-tagged, cli_auto_show("datamodel", "running", "xml", true, true, "report-all-tagged");
|
||||
report-all-tagged-default, cli_auto_show("datamodel", "running", "xml", true, true, "report-all-tagged-default");
|
||||
report-all-tagged-strip, cli_auto_show("datamodel", "running", "xml", true, true, "report-all-tagged-strip");
|
||||
report-all, cli_show_auto_mode("running", "xml", true, true, "report-all");
|
||||
trim, cli_show_auto_mode("running", "xml", true, true, "trim");
|
||||
explicit, cli_show_auto_mode("running", "xml", true, true, "explicit");
|
||||
report-all-tagged, cli_show_auto_mode("running", "xml", true, true, "report-all-tagged");
|
||||
report-all-tagged-default, cli_show_auto_mode("running", "xml", true, true, "report-all-tagged-default");
|
||||
report-all-tagged-strip, cli_show_auto_mode("running", "xml", true, true, "report-all-tagged-strip");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue