Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:527] Create is_transceiver_vdm_supported API for CMIS transceivers #537

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

mssonicbld
Copy link
Collaborator

Description

is_transceiver_vdm_supported API needs to be created so that xcvrd can directly skip freezing/unfreezing of VDM stats (done to read VDM and PM data from the transceiver) for transceivers which do not support VDM feature.

Motivation and Context

XCVRD will call is_transceiver_vdm_supported API before performing freeze of VDM stats.

How Has This Been Tested?

Following types of modules were tested with this changeset

  1. CMIS module supporting VDM - ensured is_transceiver_vdm_supported returns True
  2. SFF-8472 module - ensured is_transceiver_vdm_supported returns False

Additional Information (Optional)

MSFT ADO - 30657693

<!-- Provide a general summary of your changes in the Title above -->

#### Description
<!--
     Describe your changes in detail
-->
is_transceiver_vdm_supported API needs to be created so that xcvrd can directly skip freezing/unfreezing of VDM stats (done to read VDM and PM data from the transceiver) for transceivers which do not support VDM feature.

#### Motivation and Context
<!--
     Why is this change required? What problem does it solve?
     If this pull request closes/resolves an open Issue, make sure you
     include the text "fixes #xxxx", "closes #xxxx" or "resolves #xxxx" here
-->
XCVRD will call `is_transceiver_vdm_supported` API before performing freeze of VDM stats.

#### How Has This Been Tested?
<!--
     Please describe in detail how you tested your changes.
     Include details of your testing environment, and the tests you ran to
     see how your change affects other areas of the code, etc.
-->
Following types of modules were tested with this changeset
1. CMIS module supporting VDM - ensured is_transceiver_vdm_supported returns True
2. SFF-8472 module - ensured is_transceiver_vdm_supported returns False

#### Additional Information (Optional)
MSFT ADO - 30657693
@mssonicbld
Copy link
Collaborator Author

Original PR: #527

@mssonicbld
Copy link
Collaborator Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 3276d57 into sonic-net:202411 Feb 1, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant