From b4544f196c2beededdd76f581690b1490c755dac 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 --- src/op_mode/version.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/op_mode') 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') -- cgit v1.2.3