File tree 1 file changed +7
-3
lines changed
sonic_platform_base/sonic_sfp
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1261,8 +1261,12 @@ def get_transceiver_change_event(self, timeout=0):
1261
1261
event. When timeout is non-zero, the function can also return when the timer expires.
1262
1262
When timer expires, the return status is True and events is empty.
1263
1263
:returns: (status, events)
1264
- :status: Boolean, True if call successful, False if not;
1265
- :events: dictionary for pysical port index and the SFP status,
1266
- status='1' represent plug in, '0' represent plug out like {'0': '1', '31':'0'}
1264
+ :status: Boolean, True if call successful and no system level event/error occurred,
1265
+ False if call not success or system level event/error occurred.
1266
+ :events: dictionary for physical port index and the SFP status,
1267
+ status='1' represent plug in, '0' represent plug out like {'0': '1', '31':'0'}
1268
+ when it comes to system level event/error, the index will be '-1',
1269
+ and status can be 'system_not_ready', 'system_become_ready', 'system_fail',
1270
+ like {'-1':'system_not_ready'}.
1267
1271
"""
1268
1272
return
You can’t perform that action at this time.
0 commit comments