[Mellanox] [Platform API] Update SN2201 dynamic minimum fan speed table (#12602)
- Why I did it Update SN2201 dynamic minimum fan speed table according to data provided by the thermal team. - How I did it Update the thermal table in device_data.py - How to verify it Run platform related regression Signed-off-by: Kebo Liu <kebol@nvidia.com>
This commit is contained in:
parent
1ea37e2723
commit
38bf957072
@ -156,6 +156,10 @@ DEVICE_DATA = {
|
||||
},
|
||||
'x86_64-nvidia_sn2201-r0': {
|
||||
'thermal': {
|
||||
'minimum_table': {
|
||||
"unk_trust": {"-127:30": 13, "31:35": 14, "36:40": 15, "41:120": 16},
|
||||
"unk_untrust": {"-127:15": 13, "16:20": 14, "21:25": 15, "26:30": 16, "31:35": 17, "36:40": 18, "41:120": 19},
|
||||
},
|
||||
"capability": {
|
||||
"comex_amb": False,
|
||||
"cpu_amb": True
|
||||
|
@ -93,10 +93,10 @@ class TestThermal:
|
||||
assert gearbox_thermal_count == 2
|
||||
assert cpu_thermal_count == 2
|
||||
|
||||
@mock.patch('sonic_platform.device_data.DeviceDataManager.get_platform_name', mock.MagicMock(return_value='x86_64-nvidia_sn2201-r0'))
|
||||
@mock.patch('sonic_platform.device_data.DeviceDataManager.get_thermal_capability', mock.MagicMock(return_value={'comex_amb': False, 'cpu_amb': True, 'swb_amb': True}))
|
||||
def test_chassis_thermal_includes(self):
|
||||
from sonic_platform.thermal import THERMAL_NAMING_RULE
|
||||
DeviceDataManager.get_platform_name = mock.MagicMock(return_value='x86_64-nvidia_sn2201-r0')
|
||||
DeviceDataManager.get_thermal_capability = mock.MagicMock(return_value={'comex_amb': False, 'cpu_amb': True, 'swb_amb': True})
|
||||
chassis = Chassis()
|
||||
thermal_list = chassis.get_all_thermals()
|
||||
assert thermal_list
|
||||
|
Loading…
Reference in New Issue
Block a user