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

Update TRANSCEIVER_FIRMWARE_INFO table for all targets in sfputil #3370

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

mihirpat1
Copy link
Contributor

@mihirpat1 mihirpat1 commented Jun 17, 2024

What I did

For transceivers which are CMIS target FW upgrade capable, sfputil needs to update FW version for all targets as part of firmware download, run and commit.
However, the current function update_firmware_info_to_state_db updates the firmware info to redis-db only for target 0.

MSFT ADO - 27920760

How I did it

Updating the active, inactive firmware versions for all sides. Also, updating the server firmware version for E1 and E2.

How to verify it

Ran the below sequence and ensured that the firmware info is updated for all targets in redis-db.

  1. sfputil firmware target PORT_NAME TARGET
  2. sfputil firmware download PORT_NAME FILE_PATH
  3. sfputil firmware target PORT_NAME TARGET
  4. sfputil firmware run PORT_NAME
  5. sfputil firmware target PORT_NAME TARGET
  6. sfputil firmware commit PORT_NAME

Also, tested the changes on transceiver which is not target FW upgradable.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@prgeor prgeor merged commit 515265a into sonic-net:master Jun 18, 2024
7 checks passed
@mihirpat1
Copy link
Contributor Author

@StormLiangMS @yxieca @bingwang-ms Can you please help in merging this to 202305, 202311 and 202405 branches?
MSFT ADO - 27920760

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202311: #3380

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202305: #3382

@mihirpat1
Copy link
Contributor Author

@StormLiangMS I have tested the changes on 202305.

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #3415

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.

6 participants