diff --git a/sonic_platform_base/sonic_sfp/qsfp_dd.py b/sonic_platform_base/sonic_sfp/qsfp_dd.py index f2335e3426b5..02281d9970b8 100644 --- a/sonic_platform_base/sonic_sfp/qsfp_dd.py +++ b/sonic_platform_base/sonic_sfp/qsfp_dd.py @@ -92,7 +92,10 @@ def decode_media_type(self, eeprom_data, offset, size): def parse_application(self, sfp_media_type_dict, host_interface, media_interface): host_result = host_electrical_interface[host_interface] - media_result = sfp_media_type_dict[media_interface] + if media_interface in sfp_media_type_dict.keys(): + media_result = sfp_media_type_dict[media_interface] + else: + media_result = 'Unknown' return host_result, media_result version = '1.0'