File tree 1 file changed +6
-2
lines changed
sonic_platform_base/sonic_sfp
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -777,7 +777,7 @@ def get_transceiver_info_dict(self, port_num):
777
777
transceiver_info_dict ['ext_rateselect_compliance' ] = 'N/A'
778
778
transceiver_info_dict ['cable_type' ] = 'N/A'
779
779
transceiver_info_dict ['cable_length' ] = 'N/A'
780
- transceiver_info_dict ['specification_compliance' ] = 'N/A '
780
+ transceiver_info_dict ['specification_compliance' ] = '{} '
781
781
transceiver_info_dict ['nominal_bit_rate' ] = 'N/A'
782
782
783
783
else :
@@ -1103,7 +1103,11 @@ def get_transceiver_dom_threshold_info_dict(self, port_num):
1103
1103
]
1104
1104
transceiver_dom_threshold_info_dict = dict .fromkeys (dom_info_dict_keys , 'N/A' )
1105
1105
1106
- if port_num in self .qsfp_ports :
1106
+ if port_num in self .osfp_ports :
1107
+ # Below part is added to avoid fail xcvrd, shall be implemented later
1108
+ return transceiver_dom_threshold_info_dict
1109
+
1110
+ elif port_num in self .qsfp_ports :
1107
1111
file_path = self ._get_port_eeprom_path (port_num , self .IDENTITY_EEPROM_ADDR )
1108
1112
if not self ._sfp_eeprom_present (file_path , 0 ):
1109
1113
return None
You can’t perform that action at this time.
0 commit comments