Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[broadcom] Add broadcom ASIC info to "show version" click command
==== What I did When the ASIC platform is broadcom, expand the "show version" output with additional versions. This helps keeping track of different versions when building/testing. ==== How I did it Added _get_broadcom_info() function that calls 'bcmcmd' with 'bsv' and 'show unit'. ==== How to verify it Run "show version" on a device with broadcom ASIC and observe how it now lists this: # show version SONiC Software Version: SONiC.master.0-123456789 SONiC OS Version: 12 Distribution: Debian 12.8 Kernel: 6.1.0-22-2-amd64 Build commit: 123456789 Build date: Tue Nov 12 15:28:30 UTC 2024 Built by: sonic-builder Platform: x86_64-accton_as9716_32d-r0 HwSKU: Accton-AS9716-32D ASIC: broadcom ASIC Count: 1 +ASIC API BRCM SAI ver: [10.1.42.0] +ASIC API OCP SAI ver: [1.13.2] +ASIC API SDK ver: [sdk-6.5.29] +ASIC Model: Unit 0 chip BCM56980_B0 (current) Serial Number: ... On other platforms, that info will not be added. On any regular failure (command not found, permission denied, command rejected, unexpected output), show version will still complete.
- Loading branch information