Skip to content

Commit 4037867

Browse files
Andriy KokhanKostiantynYarovyiBfVadymYashchenkodmytroxIntelvboykox
authored
[BFN] Updated platform plugins (#9540)
* [BFN] Updated platform APIs impl Signed-off-by: Andriy Kokhan <[email protected]> * Extended BFN platform SFP APIs implementation * Update sfp.py * [BFN] Extended SFP platform plugin implementation Signed-off-by: Andriy Kokhan <[email protected]> * [BFN] Extended Fans platform plugin implementation * [BFN] divided classes Fan and FanDrawer into 2 files * Signed-off-by: Vadym Yashchenko <[email protected]> What I did Add get_model() function Add get_low_critical_threshold() function Change __get(...) function. How I did it Differnece from previous implementation of __get(...) function is return real value or -9999.9 if value is not provided by thrift API * Add get_presence() function and revised __get() function Signed-off-by: Vadym Yashchenko <[email protected]> * [BFN] Updated PSU platform APIs impl Signed-off-by: Dmytro Lytvynenko <[email protected]> * Added BFN PSU cache (#9) Signed-off-by: Andriy Kokhan <[email protected]> * [BFN] Fans and Fantray platform APIs update (#7) * [BFN] Updated SFP platform APIs (#10) Signed-off-by: Volodymyr Boyko <[email protected]> * [BFN] Updated platform API for thermal (#8) * Signed-off-by: Vadym Yashchenko <[email protected]> * Revert "[BFN] Fans and Fantray platform APIs update (#7)" (#11) This reverts commit c62a733. * Add support health monitor system (#15) Signed-off-by: Petro Bratash <[email protected]> * Update chassis.py * [BFN] Updated FANs and FAN Tray platform API (#14) * Fix fix_alignment (#17) Signed-off-by: Petro Bratash <[email protected]> * [BFN] Improvement show environment (#16) * Added PSU temperature skip into platform.json (#18) Signed-off-by: Andriy Kokhan <[email protected]> * Do not skip psud on Newport Signed-off-by: Andriy Kokhan <[email protected]> * [BFN] fix fan status from Not OK to Ok (#19) * [BFN] Updated SFP platform plugin (#13) Signed-off-by: Volodymyr Boyko <[email protected]> * [DPB] Fix typo for Ethernet0 2x200G[100G,40G] breakout mode (#21) Signed-off-by: Mykola Gerasymenko <[email protected]> * [barefoot] Tmp fix vendor_rev (#22) Signed-off-by: Volodymyr Boyko <[email protected]> * Fixed python issues in sonic_platform/fan_drawer.py Signed-off-by: Andriy Kokhan <[email protected]> * Updated fan_drawer.py * Fixing trailing white spaces in fan_drawer.py * [BFN] Fix thrift for SFPs API Signed-off-by: Volodymyr Boyko <[email protected]> * In platform.json, replaced 'false' with '0' to workaround ast.literal_eval() issue Signed-off-by: Andriy Kokhan <[email protected]> * [Newport] Thermal manager (#23) * Signed-off-by: Vadym Yashchenko <[email protected]> * Revert "In platform.json, replaced 'false' with '0' to workaround ast.literal_eval() issue" This reverts commit 1e73127. * Removed 'controllable' options from platform.json to fix factory default config generation Signed-off-by: Andriy Kokhan <[email protected]> * Update thermal_manager.py * Migrated SFP plugin to sonic_xcvr API (#30) Signed-off-by: Andriy Kokhan <[email protected]> Co-authored-by: KostiantynYarovyiBf <[email protected]> Co-authored-by: Vadym Yashchenko <[email protected]> Co-authored-by: Dmytro Lytvynenko <[email protected]> Co-authored-by: Volodymyr Boiko <[email protected]> Co-authored-by: Petro Bratash <[email protected]> Co-authored-by: Mykola Gerasymenko <[email protected]>
1 parent a015012 commit 4037867

File tree

18 files changed

+6404
-1233
lines changed

18 files changed

+6404
-1233
lines changed

device/barefoot/x86_64-accton_as9516_32d-r0/platform.json

+62-51
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
"name": "counter-rotating-fan-6"
2222
}
2323
],
24-
"fan_drawers":[
24+
"fan_drawers": [
2525
{
26-
"name": "fantray",
27-
"num_fans" : 6,
26+
"name": "fantray-1",
2827
"fans": [
2928
{
3029
"name": "counter-rotating-fan-1"
@@ -57,147 +56,159 @@
5756
],
5857
"thermals": [
5958
{
60-
"name": "tmp75-i2c-3-4b:switch-temp"
59+
"name": "com_e_driver-i2c-4-33:cpu-temp"
6160
},
6261
{
6362
"name": "com_e_driver-i2c-4-33:memory-temp"
6463
},
6564
{
66-
"name": "com_e_driver-i2c-4-33:cpu-temp"
65+
"name": "psu_driver-i2c-7-59:psu2-temp1"
6766
},
6867
{
69-
"name": "coretemp-isa-0000:core-0"
68+
"name": "psu_driver-i2c-7-59:psu2-temp2"
7069
},
7170
{
72-
"name": "coretemp-isa-0000:core-1"
71+
"name": "psu_driver-i2c-7-59:psu2-temp3"
7372
},
7473
{
75-
"name": "coretemp-isa-0000:core-2"
74+
"name": "psu_driver-i2c-7-5a:psu1-temp1"
7675
},
7776
{
78-
"name": "coretemp-isa-0000:core-3"
77+
"name": "psu_driver-i2c-7-5a:psu1-temp2"
7978
},
8079
{
81-
"name": "coretemp-isa-0000:package-id-0"
80+
"name": "psu_driver-i2c-7-5a:psu1-temp3"
8281
},
8382
{
84-
"name": "psu_driver-i2c-7-5a:psu1-temp1"
83+
"name": "tmp75-i2c-3-48:chip-temp"
8584
},
8685
{
87-
"name": "psu_driver-i2c-7-5a:psu1-temp2"
86+
"name": "tmp75-i2c-3-49:exhaust2-temp"
8887
},
8988
{
90-
"name": "psu_driver-i2c-7-5a:psu1-temp3"
89+
"name": "tmp75-i2c-3-4a:exhaust-temp"
9190
},
9291
{
93-
"name": "tmp75-i2c-3-4a:inlet-left-temp"
92+
"name": "tmp75-i2c-3-4b:intake-temp"
9493
},
9594
{
96-
"name": "tmp75-i2c-3-4c:inlet-right-temp"
95+
"name": "tmp75-i2c-3-4c:tofino-temp"
9796
},
9897
{
99-
"name": "tmp75-i2c-3-4d:temp1"
98+
"name": "tmp75-i2c-3-4d:intake2-temp"
10099
},
101100
{
102-
"name": "tmp75-i2c-3-48:outlet-middle-temp"
101+
"name": "coretemp-isa-0000:package-id-0"
102+
},
103+
{
104+
"name": "coretemp-isa-0000:core-0"
105+
},
106+
{
107+
"name": "coretemp-isa-0000:core-1"
103108
},
104109
{
105-
"name": "tmp75-i2c-3-49:inlet-middle-temp"
110+
"name": "coretemp-isa-0000:core-2"
111+
},
112+
{
113+
"name": "coretemp-isa-0000:core-3"
106114
}
107115
],
108116
"sfps": [
109117
{
110-
"name": "Ethernet0"
118+
"name": "sfp1"
119+
},
120+
{
121+
"name": "sfp2"
111122
},
112123
{
113-
"name": "Ethernet8"
124+
"name": "sfp3"
114125
},
115126
{
116-
"name": "Ethernet16"
127+
"name": "sfp4"
117128
},
118129
{
119-
"name": "Ethernet32"
130+
"name": "sfp5"
120131
},
121132
{
122-
"name": "Ethernet40"
133+
"name": "sfp6"
123134
},
124135
{
125-
"name": "Ethernet48"
136+
"name": "sfp7"
126137
},
127138
{
128-
"name": "Ethernet56"
139+
"name": "sfp8"
129140
},
130141
{
131-
"name": "Ethernet64"
142+
"name": "sfp9"
132143
},
133144
{
134-
"name": "Ethernet72"
145+
"name": "sfp10"
135146
},
136147
{
137-
"name": "Ethernet80"
148+
"name": "sfp11"
138149
},
139150
{
140-
"name": "Ethernet88"
151+
"name": "sfp12"
141152
},
142153
{
143-
"name": "Ethernet96"
154+
"name": "sfp13"
144155
},
145156
{
146-
"name": "Ethernet104"
157+
"name": "sfp14"
147158
},
148159
{
149-
"name": "Ethernet112"
160+
"name": "sfp15"
150161
},
151162
{
152-
"name": "Ethernet120"
163+
"name": "sfp16"
153164
},
154165
{
155-
"name": "Ethernet128"
166+
"name": "sfp17"
156167
},
157168
{
158-
"name": "Ethernet136"
169+
"name": "sfp18"
159170
},
160171
{
161-
"name": "Ethernet144"
172+
"name": "sfp19"
162173
},
163174
{
164-
"name": "Ethernet152"
175+
"name": "sfp20"
165176
},
166177
{
167-
"name": "Ethernet160"
178+
"name": "sfp21"
168179
},
169180
{
170-
"name": "Ethernet168"
181+
"name": "sfp22"
171182
},
172183
{
173-
"name": "Ethernet176"
184+
"name": "sfp23"
174185
},
175186
{
176-
"name": "Ethernet184"
187+
"name": "sfp24"
177188
},
178189
{
179-
"name": "Ethernet192"
190+
"name": "sfp25"
180191
},
181192
{
182-
"name": "Ethernet200"
193+
"name": "sfp26"
183194
},
184195
{
185-
"name": "Ethernet208"
196+
"name": "sfp27"
186197
},
187198
{
188-
"name": "Ethernet216"
199+
"name": "sfp28"
189200
},
190201
{
191-
"name": "Ethernet224"
202+
"name": "sfp29"
192203
},
193204
{
194-
"name": "Ethernet232"
205+
"name": "sfp30"
195206
},
196207
{
197-
"name": "Ethernet240"
208+
"name": "sfp31"
198209
},
199210
{
200-
"name": "Ethernet248"
211+
"name": "sfp32"
201212
}
202213
]
203214
},
@@ -207,7 +218,7 @@
207218
"lanes": "0,1,2,3,4,5,6,7",
208219
"breakout_modes": {
209220
"1x400G[200G]": ["Ethernet0"],
210-
"2x200G[100G,40G]": ["Ethernet0, Ethernet4"],
221+
"2x200G[100G,40G]": ["Ethernet0", "Ethernet4"],
211222
"4x100G[50G]": ["Ethernet0", "Ethernet2", "Ethernet4", "Ethernet6"],
212223
"8x50G[25G,10G]": ["Ethernet0", "Ethernet1", "Ethernet2", "Ethernet3", "Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"],
213224
"1x200G[100G,40G](4)+4x50G[25G,10G](4)": ["Ethernet0", "Ethernet4", "Ethernet5", "Ethernet6", "Ethernet7"],
@@ -587,4 +598,4 @@
587598
}
588599
}
589600
}
590-
}
601+
}

device/barefoot/x86_64-accton_as9516_32d-r0/pmon_daemon_control.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"skip_thermalctld": false,
55
"skip_ledd": true,
66
"skip_xcvrd": false,
7-
"skip_psud": true,
7+
"skip_psud": false,
88
"skip_syseepromd": false
99
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"services_to_ignore": [],
3+
"devices_to_ignore": [],
4+
"user_defined_checkers": [],
5+
"polling_interval": 60,
6+
"led_color": {
7+
"fault": "amber",
8+
"normal": "green",
9+
"booting": "orange_blink"
10+
}
11+
}

0 commit comments

Comments
 (0)