[Mellanox] Fix thermal_updater polling interval get issue#25031
[Mellanox] Fix thermal_updater polling interval get issue#25031liat-grozovik merged 2 commits intosonic-net:masterfrom
Conversation
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
platform/mellanox/mlnx-platform-api/sonic_platform/thermal_updater.py
Outdated
Show resolved
Hide resolved
platform/mellanox/mlnx-platform-api/tests/test_thermal_updater.py
Outdated
Show resolved
Hide resolved
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines failed to run 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Jianyue Wu <jianyuew@nvidia.com>
b0e754c to
13d3ac0
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@jianyuewu can you please have a dedicated PR for 202511 due to conflict? |
@liat-grozovik Sure. |
|
merged in 202412. |
|
thanks @jianyuewu ! |
|
Thank you @r12f 😊 |
…25031) - 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> Signed-off-by: Xincun Li <stli@microsoft.com>
…25031) - 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> Signed-off-by: Feng Pan <fenpan@microsoft.com>
- 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> Signed-off-by: dprital <drorp@nvidia.com>
Why I did it
The thermal updater's
load_tc_configmethod was unable to correctly parse tc_config files that use regex-based parameter.How I did it
_find_matching_keymethod: Implements regex pattern matching to find parameter keys in dictionary.load_tc_configmethod:r'asic\\d*'r'module\\d+'How to verify it
Test in switch, check if corrected parsed.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
202511