Skip to content

Commit

Permalink
[psu_base] Add new platform APIs to support PSU LED management (sonic…
Browse files Browse the repository at this point in the history
  • Loading branch information
Junchao-Mellanox authored Apr 30, 2020
1 parent a085cb4 commit 75698a8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions sonic_platform_base/psu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,43 @@ def get_status_led(self):
A string, one of the predefined STATUS_LED_COLOR_* strings above
"""
raise NotImplementedError

def get_temperature(self):
"""
Retrieves current temperature reading from PSU
Returns:
A float number of current temperature in Celsius up to nearest thousandth
of one degree Celsius, e.g. 30.125
"""
raise NotImplementedError

def get_temperature_high_threshold(self):
"""
Retrieves the high threshold temperature of PSU
Returns:
A float number, the high threshold temperature of PSU in Celsius
up to nearest thousandth of one degree Celsius, e.g. 30.125
"""
raise NotImplementedError

def get_voltage_high_threshold(self):
"""
Retrieves the high threshold PSU voltage output
Returns:
A float number, the high threshold output voltage in volts,
e.g. 12.1
"""
raise NotImplementedError

def get_voltage_low_threshold(self):
"""
Retrieves the low threshold PSU voltage output
Returns:
A float number, the low threshold output voltage in volts,
e.g. 12.1
"""
raise NotImplementedError

0 comments on commit 75698a8

Please sign in to comment.