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

Fix chassisd bug #560

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vivekverma-arista
Copy link

@vivekverma-arista vivekverma-arista commented Nov 11, 2024

Description

Fixed the bug in chassisd due to which incorrect number of ASICs were being pushed to CHASSIS_STATE_DB.

Motivation and Context

Fixes: #559

How Has This Been Tested?

admin@cmp217:~$ sonic-db-cli CHASSIS_STATE_DB hgetall "CHASSIS_MODULE_TABLE|LINE-CARD4"
{'slot': '5', 'hostname': 'cmp217-5', 'num_asics': '2'}

Checked on Arista 7804R3-FM platform with Arista 7800R3A-36DM2-C36 linecard inserted which has 2 ASICs
Added a unit test for forwarding ASICs to test the same.

Additional Information (Optional)

@arlakshm
Copy link
Contributor

can you please add some UT for this?

@vivekverma-arista
Copy link
Author

can you please add some UT for this?

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chassisd is pushing incorrect number of ASICs for linecards to CHASSIS_STAGE_DB
2 participants