DellEMC S6100 : Platform2.0 API [Module, Thermal]

This commit is contained in:
Arun Saravanan Balachandran 2019-08-20 10:56:57 -04:00
parent c870b39589
commit 79b1eb8fc1
3 changed files with 58 additions and 1 deletions

View File

@ -134,3 +134,14 @@ class Module(ModuleBase):
status = True
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'

View File

@ -210,7 +210,7 @@ class Psu(PsuBase):
return status
def set_status_led(self):
def set_status_led(self, color):
"""
Sets the state of the PSU status LED
Args:

View File

@ -87,6 +87,24 @@ class Thermal(ThermalBase):
"""
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):
"""
Retrieves the operational status of the thermal
@ -141,3 +159,31 @@ class Thermal(ThermalBase):
thermal_high_threshold = 0
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