-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI][show][platform] Added ASIC count in the output. #1185
Conversation
…d option for JSON output
show/main.py
Outdated
if verbose: | ||
click.echo("ASIC Count: {}".format(hw_info_dict['asic_count'])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it may be better to always display this line without the need for a --verbose
flag. Just need to check the rest of the SONiC codebase to see if this output is parsed anywhere and make sure it is smart enough to handle an additional line.
Does anyone disagree?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point it may seem redundant for most cases, but I prefer that too - show by default.
retest this please |
LGTM |
@smaheshm Create PR for 201911 |
c0df635 (HEAD -> 201911, origin/201911) Updates to bgp config and show commands with BGP_INTERNAL_NEIGHBOR table (sonic-net#1224) (sonic-net#1237) d683bb4 [CLI][show][platform] Added ASIC count in the output. (sonic-net#1185) (sonic-net#1227) 4585be1 [show] Fix 'show int neigh expected' (sonic-net#1189) 29e4469 [201911][fwutil]: Use logger from sonic-py-common (sonic-net#1190) Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
- What I did
Added platform ASIC count output to platform summary. Also added option for JSON output.
- How I did it
Added ASIC count in hardware info.
- How to verify it
Manual CLI verification.
- Previous command output (if the output of a command-line utility has changed)
- New command output (if the output of a command-line utility has changed)