From efa2ff62eef37b28526edc43119ffdfa5ff12682 Mon Sep 17 00:00:00 2001 From: Mahesh Maddikayala <10645050+smaheshm@users.noreply.github.com> Date: Mon, 15 Nov 2021 09:20:40 -0800 Subject: [PATCH] [show][platform summary] Add chassis type in the platform summary output(#1922) --- show/platform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/show/platform.py b/show/platform.py index c713472080a7..1916e10d84cd 100644 --- a/show/platform.py +++ b/show/platform.py @@ -64,6 +64,9 @@ def summary(json): click.echo("Serial Number: {}".format(chassis_info['serial'])) click.echo("Model Number: {}".format(chassis_info['model'])) click.echo("Hardware Revision: {}".format(chassis_info['revision'])) + switch_type = platform_info.get('switch_type') + if switch_type: + click.echo("Switch Type: {}".format(switch_type)) # 'syseeprom' subcommand ("show platform syseeprom")