Skip to content

Add CDB support field to get_transceiver_info#721

Open
bgallagher-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:add-cdb-support-field-to-get
Open

Add CDB support field to get_transceiver_info#721
bgallagher-nexthop wants to merge 1 commit into
sonic-net:masterfrom
nexthop-ai:add-cdb-support-field-to-get

Conversation

@bgallagher-nexthop

Copy link
Copy Markdown
Contributor

Description

Add a key to the dictionary returned by get_transceiver_info that indicates whether the transceiver advertises CDB support.

Motivation and Context

This change will provide the following benefits:

  • CDB support for an interface will be stored in STATE_DB (TRANSCEIVER_INFO table). CLI commands like show interface transceiver info can leverage that to conveniently display whether CDB is supported.
  • sfputil can similarly display CDB support conveniently in sfputil show eeprom.

How Has This Been Tested?

Fixed the existing unit-test to actually exercise the underlying code and extended it to cover this PR's changes.

Signed-off-by: Brian Gallagher <bgallagher@nexthop.ai>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

2 participants