Skip to content

Commit 0b60982

Browse files
authored
[thermal_base] Add setter functions for critical thresholds (sonic-net#180)
Two new functions have been added to thermal_base.py for setting critical temperature thresholds. Signed-off-by: d-dashkov <Dmytro_Dashkov@Jabil.com>
1 parent 10dc16f commit 0b60982

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

sonic_platform_base/thermal_base.py

+26
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,32 @@ def get_low_critical_threshold(self):
9292
"""
9393
raise NotImplementedError
9494

95+
def set_high_critical_threshold(self, temperature):
96+
"""
97+
Sets the critical high threshold temperature of thermal
98+
99+
Args :
100+
temperature: A float number up to nearest thousandth of one degree Celsius,
101+
e.g. 30.125
102+
103+
Returns:
104+
A boolean, True if threshold is set successfully, False if not
105+
"""
106+
raise NotImplementedError
107+
108+
def set_low_critical_threshold(self, temperature):
109+
"""
110+
Sets the critical low threshold temperature of thermal
111+
112+
Args :
113+
temperature: A float number up to nearest thousandth of one degree Celsius,
114+
e.g. 30.125
115+
116+
Returns:
117+
A boolean, True if threshold is set successfully, False if not
118+
"""
119+
raise NotImplementedError
120+
95121
def get_minimum_recorded(self):
96122
"""
97123
Retrieves the minimum recorded temperature of thermal

0 commit comments

Comments
 (0)