[202305] Move firmware version fields to TRANSCEIVER_FIRMWARE_INFO table (#435) #436
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick for https://github.com/sonic-net/sonic-platform-daemons/pull/435/files
Description
We are currently planning move the "active_firmware" and "inactive_firmware" fields from TRANSCEIVER_INFO table to TRANSCEIVER_FIRMWARE_INFO table.
MSFT ADO - 26788447
The changes in this PR should be merged along with sonic-net/sonic-platform-common#440 and sonic-net/sonic-mgmt#11708
Motivation and Context
Both active and inactive firmware version fields can dynamically change during firmware upgrade unlike other fields in TRANSCEIVER_INFO table which are static.
Hence, we are planning to create a separate table to store the firmware version so that these fields can be updated periodically by DomInfoTaskUpdate thread. A separate PR will be raised to enable polling of firmware version fields by DomInfoTaskUpdate thread.
How Has This Been Tested?
A separate PR is planned to be created for modifying
show int transceiver eeprom
CLI to support displaying firmware version fields from TRANSCEIVER_FIRMWARE_INFO table.Following types of transceivers have been tested
Also, for CMIS transceiver, transceiver OIR has been tested to ensure that TRANSCEIVER_FIRMWARE_INFO table gets deleted after transceiver removal and the table gets created after transceiver insertion.
The "active_firmware" and "inactive_firmware" fields are not seen in TRANSCEIVER_INFO table now.
Additional Information (Optional)