Skip to content

Commit

Permalink
fix(xcvrd): handle port add/remove events in CmisManagerTask
Browse files Browse the repository at this point in the history
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 the `port_mapping` field from CmisManagerTask as
`port_mapping` was mostly used just for storing `asic_id` information
and that can be simply done by `port_dict` instead.

Added a helper method `get_asic_id()` method to CmisManagerTask for
getting `asic_id` from `logical_port`.

fixes sonic-net/sonic-buildimage#18893

Signed-off-by: Wataru Ishida <wataru.ishid@gmail.com>
  • Loading branch information
ishidawataru committed Jun 24, 2024
1 parent 7c08ede commit 83ad867
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 75 deletions.
Loading

0 comments on commit 83ad867

Please sign in to comment.