xmlns sanity check
This commit is contained in:
parent
849e46191e
commit
0ad6703663
4 changed files with 23 additions and 8 deletions
|
|
@ -6,8 +6,6 @@ CLICON_PLUGIN="example_cli";
|
|||
# Translate variable "value" by incrementing its characters
|
||||
translate value (<value:string translate:incstr()>),cli_set("/translate/value");
|
||||
|
||||
|
||||
|
||||
# Note, when switching to PT, change datamodel to only @datamodel
|
||||
set @datamodel:example, cli_set();
|
||||
merge @datamodel:example, cli_merge();
|
||||
|
|
@ -41,11 +39,18 @@ show("Show a particular state of the system"){
|
|||
text("Show comparison in text"), compare_dbs((int32)1);
|
||||
}
|
||||
configuration("Show configuration"), cli_show_config("candidate", "text", "/");{
|
||||
xml("Show configuration as XML"), cli_show_config("candidate", "xml", "/");
|
||||
netconf("Show configuration as netconf edit-config operation"), cli_show_config("candidate", "netconf", "/");
|
||||
text("Show configuration as text"), cli_show_config("candidate","text","/");
|
||||
cli("Show configuration as cli commands"), cli_show_config("candidate", "cli", "/");
|
||||
json("Show configuration as cli commands"), cli_show_config("candidate", "json", "/");
|
||||
xml("Show configuration as XML"), cli_show_config("candidate", "xml", "/");{
|
||||
@datamodel:example, cli_show_auto("candidate", "text");
|
||||
}
|
||||
netconf("Show configuration as netconf edit-config operation"), cli_show_config("candidate", "netconf", "/");{
|
||||
@datamodel:example, cli_show_auto("candidate", "netconf");
|
||||
}
|
||||
text("Show configuration as text"), cli_show_config("candidate","text","/");{
|
||||
@datamodel:example, cli_show_auto("candidate", "text");
|
||||
}
|
||||
json("Show configuration as cli commands"), cli_show_config("candidate", "json", "/");{
|
||||
@datamodel:example, cli_show_auto("candidate", "json");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue