Skip to content

Commit efa2ff6

Browse files
authored
[show][platform summary] Add chassis type in the platform summary output(sonic-net#1922)
1 parent a39350c commit efa2ff6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

show/platform.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ def summary(json):
6464
click.echo("Serial Number: {}".format(chassis_info['serial']))
6565
click.echo("Model Number: {}".format(chassis_info['model']))
6666
click.echo("Hardware Revision: {}".format(chassis_info['revision']))
67+
switch_type = platform_info.get('switch_type')
68+
if switch_type:
69+
click.echo("Switch Type: {}".format(switch_type))
6770

6871

6972
# 'syseeprom' subcommand ("show platform syseeprom")

0 commit comments

Comments
 (0)