[Mellanox] Align PSU temperature sysfs node name with hw-management change (#16820)
- Why I did it hw-management renamed PSU temperature related sysfs: psu1_temp -> psu1_temp1 psu2_temp -> psu2_temp1 psu1_temp_max -> psu1_temp1_max psu2_temp_max -> psu2_temp1_max This PR is to align the change in SONiC. - How I did it Use new sysfs node for PSU temperature and PSU temperature threshold - How to verify it Manual test sonic-mgmt Regression test
This commit is contained in:
parent
5719d1a59a
commit
0846322e9a
@ -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{}_temp'.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{}_temp_max'.format(self.index))
|
self.psu_temp_threshold = os.path.join(PSU_PATH, 'thermal/psu{}_temp1_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))
|
||||||
|
|
||||||
|
@ -65,8 +65,8 @@ THERMAL_NAMING_RULE = {
|
|||||||
"psu thermals":
|
"psu thermals":
|
||||||
{
|
{
|
||||||
"name": "PSU-{} Temp",
|
"name": "PSU-{} Temp",
|
||||||
"temperature": "psu{}_temp",
|
"temperature": "psu{}_temp1",
|
||||||
"high_threshold": "psu{}_temp_max",
|
"high_threshold": "psu{}_temp1_max",
|
||||||
"type": "indexable"
|
"type": "indexable"
|
||||||
},
|
},
|
||||||
"chassis thermals": [
|
"chassis thermals": [
|
||||||
|
Reference in New Issue
Block a user