From 6eda5c820f4d4d98920a0b45aaac37c8a88d40e7 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 16 Apr 2020 18:07:27 +0200 Subject: T2305: include release train in "show version" output (cherry picked from commit b4544f196c2beededdd76f581690b1490c755dac) --- src/op_mode/version.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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') -- cgit v1.2.3