DellEMC: Skip thermalctld (S6000, S6100, Z9100 and Z9264) and thermal platform API changes (#4644)
- Skip thermalctld in DellEMC S6000, S6100, Z9100 and Z9264 platforms. - Change the return type of thermal Platform APIs in DellEMC S6000, S6100, Z9100 and Z9264 platforms to 'float'.
This commit is contained in:
parent
d7df56872b
commit
f0eb1dbc93
@ -1,3 +1,4 @@
|
||||
{
|
||||
"skip_ledd": true
|
||||
"skip_ledd": true,
|
||||
"skip_thermalctld": true
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"skip_ledd": true
|
||||
"skip_ledd": true,
|
||||
"skip_thermalctld": true
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"skip_ledd": true
|
||||
"skip_ledd": true,
|
||||
"skip_thermalctld": true
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
{
|
||||
"skip_ledd": true
|
||||
"skip_ledd": true,
|
||||
"skip_thermalctld": true
|
||||
}
|
||||
|
@ -179,11 +179,11 @@ class Thermal(ThermalBase):
|
||||
thermal_temperature = self._read_sysfs_file(
|
||||
self.thermal_temperature_file)
|
||||
if (thermal_temperature != 'ERR'):
|
||||
thermal_temperature = float(thermal_temperature) / 1000
|
||||
thermal_temperature = float(thermal_temperature)
|
||||
else:
|
||||
thermal_temperature = 0
|
||||
|
||||
return "{:.3f}".format(thermal_temperature)
|
||||
return thermal_temperature / 1000.0
|
||||
|
||||
def get_high_threshold(self):
|
||||
"""
|
||||
@ -197,11 +197,11 @@ class Thermal(ThermalBase):
|
||||
thermal_high_threshold = self._read_sysfs_file(
|
||||
self.thermal_high_threshold_file)
|
||||
if (thermal_high_threshold != 'ERR'):
|
||||
thermal_high_threshold = float(thermal_high_threshold) / 1000
|
||||
thermal_high_threshold = float(thermal_high_threshold)
|
||||
else:
|
||||
thermal_high_threshold = 0
|
||||
|
||||
return "{:.3f}".format(thermal_high_threshold)
|
||||
return thermal_high_threshold / 1000.0
|
||||
|
||||
def get_low_threshold(self):
|
||||
"""
|
||||
@ -215,11 +215,11 @@ class Thermal(ThermalBase):
|
||||
thermal_low_threshold = self._read_sysfs_file(
|
||||
self.thermal_low_threshold_file)
|
||||
if (thermal_low_threshold != 'ERR'):
|
||||
thermal_low_threshold = float(thermal_low_threshold) / 1000
|
||||
thermal_low_threshold = float(thermal_low_threshold)
|
||||
else:
|
||||
thermal_low_threshold = 0
|
||||
|
||||
return "{:.3f}".format(thermal_low_threshold)
|
||||
return thermal_low_threshold / 1000.0
|
||||
|
||||
def set_high_threshold(self, temperature):
|
||||
"""
|
||||
|
@ -138,11 +138,11 @@ class Thermal(ThermalBase):
|
||||
thermal_temperature = self._read_sysfs_file(
|
||||
self.thermal_temperature_file)
|
||||
if (thermal_temperature != 'ERR'):
|
||||
thermal_temperature = float(thermal_temperature) / 1000
|
||||
thermal_temperature = float(thermal_temperature)
|
||||
else:
|
||||
thermal_temperature = 0
|
||||
|
||||
return "{:.3f}".format(thermal_temperature)
|
||||
return thermal_temperature / 1000.0
|
||||
|
||||
def get_high_threshold(self):
|
||||
"""
|
||||
@ -156,11 +156,11 @@ class Thermal(ThermalBase):
|
||||
thermal_high_threshold = self._read_sysfs_file(
|
||||
self.thermal_high_threshold_file)
|
||||
if (thermal_high_threshold != 'ERR'):
|
||||
thermal_high_threshold = float(thermal_high_threshold) / 1000
|
||||
thermal_high_threshold = float(thermal_high_threshold)
|
||||
else:
|
||||
thermal_high_threshold = 0
|
||||
|
||||
return "{:.3f}".format(thermal_high_threshold)
|
||||
return thermal_high_threshold / 1000.0
|
||||
|
||||
def get_low_threshold(self):
|
||||
"""
|
||||
@ -174,11 +174,11 @@ class Thermal(ThermalBase):
|
||||
thermal_low_threshold = self._read_sysfs_file(
|
||||
self.thermal_low_threshold_file)
|
||||
if (thermal_low_threshold != 'ERR'):
|
||||
thermal_low_threshold = float(thermal_low_threshold) / 1000
|
||||
thermal_low_threshold = float(thermal_low_threshold)
|
||||
else:
|
||||
thermal_low_threshold = 0
|
||||
|
||||
return "{:.3f}".format(thermal_low_threshold)
|
||||
return thermal_low_threshold / 1000.0
|
||||
|
||||
def set_high_threshold(self, temperature):
|
||||
"""
|
||||
|
@ -134,11 +134,11 @@ class Thermal(ThermalBase):
|
||||
thermal_temperature = self._read_sysfs_file(
|
||||
self.thermal_temperature_file)
|
||||
if (thermal_temperature != 'ERR'):
|
||||
thermal_temperature = float(thermal_temperature) / 1000
|
||||
thermal_temperature = float(thermal_temperature)
|
||||
else:
|
||||
thermal_temperature = 0
|
||||
|
||||
return "{:.3f}".format(thermal_temperature)
|
||||
return thermal_temperature / 1000.0
|
||||
|
||||
def get_high_threshold(self):
|
||||
"""
|
||||
@ -152,11 +152,11 @@ class Thermal(ThermalBase):
|
||||
thermal_high_threshold = self._read_sysfs_file(
|
||||
self.thermal_high_threshold_file)
|
||||
if (thermal_high_threshold != 'ERR'):
|
||||
thermal_high_threshold = float(thermal_high_threshold) / 1000
|
||||
thermal_high_threshold = float(thermal_high_threshold)
|
||||
else:
|
||||
thermal_high_threshold = 0
|
||||
|
||||
return "{:.3f}".format(thermal_high_threshold)
|
||||
return thermal_high_threshold / 1000.0
|
||||
|
||||
def get_low_threshold(self):
|
||||
"""
|
||||
@ -170,11 +170,11 @@ class Thermal(ThermalBase):
|
||||
thermal_low_threshold = self._read_sysfs_file(
|
||||
self.thermal_low_threshold_file)
|
||||
if (thermal_low_threshold != 'ERR'):
|
||||
thermal_low_threshold = float(thermal_low_threshold) / 1000
|
||||
thermal_low_threshold = float(thermal_low_threshold)
|
||||
else:
|
||||
thermal_low_threshold = 0
|
||||
|
||||
return "{:.3f}".format(thermal_low_threshold)
|
||||
return thermal_low_threshold / 1000.0
|
||||
|
||||
def set_high_threshold(self, temperature):
|
||||
"""
|
||||
|
@ -94,7 +94,7 @@ class Thermal(ThermalBase):
|
||||
if not is_valid:
|
||||
temperature = 0
|
||||
|
||||
return "{:.3f}".format(temperature)
|
||||
return float(temperature)
|
||||
|
||||
def get_high_threshold(self):
|
||||
"""
|
||||
@ -109,7 +109,7 @@ class Thermal(ThermalBase):
|
||||
if not is_valid:
|
||||
high_threshold = 0
|
||||
|
||||
return "{:.3f}".format(high_threshold)
|
||||
return float(high_threshold)
|
||||
|
||||
def get_low_threshold(self):
|
||||
"""
|
||||
@ -124,7 +124,7 @@ class Thermal(ThermalBase):
|
||||
if not is_valid:
|
||||
low_threshold = 0
|
||||
|
||||
return "{:.3f}".format(low_threshold)
|
||||
return float(low_threshold)
|
||||
|
||||
def set_high_threshold(self, temperature):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user