sonic-net / sonic-platform-daemons

Platform module daemons for SONiC
Other
23 stars 152 forks source link

[xcvrd] Fix CMIS application selection to allow an app whose host lane count is less than the actual value #507

Open ishidawataru opened 3 months ago

ishidawataru commented 3 months ago

Description

get_cmis_application_desired() was choosing an app that matches both speed and host_lane_count of the port. This PR relaxes the constraint so that an app whose required host lane count is less than the actual value can be selected.

Motivation and Context

fixes https://github.com/sonic-net/sonic-buildimage/issues/19336

How Has This Been Tested?

No E2E done yet. UT is added.

Additional Information (Optional)

500 needs to be merged before this PR.