@@ -41,7 +41,7 @@ def get_transceiver_info(self):
41
41
vendor_oui |1*255VCHAR |vendor OUI
42
42
========================================================================
43
43
"""
44
- return NotImplementedError
44
+ raise NotImplementedError
45
45
46
46
def get_transceiver_bulk_status (self ):
47
47
"""
@@ -69,7 +69,7 @@ def get_transceiver_bulk_status(self):
69
69
| |for example, tx2power stands for tx power of channel 2.
70
70
========================================================================
71
71
"""
72
- return NotImplementedError
72
+ raise NotImplementedError
73
73
74
74
def get_transceiver_threshold_info (self ):
75
75
"""
@@ -102,7 +102,7 @@ def get_transceiver_threshold_info(self):
102
102
txbiaslowwarning |FLOAT |Low Warning Threshold value of tx Bias Current in mA.
103
103
========================================================================
104
104
"""
105
- return NotImplementedError
105
+ raise NotImplementedError
106
106
107
107
def get_reset_status (self ):
108
108
"""
@@ -111,7 +111,7 @@ def get_reset_status(self):
111
111
Returns:
112
112
A Boolean, True if reset enabled, False if disabled
113
113
"""
114
- return NotImplementedError
114
+ raise NotImplementedError
115
115
116
116
def get_rx_los (self ):
117
117
"""
@@ -121,7 +121,7 @@ def get_rx_los(self):
121
121
A Boolean, True if SFP has RX LOS, False if not.
122
122
Note : RX LOS status is latched until a call to get_rx_los or a reset.
123
123
"""
124
- return NotImplementedError
124
+ raise NotImplementedError
125
125
126
126
def get_tx_fault (self ):
127
127
"""
@@ -131,7 +131,7 @@ def get_tx_fault(self):
131
131
A Boolean, True if SFP has TX fault, False if not
132
132
Note : TX fault status is lached until a call to get_tx_fault or a reset.
133
133
"""
134
- return NotImplementedError
134
+ raise NotImplementedError
135
135
136
136
def get_tx_disable (self ):
137
137
"""
@@ -140,7 +140,7 @@ def get_tx_disable(self):
140
140
Returns:
141
141
A Boolean, True if tx_disable is enabled, False if disabled
142
142
"""
143
- return NotImplementedError
143
+ raise NotImplementedError
144
144
145
145
def get_tx_disable_channel (self ):
146
146
"""
@@ -152,7 +152,7 @@ def get_tx_disable_channel(self):
152
152
As an example, a returned value of 0x5 indicates that channel 0
153
153
and channel 2 have been disabled.
154
154
"""
155
- return NotImplementedError
155
+ raise NotImplementedError
156
156
157
157
def get_lpmode (self ):
158
158
"""
@@ -161,7 +161,7 @@ def get_lpmode(self):
161
161
Returns:
162
162
A Boolean, True if lpmode is enabled, False if disabled
163
163
"""
164
- return NotImplementedError
164
+ raise NotImplementedError
165
165
166
166
def get_power_override (self ):
167
167
"""
@@ -170,7 +170,7 @@ def get_power_override(self):
170
170
Returns:
171
171
A Boolean, True if power-override is enabled, False if disabled
172
172
"""
173
- return NotImplementedError
173
+ raise NotImplementedError
174
174
175
175
def get_temperature (self ):
176
176
"""
@@ -179,7 +179,7 @@ def get_temperature(self):
179
179
Returns:
180
180
An integer number of current temperature in Celsius
181
181
"""
182
- return NotImplementedError
182
+ raise NotImplementedError
183
183
184
184
185
185
def get_voltage (self ):
@@ -189,7 +189,7 @@ def get_voltage(self):
189
189
Returns:
190
190
An integer number of supply voltage in mV
191
191
"""
192
- return NotImplementedError
192
+ raise NotImplementedError
193
193
194
194
def get_tx_bias (self ):
195
195
"""
@@ -200,7 +200,7 @@ def get_tx_bias(self):
200
200
for channel 0 to channel 4.
201
201
Ex. ['110.09', '111.12', '108.21', '112.09']
202
202
"""
203
- return NotImplementedError
203
+ raise NotImplementedError
204
204
205
205
def get_rx_power (self ):
206
206
"""
@@ -211,7 +211,7 @@ def get_rx_power(self):
211
211
power in mW for channel 0 to channel 4.
212
212
Ex. ['1.77', '1.71', '1.68', '1.70']
213
213
"""
214
- return NotImplementedError
214
+ raise NotImplementedError
215
215
216
216
def get_tx_power (self ):
217
217
"""
@@ -222,7 +222,7 @@ def get_tx_power(self):
222
222
for channel 0 to channel 4.
223
223
Ex. ['1.86', '1.86', '1.86', '1.86']
224
224
"""
225
- return NotImplementedError
225
+ raise NotImplementedError
226
226
227
227
def reset (self ):
228
228
"""
@@ -231,7 +231,7 @@ def reset(self):
231
231
Returns:
232
232
A boolean, True if successful, False if not
233
233
"""
234
- return NotImplementedError
234
+ raise NotImplementedError
235
235
236
236
def tx_disable (self , tx_disable ):
237
237
"""
@@ -244,7 +244,7 @@ def tx_disable(self, tx_disable):
244
244
Returns:
245
245
A boolean, True if tx_disable is set successfully, False if not
246
246
"""
247
- return NotImplementedError
247
+ raise NotImplementedError
248
248
249
249
def tx_disable_channel (self , channel , disable ):
250
250
"""
@@ -259,7 +259,7 @@ def tx_disable_channel(self, channel, disable):
259
259
Returns:
260
260
A boolean, True if successful, False if not
261
261
"""
262
- return NotImplementedError
262
+ raise NotImplementedError
263
263
264
264
def set_lpmode (self , lpmode ):
265
265
"""
@@ -272,7 +272,7 @@ def set_lpmode(self, lpmode):
272
272
Returns:
273
273
A boolean, True if lpmode is set successfully, False if not
274
274
"""
275
- return NotImplementedError
275
+ raise NotImplementedError
276
276
277
277
def set_power_override (self , power_override , power_set ):
278
278
"""
@@ -293,4 +293,4 @@ def set_power_override(self, power_override, power_set):
293
293
A boolean, True if power-override and power_set are set successfully,
294
294
False if not
295
295
"""
296
- return NotImplementedError
296
+ raise NotImplementedError
0 commit comments