summaryrefslogtreecommitdiff
path: root/src/op_mode
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:48 +0200
commit6eda5c820f4d4d98920a0b45aaac37c8a88d40e7 (patch)
treead4d830f0292972c4e1f8574c3b8b98878cc47e8 /src/op_mode
parenta42081066d3488650e1c3e249908242435737591 (diff)
downloadvyos-1x-6eda5c820f4d4d98920a0b45aaac37c8a88d40e7.tar.gz
vyos-1x-6eda5c820f4d4d98920a0b45aaac37c8a88d40e7.zip
T2305: include release train in "show version" output
(cherry picked from commit b4544f196c2beededdd76f581690b1490c755dac)
Diffstat (limited to 'src/op_mode')
-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 5aff0f767..a9916d246 100755
--- a/src/op_mode/version.py
+++ b/src/op_mode/version.py
@@ -49,6 +49,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}}
@@ -98,7 +100,7 @@ if __name__ == '__main__':
elif subprocess.call(""" grep '^overlay /' /proc/mounts >/dev/null """, shell=True) != 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')