Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mellanox]: Fix sysfs path for PSU devices in psuutil plugin #1966

Merged
merged 1 commit into from
Aug 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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