Skip to content
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

[action] [PR:16539] Updated the API get_platform_info() to return running/detected ASIC's count #16828

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mssonicbld
Copy link
Collaborator

What I did:

Updated the API get_platform_info() to return running/detected ASIC's count for given system

ADO: 25158825

Why I did:

In Chassis for supervisor running asic count can be <= max asic possible.
get_num_asics() return max asic count that can be present based on static asic.conf file eg:

. However in supervisor max_asic represnt number of asic where all Fabric cards are populated. However most of the time we have less than that inserted. get_asic_presence_list() returns how many Fabric asics are detected on Supervisor and for LC/Multi-asic system it still return max asic count as per asic.conf file

How I Verify:
Verified below commands on Chassis setup (multi-asic) and Pizza box with Single Asic

show version
show platform summary

…ected ASIC's count (sonic-net#16539)

previously, get_num_asics() returns the maximum number of asics. however, the asic_count 
should be actual number of asics populated which can be get from get_asic_presence_list().

ADO: 25158825

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #16539

@mssonicbld mssonicbld merged commit 6f93832 into sonic-net:202205 Oct 11, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants