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
The above two lines of code need to be deleted, otherwise running the 'show interfaces transceiver eeprom -d' command will result in an error.
Steps to reproduce the issue:
1.show interfaces transceiver eeprom -d
Describe the results you received:
root@M2-W6930:/home/admin# show interfaces transceiver eeprom -d
Traceback (most recent call last):
File "/usr/local/bin/sfpshow", line 727, in <module>
cli()
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/sfpshow", line 651, in eeprom
sfp.get_eeprom()
File "/usr/local/lib/python3.11/dist-packages/utilities_common/multi_asic.py", line 157, in wrapped_run_on_all_asics
func(self, *args, **kwargs)
File "/usr/local/bin/sfpshow", line 557, in get_eeprom
self.intf_eeprom[interface] = self.convert_interface_sfp_info_to_cli_output_string(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/sfpshow", line 454, in convert_interface_sfp_info_to_cli_output_string
sfp_info_output = self.convert_sfp_info_to_output_string(sfp_info_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/bin/sfpshow", line 342, in convert_sfp_info_to_output_string
output += '{}{}: {}\n'.format(indent, data_map[key], sfp_info_dict[key])
~~~~~~~~~~~~~^^^^^
KeyError: 'active_firmware'
Describe the results you expected:
The command can successfully obtain module information.
Description
https://github.com/sonic-net/sonic-utilities/blob/6e4130d8e2f95094f8f294206a0578b0babb354e/utilities_common/sfp_helper.py#L36C1-L37C46
The above two lines of code need to be deleted, otherwise running the 'show interfaces transceiver eeprom -d' command will result in an error.
Steps to reproduce the issue:
1.show interfaces transceiver eeprom -d
Describe the results you received:
Describe the results you expected:
The command can successfully obtain module information.
Output of
show version
:Output of
show techsupport
:Uploading sonic_dump_M2-W6930_20240222_084815.tar.gz…
Additional information you deem important (e.g. issue happens only occasionally):
The text was updated successfully, but these errors were encountered: