Skip to content

Commit e079b09

Browse files
keboliujleveque
authored andcommitted
add more error code to get_transceiver_change_event (sonic-net#50)
1 parent af6b631 commit e079b09

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

sonic_platform_base/sonic_sfp/sfputilbase.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1261,8 +1261,12 @@ def get_transceiver_change_event(self, timeout=0):
12611261
event. When timeout is non-zero, the function can also return when the timer expires.
12621262
When timer expires, the return status is True and events is empty.
12631263
: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'}.
12671271
"""
12681272
return

0 commit comments

Comments
 (0)