Skip to content

Commit

Permalink
Failed to set Pre-emphasis settings with new xcvr package (sonic-net#223
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aravindmani-1 committed Nov 8, 2021
1 parent ddb22b9 commit 1fd3d16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sonic-xcvrd/xcvrd/xcvrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,11 @@ def get_media_settings_key(physical_port, transceiver_dict):
media_key += '-' + media_compliance_code
if _wrapper_get_sfp_type(physical_port) == 'QSFP_DD':
if media_compliance_code == "passive_copper_media_interface":
if len(media_len) != 0:
media_key += '-' + media_len + 'M'
if media_len != 0:
media_key += '-' + str(media_len) + 'M'
else:
if len(media_len) != 0:
media_key += '-' + media_len + 'M'
if media_len != 0:
media_key += '-' + str(media_len) + 'M'
else:
media_key += '-' + '*'

Expand Down

0 comments on commit 1fd3d16

Please sign in to comment.