summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-07-05 10:08:29 -0400
committerDaniil Baturin <daniil@vyos.io>2022-07-05 10:08:29 -0400
commitd943440080858ea4951dc62c931faeb55f72f601 (patch)
treed11c20487b4c0e038d9d5b18641304e1642b4cfc
parentfbde12af711bdaea63e9ed07de1d200cbd269b07 (diff)
downloadvyos-1x-d943440080858ea4951dc62c931faeb55f72f601.tar.gz
vyos-1x-d943440080858ea4951dc62c931faeb55f72f601.zip
T2719: update op mode CLI definition for 'show version'
-rw-r--r--op-mode-definitions/show-version.xml.in4
-rwxr-xr-xsrc/op_mode/version.py (renamed from src/op_mode/show_version.py)0
2 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/show-version.xml.in b/op-mode-definitions/show-version.xml.in
index 8b7cc7e58..d9c4738af 100644
--- a/op-mode-definitions/show-version.xml.in
+++ b/op-mode-definitions/show-version.xml.in
@@ -6,13 +6,13 @@
<properties>
<help>Show system version information</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/show_version.py</command>
+ <command>sudo ${vyos_op_scripts_dir}/version.py show</command>
<children>
<leafNode name="funny">
<properties>
<help>Show system version and some fun stuff</help>
</properties>
- <command>sudo ${vyos_op_scripts_dir}/show_version.py --funny</command>
+ <command>sudo ${vyos_op_scripts_dir}/version.py show --funny</command>
</leafNode>
<leafNode name="all">
<properties>
diff --git a/src/op_mode/show_version.py b/src/op_mode/version.py
index 90645dfbc..90645dfbc 100755
--- a/src/op_mode/show_version.py
+++ b/src/op_mode/version.py