Skip to content

Commit

Permalink
Revert "[Mellanox] Align PSU temperature sysfs node name with hw-mana…
Browse files Browse the repository at this point in the history
…gement change (sonic-net#16820)" (sonic-net#16956)

This reverts commit 0846322.
  • Loading branch information
Junchao-Mellanox authored Oct 23, 2023
1 parent b2c8ad8 commit c2edc6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ def __init__(self, psu_index):

self.psu_power_max_capacity = os.path.join(PSU_PATH, "config/psu{}_power_capacity".format(self.index))

self.psu_temp = os.path.join(PSU_PATH, 'thermal/psu{}_temp1'.format(self.index))
self.psu_temp_threshold = os.path.join(PSU_PATH, 'thermal/psu{}_temp1_max'.format(self.index))
self.psu_temp = os.path.join(PSU_PATH, 'thermal/psu{}_temp'.format(self.index))
self.psu_temp_threshold = os.path.join(PSU_PATH, 'thermal/psu{}_temp_max'.format(self.index))

self.psu_power_slope = os.path.join(PSU_PATH, self.PSU_POWER_SLOPE.format(self.index))

Expand Down
4 changes: 2 additions & 2 deletions platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"psu thermals":
{
"name": "PSU-{} Temp",
"temperature": "psu{}_temp1",
"high_threshold": "psu{}_temp1_max",
"temperature": "psu{}_temp",
"high_threshold": "psu{}_temp_max",
"type": "indexable"
},
"chassis thermals": [
Expand Down

0 comments on commit c2edc6f

Please sign in to comment.