Open ishidawataru opened 5 months ago
@ishidawataru Can you please fix the code coverage check failure?
@mihirpat1 I'm still communicating with the original reporter of this issue to check the fix actually works. After that I'll fix the code coverage failure.
@mihirpat1 Confirmed that the fix resolved the issue. Also, I fixed the coverage test failure. Please review.
@prgeor This PR fixes https://github.com/sonic-net/sonic-buildimage/issues/18893. It is not about the application selection. The current CmisManagerTask
implementation doesn't delete the port info from port_dict
when ports are deleted due to DPB configuration, which causes a crash.
@longhuan-cisco @mihirpat1 I updated the PR based on @longhuan-cisco 's suggestion. Please review.
I used force-push and removed the original commits. I backed up the original branch here.
@prgeor Hi, just a gentle ping to check if I need to do something to get this PR merged.
Description
This commit fixes DPB support with CMIS transceivers.
CmisManagerTask's
port_dict
must be updated according to the port add/remove events. This commit removes theport_mapping
field from CmisManagerTask asport_mapping
was mostly used just for storingasic_id
information and that can be simply done byport_dict
instead.Added a helper method
get_asic_id()
method to CmisManagerTask for gettingasic_id
fromlogical_port
.Motivation and Context
fixes https://github.com/sonic-net/sonic-buildimage/issues/18893
How Has This Been Tested?
I tested on the VS environment.
Additional Information (Optional)