Revert "[Mellanox] Align PSU temperature sysfs node name with hw-management change (#16820)" (#16956)

This reverts commit 0846322e9a.
This commit is contained in:
Junchao-Mellanox 2023-10-23 16:55:27 +08:00 committed by GitHub
parent b2c8ad8b10
commit c2edc6f9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -242,8 +242,8 @@ class Psu(FixedPsu):
self.psu_power_max_capacity = os.path.join(PSU_PATH, "config/psu{}_power_capacity".format(self.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 = os.path.join(PSU_PATH, 'thermal/psu{}_temp'.format(self.index))
self.psu_temp_threshold = os.path.join(PSU_PATH, 'thermal/psu{}_temp1_max'.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)) self.psu_power_slope = os.path.join(PSU_PATH, self.PSU_POWER_SLOPE.format(self.index))

View File

@ -65,8 +65,8 @@ THERMAL_NAMING_RULE = {
"psu thermals": "psu thermals":
{ {
"name": "PSU-{} Temp", "name": "PSU-{} Temp",
"temperature": "psu{}_temp1", "temperature": "psu{}_temp",
"high_threshold": "psu{}_temp1_max", "high_threshold": "psu{}_temp_max",
"type": "indexable" "type": "indexable"
}, },
"chassis thermals": [ "chassis thermals": [