DellEMC S6100 : Platform2.0 API [Module, Thermal]
This commit is contained in:
parent
c870b39589
commit
79b1eb8fc1
@ -134,3 +134,14 @@ class Module(ModuleBase):
|
|||||||
status = True
|
status = True
|
||||||
|
|
||||||
return status
|
return status
|
||||||
|
|
||||||
|
def get_base_mac(self):
|
||||||
|
"""
|
||||||
|
Retrieves the base MAC address for the module
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
A string containing the MAC address in the format
|
||||||
|
'XX:XX:XX:XX:XX:XX'
|
||||||
|
"""
|
||||||
|
# In S6100, individual modules doesn't have MAC address
|
||||||
|
return '00:00:00:00:00:00'
|
||||||
|
@ -210,7 +210,7 @@ class Psu(PsuBase):
|
|||||||
|
|
||||||
return status
|
return status
|
||||||
|
|
||||||
def set_status_led(self):
|
def set_status_led(self, color):
|
||||||
"""
|
"""
|
||||||
Sets the state of the PSU status LED
|
Sets the state of the PSU status LED
|
||||||
Args:
|
Args:
|
||||||
|
@ -87,6 +87,24 @@ class Thermal(ThermalBase):
|
|||||||
"""
|
"""
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
def get_model(self):
|
||||||
|
"""
|
||||||
|
Retrieves the model number (or part number) of the Thermal
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
string: Model/part number of Thermal
|
||||||
|
"""
|
||||||
|
return 'NA'
|
||||||
|
|
||||||
|
def get_serial(self):
|
||||||
|
"""
|
||||||
|
Retrieves the serial number of the Thermal
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
string: Serial number of Thermal
|
||||||
|
"""
|
||||||
|
return 'NA'
|
||||||
|
|
||||||
def get_status(self):
|
def get_status(self):
|
||||||
"""
|
"""
|
||||||
Retrieves the operational status of the thermal
|
Retrieves the operational status of the thermal
|
||||||
@ -141,3 +159,31 @@ class Thermal(ThermalBase):
|
|||||||
thermal_high_threshold = 0
|
thermal_high_threshold = 0
|
||||||
|
|
||||||
return "{:.3f}".format(thermal_high_threshold)
|
return "{:.3f}".format(thermal_high_threshold)
|
||||||
|
|
||||||
|
def set_high_threshold(self, temperature):
|
||||||
|
"""
|
||||||
|
Sets the 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
|
||||||
|
"""
|
||||||
|
# Thermal threshold values are pre-defined based on HW.
|
||||||
|
return False
|
||||||
|
|
||||||
|
def set_low_threshold(self, temperature):
|
||||||
|
"""
|
||||||
|
Sets the 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
|
||||||
|
"""
|
||||||
|
# Thermal threshold values are pre-defined based on HW.
|
||||||
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user