Skip to content

Commit ada1140

Browse files
Volodymyr Samotiylguohan
authored andcommitted
[mellanox]: Fix sysfs path for PSU devices in psuutil plugin (#1966)
Signed-off-by: Volodymyr Samotiy <[email protected]>
1 parent d7be9a4 commit ada1140

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class PsuUtil(PsuBase):
2121
def __init__(self):
2222
PsuBase.__init__(self)
2323

24-
self.psu_path = "/sys/bus/i2c/devices/2-0060/"
24+
self.psu_path = "/bsp/module/"
2525
self.psu_presence = "psu{}_status"
26-
self.psu_oper_status = "psu{}_pg_status"
26+
self.psu_oper_status = "psu{}_pwr_status"
2727

2828
def get_num_psus(self):
2929
"""

device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class PsuUtil(PsuBase):
2121
def __init__(self):
2222
PsuBase.__init__(self)
2323

24-
self.psu_path = "/sys/bus/i2c/devices/2-0060/"
24+
self.psu_path = "/bsp/module/"
2525
self.psu_presence = "psu{}_status"
26-
self.psu_oper_status = "psu{}_pg_status"
26+
self.psu_oper_status = "psu{}_pwr_status"
2727

2828
def get_num_psus(self):
2929
"""

device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class PsuUtil(PsuBase):
2121
def __init__(self):
2222
PsuBase.__init__(self)
2323

24-
self.psu_path = "/sys/bus/i2c/devices/2-0060/"
24+
self.psu_path = "/bsp/module/"
2525
self.psu_presence = "psu{}_status"
26-
self.psu_oper_status = "psu{}_pg_status"
26+
self.psu_oper_status = "psu{}_pwr_status"
2727

2828
def get_num_psus(self):
2929
"""

device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class PsuUtil(PsuBase):
2121
def __init__(self):
2222
PsuBase.__init__(self)
2323

24-
self.psu_path = "/sys/bus/i2c/devices/2-0060/"
24+
self.psu_path = "/bsp/module/"
2525
self.psu_presence = "psu{}_status"
26-
self.psu_oper_status = "psu{}_pg_status"
26+
self.psu_oper_status = "psu{}_pwr_status"
2727

2828
def get_num_psus(self):
2929
"""

0 commit comments

Comments
 (0)