sonic-platform-daemons
sonic-platform-daemons copied to clipboard
[chassisd] update chassisd to write fabric and lc asics on seperate table in chassis state db
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan [email protected]
Description
The following changes are done in chassisd
- Change the
ModuleUpdater
init changed to include slot and supervisor as argument. - Add logic to in
ModuleUpdater
to update the asic_info inCHASSIS_FABRIC_ASIC_INFO
for the supervisor andCHASSIS_ASIC_TABLE
for the linecard asics respectively. - Add the linecard name is the key of the
CHASSIS_ASIC_TABLE
- update the UT
Motivation and Context
Fixes https://github.com/sonic-net/sonic-buildimage/issues/12575 and https://github.com/sonic-net/sonic-buildimage/issues/12575
How Has This Been Tested?
Update the pmon on the supervisor and linecard
Additional Information (Optional)
@bmridul ++
@arlakshm can you please paste the output of STATE_DB before and after this change in the PR description. Will be good for reference.
@arlakshm can you please paste the output of STATE_DB before and after this change in the PR description. Will be good for reference.
@abdosi Updated the description with output after the change
@abdosi , @prgeor can you please approve this pr if no other comments
Hi @yxieca please merge this pr in 202205 https://github.com/sonic-net/sonic-buildimage/pull/12780 after cherry-picking this PR