From c2edc6f9d5fd812d89873e47456ae6c38bc05dee Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:55:27 +0800 Subject: [PATCH] Revert "[Mellanox] Align PSU temperature sysfs node name with hw-management change (#16820)" (#16956) This reverts commit 0846322e9a28e2c3b8a3c794a64b0e692d171714. --- platform/mellanox/mlnx-platform-api/sonic_platform/psu.py | 4 ++-- platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py b/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py index 6b42fad6d9ae..cc5bb61b9608 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/psu.py @@ -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)) diff --git a/platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py b/platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py index 235086ca5db4..4786b1f74049 100644 --- a/platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py +++ b/platform/mellanox/mlnx-platform-api/sonic_platform/thermal.py @@ -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": [