summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-16 18:07:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-16 18:07:27 +0200
commitb4544f196c2beededdd76f581690b1490c755dac (patch)
treeb2563bcd7ddb074a577c3b8d25f14d0b4a91287a /src
parent1dfb3c65bca02c22c449e29f3b128a709edd2c3f (diff)
downloadvyos-1x-b4544f196c2beededdd76f581690b1490c755dac.tar.gz
vyos-1x-b4544f196c2beededdd76f581690b1490c755dac.zip
T2305: include release train in "show version" output
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/version.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/op_mode/version.py b/src/op_mode/version.py
index 8599c958f..2791f5e5c 100755
--- a/src/op_mode/version.py
+++ b/src/op_mode/version.py
@@ -53,6 +53,8 @@ def read_file(name):
version_output_tmpl = """
Version: VyOS {{version}}
+Release Train: {{release_train}}
+
Built by: {{built_by}}
Built on: {{built_on}}
Build UUID: {{build_uuid}}
@@ -102,7 +104,7 @@ if __name__ == '__main__':
elif run(""" grep '^overlay /' /proc/mounts >/dev/null """) != 0:
boot_via = "legacy non-image installation"
version_data['boot_via'] = boot_via
-
+
# Get hardware details from DMI
version_data['hardware_vendor'] = read_file('/sys/class/dmi/id/sys_vendor')