From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/show-version.xml.in | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 op-mode-definitions/show-version.xml.in (limited to 'op-mode-definitions/show-version.xml.in') diff --git a/op-mode-definitions/show-version.xml.in b/op-mode-definitions/show-version.xml.in new file mode 100644 index 000000000..2202d27b3 --- /dev/null +++ b/op-mode-definitions/show-version.xml.in @@ -0,0 +1,33 @@ + + + + + + + Show system version information + + sudo ${vyos_op_scripts_dir}/show_version.py + + + + Show system version and some fun stuff + + sudo ${vyos_op_scripts_dir}/show_version.py --funny + + + + Show system version and versions of all packages + + echo "Package versions:"; dpkg -l | awk '$0~/>/{exit}1' + + + + Show Quagga version information + + /usr/bin/vtysh -c "show version" + + + + + + -- cgit v1.2.3