You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to dump transceiver information for CMIS device, it crashes with following trace.
python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
from sonic_platform.chassis import Chassis
c=Chassis()
c.get_sfp(1).get_transceiver_info()
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.9/dist-packages/sonic_platform_base/sonic_xcvr/sfp_optoe_base.py", line 24, in get_transceiver_info
return api.get_transceiver_info() if api is not None else None
File "/usr/local/lib/python3.9/dist-packages/sonic_platform_base/sonic_xcvr/api/public/cmis.py", line 23, in get_transceiver_info
admin_info = self.xcvr_eeprom.read(consts.ADMIN_INFO_FIELD)
File "/usr/local/lib/python3.9/dist-packages/sonic_platform_base/sonic_xcvr/xcvr_eeprom.py", line 28, in read
return field.decode(raw_data, **decoded_deps)
File "/usr/local/lib/python3.9/dist-packages/sonic_platform_base/sonic_xcvr/fields/xcvr_field.py", line 235, in decode
result[field.name] = field.decode(raw_data[offset - start: offset + field.get_size() - start],
File "/usr/local/lib/python3.9/dist-packages/sonic_platform_base/sonic_xcvr/fields/public/cmis.py", line 12, in decode
mult = 10 ** (len_mult - 1)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
The text was updated successfully, but these errors were encountered:
While trying to dump transceiver information for CMIS device, it crashes with following trace.
python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: