Skip to content

Commit

Permalink
add input vol and current to fixed psu
Browse files Browse the repository at this point in the history
Signed-off-by: orfar1994 <orfar1994@gmail.com>
  • Loading branch information
orfar1994 committed Jul 20, 2022
1 parent 029a218 commit e6e00d6
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion platform/mellanox/mlnx-platform-api/sonic_platform/psu.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,25 @@ def get_temperature_high_threshold(self):
"""
return None


def get_input_voltage(self):
"""
Retrieves current PSU voltage input
Returns:
A float number, the input voltage in volts,
e.g. 12.1
"""
return None

def get_input_current(self):
"""
Retrieves the input current draw of the power supply
Returns:
A float number, the electric current in amperes, e.g 15.4
"""
return None

class Psu(FixedPsu):
"""Platform-specific Psu class"""
PSU_CURRENT = "power/psu{}_curr"
Expand Down

0 comments on commit e6e00d6

Please sign in to comment.