Skip to content

Remove unused cmisCDB file#679

Merged
yxieca merged 1 commit into
sonic-net:masterfrom
prgeor:cdb
May 28, 2026
Merged

Remove unused cmisCDB file#679
yxieca merged 1 commit into
sonic-net:masterfrom
prgeor:cdb

Conversation

@prgeor
Copy link
Copy Markdown
Collaborator

@prgeor prgeor commented May 26, 2026

Description

Remove unused cmisCDB.py

How Has This Been Tested?

Unit test is sufficient.

Additional Information (Optional)

Signed-off-by: Prince George <prgeor@microsoft.com>
@prgeor prgeor requested a review from Copilot May 26, 2026 20:06
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a legacy CMIS CDB API implementation and its associated unit test from sonic_platform_base, aiming to eliminate an unused module from the transceiver API surface.

Changes:

  • Deleted sonic_platform_base/sonic_xcvr/api/public/cmisCDB.py (CDB command API implementation).
  • Deleted tests/sonic_xcvr/test_cmisCDB.py (unit tests covering the removed API).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/sonic_xcvr/test_cmisCDB.py Removes unit tests that exercised the legacy CmisCdbApi implementation.
sonic_platform_base/sonic_xcvr/api/public/cmisCDB.py Removes the legacy public CMIS CDB API module (CmisCdbApi).
Comments suppressed due to low confidence (1)

sonic_platform_base/sonic_xcvr/api/public/cmisCDB.py:1

  • Removing this module is a backwards-incompatible API break: any downstream code importing sonic_platform_base.sonic_xcvr.api.public.cmisCDB.CmisCdbApi will fail at import time after upgrading. Consider keeping cmisCDB.py as a compatibility shim (e.g., re-export/forward to the newer CDB firmware API) and deprecate it before removing in a major-version change.

Copy link
Copy Markdown
Contributor

@pnakka28 pnakka28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aditya-nexthop
Copy link
Copy Markdown
Contributor

LGTM

@yxieca yxieca merged commit ef6286f into sonic-net:master May 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants