From ada11409b2506f0a854783e2c77fb684fb5349c3 Mon Sep 17 00:00:00 2001 From: Volodymyr Samotiy Date: Wed, 22 Aug 2018 19:08:08 +0300 Subject: [PATCH] [mellanox]: Fix sysfs path for PSU devices in psuutil plugin (#1966) Signed-off-by: Volodymyr Samotiy --- device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py | 4 ++-- device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py | 4 ++-- device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py | 4 ++-- device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py b/device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py index 88bdd51e9b67..01954dededf7 100644 --- a/device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py +++ b/device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py @@ -21,9 +21,9 @@ class PsuUtil(PsuBase): def __init__(self): PsuBase.__init__(self) - self.psu_path = "/sys/bus/i2c/devices/2-0060/" + self.psu_path = "/bsp/module/" self.psu_presence = "psu{}_status" - self.psu_oper_status = "psu{}_pg_status" + self.psu_oper_status = "psu{}_pwr_status" def get_num_psus(self): """ diff --git a/device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py b/device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py index 301569c13a94..13738bb77f46 100644 --- a/device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py +++ b/device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py @@ -21,9 +21,9 @@ class PsuUtil(PsuBase): def __init__(self): PsuBase.__init__(self) - self.psu_path = "/sys/bus/i2c/devices/2-0060/" + self.psu_path = "/bsp/module/" self.psu_presence = "psu{}_status" - self.psu_oper_status = "psu{}_pg_status" + self.psu_oper_status = "psu{}_pwr_status" def get_num_psus(self): """ diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py b/device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py index 301569c13a94..13738bb77f46 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py @@ -21,9 +21,9 @@ class PsuUtil(PsuBase): def __init__(self): PsuBase.__init__(self) - self.psu_path = "/sys/bus/i2c/devices/2-0060/" + self.psu_path = "/bsp/module/" self.psu_presence = "psu{}_status" - self.psu_oper_status = "psu{}_pg_status" + self.psu_oper_status = "psu{}_pwr_status" def get_num_psus(self): """ diff --git a/device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py b/device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py index 301569c13a94..13738bb77f46 100644 --- a/device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py +++ b/device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py @@ -21,9 +21,9 @@ class PsuUtil(PsuBase): def __init__(self): PsuBase.__init__(self) - self.psu_path = "/sys/bus/i2c/devices/2-0060/" + self.psu_path = "/bsp/module/" self.psu_presence = "psu{}_status" - self.psu_oper_status = "psu{}_pg_status" + self.psu_oper_status = "psu{}_pwr_status" def get_num_psus(self): """