Skip to content

Commit

Permalink
[xcvrd] Fix issue: do not print error log when module support non-eth…
Browse files Browse the repository at this point in the history
…ernet application
  • Loading branch information
Junchao-Mellanox committed Jun 14, 2024
1 parent efb4dbd commit ac2e3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic-xcvrd/xcvrd/xcvrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def get_cmis_application_desired(api, host_lane_count, speed):
get_interface_speed(app_info.get('host_electrical_interface_id')) == speed):
return (index & 0xf)

helper_logger.log_error(f'Failed to get desired application from {appl_dict}')
return None


Expand Down Expand Up @@ -193,8 +194,7 @@ def get_interface_speed(ifname):
speed = 10000
elif '1000BASE' in ifname:
speed = 1000
else:
helper_logger.log_error("No interface speed found for: '{}'".format(ifname))

return speed


Expand Down

0 comments on commit ac2e3f7

Please sign in to comment.