Skip to content

[Mellanox] Fix issue: sfp.get_temperature_info cannot detect SFP replacement#24688

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:master-get-serial
Dec 15, 2025
Merged

[Mellanox] Fix issue: sfp.get_temperature_info cannot detect SFP replacement#24688
liat-grozovik merged 1 commit intosonic-net:masterfrom
Junchao-Mellanox:master-get-serial

Conversation

@Junchao-Mellanox
Copy link
Collaborator

Why I did it

CMIS module cached module serial in memory, it causes an issue that sfp.get_temperature_info cannot detect SFP replacement. The PR is a fix for the issue.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Implement a private sfp._get_serial which reads module serial from EEPROM instead of memory.

How to verify it

Manual test passed
Unit test passed

Which release branch to backport (provide reason below if selected)

  • 202205
  • 202211
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Junchao-Mellanox Junchao-Mellanox marked this pull request as draft December 3, 2025 05:43
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik liat-grozovik merged commit f2a86a5 into sonic-net:master Dec 15, 2025
13 checks passed
@liat-grozovik
Copy link
Collaborator

@prgeor @r12f please decide if this is a real use case for 202412. if not, lets remove the tag.
Still needed for 202511 for a complete solution.

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-buildimage-msft#1895

@Junchao-Mellanox Junchao-Mellanox deleted the master-get-serial branch December 16, 2025 01:43
hdwhdw pushed a commit to hdwhdw/sonic-buildimage that referenced this pull request Dec 18, 2025
…acement (sonic-net#24688)

- Why I did it
CMIS module cached module serial in memory, it causes an issue that sfp.get_temperature_info cannot detect SFP replacement. The PR is a fix for the issue.

- How I did it
Implement a private sfp._get_serial which reads module serial from EEPROM instead of memory.

- How to verify it
Manual test passed
Unit test passed

Signed-off-by: Junchao-Mellanox <[email protected]>
Signed-off-by: Dawei Huang <[email protected]>
xwjiang-ms pushed a commit to xwjiang-ms/sonic-buildimage that referenced this pull request Dec 22, 2025
…acement (sonic-net#24688)

- Why I did it
CMIS module cached module serial in memory, it causes an issue that sfp.get_temperature_info cannot detect SFP replacement. The PR is a fix for the issue.

- How I did it
Implement a private sfp._get_serial which reads module serial from EEPROM instead of memory.

- How to verify it
Manual test passed
Unit test passed

Signed-off-by: Junchao-Mellanox <[email protected]>
Signed-off-by: xiaweijiang <[email protected]>
jasonbridges pushed a commit to jasonbridges/sonic-buildimage that referenced this pull request Jan 22, 2026
…acement (sonic-net#24688)

- Why I did it
CMIS module cached module serial in memory, it causes an issue that sfp.get_temperature_info cannot detect SFP replacement. The PR is a fix for the issue.

- How I did it
Implement a private sfp._get_serial which reads module serial from EEPROM instead of memory.

- How to verify it
Manual test passed
Unit test passed

Signed-off-by: Junchao-Mellanox <[email protected]>
@keboliu
Copy link
Collaborator

keboliu commented Jan 30, 2026

Hi @vmittal-msft, it seems the cherry-pick to 202511 hasn't started yet. Would you please help to check?

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511: #25289

FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Mar 6, 2026
…acement (sonic-net#24688)

- Why I did it
CMIS module cached module serial in memory, it causes an issue that sfp.get_temperature_info cannot detect SFP replacement. The PR is a fix for the issue.

- How I did it
Implement a private sfp._get_serial which reads module serial from EEPROM instead of memory.

- How to verify it
Manual test passed
Unit test passed

Signed-off-by: Junchao-Mellanox <[email protected]>
Signed-off-by: Feng Pan <[email protected]>
dprital pushed a commit that referenced this pull request Mar 19, 2026
…acement (#24688)

- Why I did it
CMIS module cached module serial in memory, it causes an issue that sfp.get_temperature_info cannot detect SFP replacement. The PR is a fix for the issue.

- How I did it
Implement a private sfp._get_serial which reads module serial from EEPROM instead of memory.

- How to verify it
Manual test passed
Unit test passed

Signed-off-by: Junchao-Mellanox <[email protected]>
Signed-off-by: dprital <[email protected]>
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.

8 participants