Skip to content

Commit

Permalink
[mellanox]: Fix sysfs path for PSU devices in psuutil plugin (#1966)
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
  • Loading branch information
Volodymyr Samotiy authored and lguohan committed Aug 22, 2018
1 parent d7be9a4 commit ada1140
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions device/mellanox/x86_64-mlnx_msn2100-r0/plugins/psuutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
4 changes: 2 additions & 2 deletions device/mellanox/x86_64-mlnx_msn2410-r0/plugins/psuutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
4 changes: 2 additions & 2 deletions device/mellanox/x86_64-mlnx_msn2700-r0/plugins/psuutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
4 changes: 2 additions & 2 deletions device/mellanox/x86_64-mlnx_msn2740-r0/plugins/psuutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit ada1140

Please sign in to comment.