Skip to content

Commit 109a13c

Browse files
Junchao-Mellanoxabdosi
authored andcommitted
Add thermal control support for SONiC (sonic-net#3949)
1 parent f762c77 commit 109a13c

File tree

36 files changed

+1019
-13
lines changed

36 files changed

+1019
-13
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"thermal_control_algorithm": {
3+
"run_at_boot_up": "false",
4+
"fan_speed_when_suspend": "60"
5+
},
6+
"info_types": [
7+
{
8+
"type": "fan_info"
9+
},
10+
{
11+
"type": "psu_info"
12+
},
13+
{
14+
"type": "chassis_info"
15+
}
16+
],
17+
"policies": [
18+
{
19+
"name": "any fan absence",
20+
"conditions": [
21+
{
22+
"type": "fan.any.absence"
23+
}
24+
],
25+
"actions": [
26+
{
27+
"type": "thermal_control.control",
28+
"status": "false"
29+
},
30+
{
31+
"type": "fan.all.set_speed",
32+
"speed": "100"
33+
}
34+
]
35+
},
36+
{
37+
"name": "any psu absence",
38+
"conditions": [
39+
{
40+
"type": "psu.any.absence"
41+
}
42+
],
43+
"actions": [
44+
{
45+
"type": "thermal_control.control",
46+
"status": "false"
47+
},
48+
{
49+
"type": "fan.all.set_speed",
50+
"speed": "100"
51+
}
52+
]
53+
},
54+
{
55+
"name": "all fan and psu presence",
56+
"conditions": [
57+
{
58+
"type": "fan.all.presence"
59+
},
60+
{
61+
"type": "psu.all.presence"
62+
}
63+
],
64+
"actions": [
65+
{
66+
"type": "fan.all.set_speed",
67+
"speed": "60"
68+
}
69+
]
70+
}
71+
]
72+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../x86_64-mlnx_msn2700-r0/thermal_policy.json

0 commit comments

Comments
 (0)