Skip to content

Commit

Permalink
[show][platform summary] Add chassis type in the platform summary out…
Browse files Browse the repository at this point in the history
…put(#1922)
  • Loading branch information
smaheshm authored Nov 15, 2021
1 parent a39350c commit efa2ff6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions show/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit efa2ff6

Please sign in to comment.