Skip to content

[Mellanox] Fix thermal_updater polling interval get issue#1960

Merged
r12f merged 1 commit intoAzure:202412from
jianyuewu:2412_thermal_match_poll_key
Feb 1, 2026
Merged

[Mellanox] Fix thermal_updater polling interval get issue#1960
r12f merged 1 commit intoAzure:202412from
jianyuewu:2412_thermal_match_poll_key

Conversation

@jianyuewu
Copy link
Copy Markdown

Why I did it

The thermal updater's load_tc_config method was unable to correctly parse tc_config files that use regex-based parameter.

How I did it

  1. Added _find_matching_key method: Implements regex pattern matching to find parameter keys in dictionary.
  2. Updated load_tc_config method:
    • Changed ASIC parameter lookup to use regex pattern r'asic\\d*'
    • Changed Module parameter lookup to use regex pattern r'module\\d+'

How to verify it

Test in switch, check if corrected parsed.

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

  • 202412
  • 202511

Tested branch (Please provide the tested image version)

202511

- Why I did it
The thermal updater's load_tc_config method was unable to correctly parse tc_config files that use regex-based parameter.

- How I did it
Added _find_matching_key method: Implements regex pattern matching to find parameter keys in dictionary.
Updated load_tc_config method:
Changed ASIC parameter lookup to use regex pattern r'asic\\d*'
Changed Module parameter lookup to use regex pattern r'module\\d+'

- How to verify it
Test in switch, check if corrected parsed.

Signed-off-by: Jianyue Wu <jianyuew@nvidia.com>
@r12f
Copy link
Copy Markdown

r12f commented Feb 1, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@r12f r12f merged commit cd114a8 into Azure:202412 Feb 1, 2026
10 checks passed
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.

2 participants