summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-01-20 15:29:30 -0600
committerGitHub <noreply@github.com>2023-01-20 15:29:30 -0600
commit9b99f22df3f00715108b462bb66c8f4c9c502528 (patch)
treebe0bcc352fc9e3a4db7fbe0df1d5e29b7958e453 /op-mode-definitions
parentbf38bb14f0698b030fa49429ec70ab2edc51c85e (diff)
parent30f572af43bb645c91cda8edd648f039a56b1a8f (diff)
downloadvyos-1x-9b99f22df3f00715108b462bb66c8f4c9c502528.tar.gz
vyos-1x-9b99f22df3f00715108b462bb66c8f4c9c502528.zip
Merge pull request #1767 from jestabro/config-mgmt
config-mgmt: T4942: rewrite vyatta-config-mgmt to Python/XML
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-system.xml.in36
1 files changed, 36 insertions, 0 deletions
diff --git a/op-mode-definitions/show-system.xml.in b/op-mode-definitions/show-system.xml.in
index 4a0e6c3b2..746601f43 100644
--- a/op-mode-definitions/show-system.xml.in
+++ b/op-mode-definitions/show-system.xml.in
@@ -7,6 +7,42 @@
<help>Show system information</help>
</properties>
<children>
+ <node name="commit">
+ <properties>
+ <help>Show commit revision log</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/config_mgmt.py show_commit_log</command>
+ <children>
+ <tagNode name="diff">
+ <properties>
+ <help>Show commit revision diff</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/config_mgmt.py show_commit_diff --rev "$5"</command>
+ </tagNode>
+ <tagNode name="file">
+ <properties>
+ <help>Show commit revision file</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/config_mgmt.py show_commit_file --rev "$5"</command>
+ <children>
+ <tagNode name="compare">
+ <properties>
+ <help>Compare config file revisions</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/config_mgmt.py show_commit_diff --rev "$5" --revb "$7"</command>
+ <children>
+ <leafNode name="commands">
+ <properties>
+ <help>Compare config file revision commands</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/config_mgmt.py show_commit_diff --rev "$5" --revb "$7" --commands</command>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
<node name="connections">
<properties>
<help>Show active network connections on the system</help>