Skip to content

Commit ac7e06d

Browse files
keboliulguohan
authored andcommitted
[devices]: add stubs for new API in SfpUtilBase for all devices (#2038)
1 parent 5d23a43 commit ac7e06d

File tree

35 files changed

+279
-5
lines changed

35 files changed

+279
-5
lines changed

device/accton/x86_64-accton_as5712_54x-r0/plugins/sfputil.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -225,4 +225,12 @@ def reset(self, port_num):
225225
reg_file.write(reg_value)
226226
reg_file.close()
227227

228-
return True
228+
return True
229+
230+
def get_transceiver_change_event(self):
231+
"""
232+
TODO: This function need to be implemented
233+
when decide to support monitoring SFP(Xcvrd)
234+
on this platform.
235+
"""
236+
raise NotImplementedError

device/accton/x86_64-accton_as7116_54x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,11 @@ def qsfp_ports(self):
148148
@property
149149
def port_to_eeprom_mapping(self):
150150
return self._port_to_eeprom_mapping
151+
152+
def get_transceiver_change_event(self):
153+
"""
154+
TODO: This function need to be implemented
155+
when decide to support monitoring SFP(Xcvrd)
156+
on this platform.
157+
"""
158+
raise NotImplementedError

device/accton/x86_64-accton_as7212_54x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,11 @@ def qsfp_ports(self):
125125
@property
126126
def port_to_eeprom_mapping(self):
127127
return self._port_to_eeprom_mapping
128+
129+
def get_transceiver_change_event(self):
130+
"""
131+
TODO: This function need to be implemented
132+
when decide to support monitoring SFP(Xcvrd)
133+
on this platform.
134+
"""
135+
raise NotImplementedError

device/accton/x86_64-accton_as7312_54x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,11 @@ def reset(self, port_num):
213213
reg_file.close()
214214

215215
return True
216+
217+
def get_transceiver_change_event(self):
218+
"""
219+
TODO: This function need to be implemented
220+
when decide to support monitoring SFP(Xcvrd)
221+
on this platform.
222+
"""
223+
raise NotImplementedError

device/accton/x86_64-accton_as7312_54xs-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,11 @@ def reset(self, port_num):
213213
reg_file.close()
214214

215215
return True
216+
217+
def get_transceiver_change_event(self):
218+
"""
219+
TODO: This function need to be implemented
220+
when decide to support monitoring SFP(Xcvrd)
221+
on this platform.
222+
"""
223+
raise NotImplementedError

device/accton/x86_64-accton_as7326_56x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,11 @@ def set_low_power_mode(self, port_num, lpmode):
201201

202202
def reset(self, port_num):
203203
raise NotImplementedError
204+
205+
def get_transceiver_change_event(self):
206+
"""
207+
TODO: This function need to be implemented
208+
when decide to support monitoring SFP(Xcvrd)
209+
on this platform.
210+
"""
211+
raise NotImplementedError

device/accton/x86_64-accton_as7512_32x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,11 @@ def qsfp_ports(self):
7070
@property
7171
def port_to_eeprom_mapping(self):
7272
return self._port_to_eeprom_mapping
73+
74+
def get_transceiver_change_event(self):
75+
"""
76+
TODO: This function need to be implemented
77+
when decide to support monitoring SFP(Xcvrd)
78+
on this platform.
79+
"""
80+
raise NotImplementedError

device/accton/x86_64-accton_as7712_32x-r0/plugins/sfputil.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,10 @@ def qsfp_ports(self):
125125
def port_to_eeprom_mapping(self):
126126
return self._port_to_eeprom_mapping
127127

128-
128+
def get_transceiver_change_event(self):
129+
"""
130+
TODO: This function need to be implemented
131+
when decide to support monitoring SFP(Xcvrd)
132+
on this platform.
133+
"""
134+
raise NotImplementedError

device/accton/x86_64-accton_as7716_32x-r0/plugins/sfputil.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,12 @@ def reset(self, port_num):
131131
reg_file.write(reg_value)
132132
reg_file.close()
133133

134-
return True
134+
return True
135+
136+
def get_transceiver_change_event(self):
137+
"""
138+
TODO: This function need to be implemented
139+
when decide to support monitoring SFP(Xcvrd)
140+
on this platform.
141+
"""
142+
raise NotImplementedError

device/accton/x86_64-accton_as7716_32xb-r0/plugins/sfputil.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,10 @@ def reset(self, port_num):
135135
(status, output) = commands.getstatusoutput (mod_rst_cmd)
136136
return True
137137

138-
138+
def get_transceiver_change_event(self):
139+
"""
140+
TODO: This function need to be implemented
141+
when decide to support monitoring SFP(Xcvrd)
142+
on this platform.
143+
"""
144+
raise NotImplementedError

device/accton/x86_64-accton_as7816_64x-r0/plugins/sfputil.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,10 @@ def qsfp_ports(self):
152152
def port_to_eeprom_mapping(self):
153153
return self._port_to_eeprom_mapping
154154

155-
155+
def get_transceiver_change_event(self):
156+
"""
157+
TODO: This function need to be implemented
158+
when decide to support monitoring SFP(Xcvrd)
159+
on this platform.
160+
"""
161+
raise NotImplementedError

device/centec/x86_64-centec_e582_48x6q-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,11 @@ def reset(self, port_num):
158158

159159
return False
160160

161+
def get_transceiver_change_event(self):
162+
"""
163+
TODO: This function need to be implemented
164+
when decide to support monitoring SFP(Xcvrd)
165+
on this platform.
166+
"""
167+
raise NotImplementedError
168+

device/dell/x86_64-dell_s6000_s1220-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,11 @@ def reset(self, port_num):
173173
reg_file.close()
174174

175175
return True
176+
177+
def get_transceiver_change_event(self):
178+
"""
179+
TODO: This function need to be implemented
180+
when decide to support monitoring SFP(Xcvrd)
181+
on this platform.
182+
"""
183+
raise NotImplementedError

device/dell/x86_64-dell_s6100_c2538-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -431,3 +431,11 @@ def reset(self, port_num):
431431
reg_file.close()
432432

433433
return True
434+
435+
def get_transceiver_change_event(self):
436+
"""
437+
TODO: This function need to be implemented
438+
when decide to support monitoring SFP(Xcvrd)
439+
on this platform.
440+
"""
441+
raise NotImplementedError

device/dell/x86_64-dellemc_z9264f_c3538-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,11 @@ def reset(self, port_num):
190190
status = self.pci_set_value(self.BASE_RES_PATH, reg_value, port_offset)
191191

192192
return True
193+
194+
def get_transceiver_change_event(self):
195+
"""
196+
TODO: This function need to be implemented
197+
when decide to support monitoring SFP(Xcvrd)
198+
on this platform.
199+
"""
200+
raise NotImplementedError

device/delta/x86_64-delta_ag5648-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,11 @@ def reset(self, port_num):
201201
reg_file.close()
202202

203203
return True
204+
205+
def get_transceiver_change_event(self):
206+
"""
207+
TODO: This function need to be implemented
208+
when decide to support monitoring SFP(Xcvrd)
209+
on this platform.
210+
"""
211+
raise NotImplementedError

device/delta/x86_64-delta_ag9032v1-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,11 @@ def reset(self, port_num):
173173
reg_file.close()
174174

175175
return True
176+
177+
def get_transceiver_change_event(self):
178+
"""
179+
TODO: This function need to be implemented
180+
when decide to support monitoring SFP(Xcvrd)
181+
on this platform.
182+
"""
183+
raise NotImplementedError

device/delta/x86_64-delta_ag9064-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,11 @@ def reset(self, port_num):
173173
reg_file.close()
174174

175175
return True
176+
177+
def get_transceiver_change_event(self):
178+
"""
179+
TODO: This function need to be implemented
180+
when decide to support monitoring SFP(Xcvrd)
181+
on this platform.
182+
"""
183+
raise NotImplementedError

device/delta/x86_64-delta_et-6248brb-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,11 @@ def reset(self, port_num):
8686
return False
8787

8888
return False
89+
90+
def get_transceiver_change_event(self):
91+
"""
92+
TODO: This function need to be implemented
93+
when decide to support monitoring SFP(Xcvrd)
94+
on this platform.
95+
"""
96+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s8810_32q-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,11 @@ def reset(self, port_num):
145145
val_file.close()
146146

147147
return True
148+
149+
def get_transceiver_change_event(self):
150+
"""
151+
TODO: This function need to be implemented
152+
when decide to support monitoring SFP(Xcvrd)
153+
on this platform.
154+
"""
155+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s8900_54xc-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,11 @@ def reset(self, port_num):
277277
val_file.close()
278278

279279
return True
280+
281+
def get_transceiver_change_event(self):
282+
"""
283+
TODO: This function need to be implemented
284+
when decide to support monitoring SFP(Xcvrd)
285+
on this platform.
286+
"""
287+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s8900_64xc-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,11 @@ def reset(self, port_num):
254254
reg_file.close()
255255

256256
return True
257+
258+
def get_transceiver_change_event(self):
259+
"""
260+
TODO: This function need to be implemented
261+
when decide to support monitoring SFP(Xcvrd)
262+
on this platform.
263+
"""
264+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s9100-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,11 @@ def reset(self, port_num):
280280
val_file.close()
281281

282282
return True
283+
284+
def get_transceiver_change_event(self):
285+
"""
286+
TODO: This function need to be implemented
287+
when decide to support monitoring SFP(Xcvrd)
288+
on this platform.
289+
"""
290+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s9130_32x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,11 @@ def reset(self, port_num):
185185
gpio_file.close()
186186

187187
return True
188+
189+
def get_transceiver_change_event(self):
190+
"""
191+
TODO: This function need to be implemented
192+
when decide to support monitoring SFP(Xcvrd)
193+
on this platform.
194+
"""
195+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s9180_32x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -288,3 +288,11 @@ def reset(self, port_num):
288288
val_file.close()
289289

290290
return True
291+
292+
def get_transceiver_change_event(self):
293+
"""
294+
TODO: This function need to be implemented
295+
when decide to support monitoring SFP(Xcvrd)
296+
on this platform.
297+
"""
298+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s9200_64x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -258,3 +258,11 @@ def reset(self, port_num):
258258
reg_file.close()
259259

260260
return True
261+
262+
def get_transceiver_change_event(self):
263+
"""
264+
TODO: This function need to be implemented
265+
when decide to support monitoring SFP(Xcvrd)
266+
on this platform.
267+
"""
268+
raise NotImplementedError

device/ingrasys/x86_64-ingrasys_s9230_64x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -291,3 +291,11 @@ def reset(self, port_num):
291291

292292
return True
293293

294+
def get_transceiver_change_event(self):
295+
"""
296+
TODO: This function need to be implemented
297+
when decide to support monitoring SFP(Xcvrd)
298+
on this platform.
299+
"""
300+
raise NotImplementedError
301+

device/ingrasys/x86_64-ingrasys_s9280_64x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,11 @@ def reset(self, port_num):
298298

299299
return True
300300

301+
def get_transceiver_change_event(self):
302+
"""
303+
TODO: This function need to be implemented
304+
when decide to support monitoring SFP(Xcvrd)
305+
on this platform.
306+
"""
307+
raise NotImplementedError
308+

device/inventec/x86_64-inventec_d7032q28b-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,11 @@ def reset(self, port_num):
177177
reg_file.close()
178178

179179
return True
180+
181+
def get_transceiver_change_event(self):
182+
"""
183+
TODO: This function need to be implemented
184+
when decide to support monitoring SFP(Xcvrd)
185+
on this platform.
186+
"""
187+
raise NotImplementedError

device/inventec/x86_64-inventec_d7054q28b-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,11 @@ def reset(self, port_num):
207207
reg_file.close()
208208

209209
return True
210+
211+
def get_transceiver_change_event(self):
212+
"""
213+
TODO: This function need to be implemented
214+
when decide to support monitoring SFP(Xcvrd)
215+
on this platform.
216+
"""
217+
raise NotImplementedError

device/inventec/x86_64-inventec_d7264q28b-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,11 @@ def reset(self, port_num):
217217
reg_file.close()
218218

219219
return True
220+
221+
def get_transceiver_change_event(self):
222+
"""
223+
TODO: This function need to be implemented
224+
when decide to support monitoring SFP(Xcvrd)
225+
on this platform.
226+
"""
227+
raise NotImplementedError

device/marvell/x86_64-marvell_slm5401_54x-r0/plugins/sfputil.py

+8
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,11 @@ def qsfp_ports(self):
125125
@property
126126
def port_to_eeprom_mapping(self):
127127
return self._port_to_eeprom_mapping
128+
129+
def get_transceiver_change_event(self):
130+
"""
131+
TODO: This function need to be implemented
132+
when decide to support monitoring SFP(Xcvrd)
133+
on this platform.
134+
"""
135+
raise NotImplementedError

0 commit comments

Comments
 (0)