Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanyu99 authored Jul 31, 2020
2 parents f09d2e0 + f988995 commit 94ecddd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sonic_platform_base/sonic_sfp/sfputilbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ def get_transceiver_info_dict(self, port_num):
transceiver_info_dict['cable_length'] = 'N/A'
transceiver_info_dict['specification_compliance'] = '{}'
transceiver_info_dict['nominal_bit_rate'] = 'N/A'
transceiver_info_dict['application_advertisement'] = 'N/A'
transceiver_info_dict['dom_capability'] = '{}'

else:
Expand Down Expand Up @@ -952,6 +953,8 @@ def get_transceiver_info_dict(self, port_num):
transceiver_info_dict['ext_rateselect_compliance'] = sfp_interface_bulk_data['data']['RateIdentifier']['value']
transceiver_info_dict['cable_type'] = "Unknown"
transceiver_info_dict['cable_length'] = "Unknown"
transceiver_info_dict['application_advertisement'] = 'N/A'

if sfp_type == 'QSFP':
for key in qsfp_cable_length_tup:
if key in sfp_interface_bulk_data['data']:
Expand Down

0 comments on commit 94ecddd

Please sign in to comment.