Skip to content

Commit

Permalink
[thermal_base] Add setter functions for critical thresholds (#180)
Browse files Browse the repository at this point in the history
Two new functions have been added to thermal_base.py for setting critical temperature thresholds.

Signed-off-by: d-dashkov <Dmytro_Dashkov@Jabil.com>
  • Loading branch information
d-dashkov authored Mar 22, 2021
1 parent 10dc16f commit 0b60982
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions sonic_platform_base/thermal_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,32 @@ def get_low_critical_threshold(self):
"""
raise NotImplementedError

def set_high_critical_threshold(self, temperature):
"""
Sets the critical high threshold temperature of thermal
Args :
temperature: A float number up to nearest thousandth of one degree Celsius,
e.g. 30.125
Returns:
A boolean, True if threshold is set successfully, False if not
"""
raise NotImplementedError

def set_low_critical_threshold(self, temperature):
"""
Sets the critical low threshold temperature of thermal
Args :
temperature: A float number up to nearest thousandth of one degree Celsius,
e.g. 30.125
Returns:
A boolean, True if threshold is set successfully, False if not
"""
raise NotImplementedError

def get_minimum_recorded(self):
"""
Retrieves the minimum recorded temperature of thermal
Expand Down

0 comments on commit 0b60982

Please sign in to comment.