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

[CMIS] Return the CDB status value for the caller to check the status… #1

Closed
wants to merge 1 commit into from

Conversation

xinyulin
Copy link
Owner

Description

This PR unifies all CDB API calls to return CDB status, allowing the caller to check the command status returned from the module and perform corresponding actions.

Motivation and Context

Modified the following CDB APIs to return a dictionary with CDB status as the first element and RPL result as the second element.

  • query_cdb_status()
  • get_module_feature()
  • get_fw_management_features()
  • get_fw_info()

The caller can first check the CDB status to ensure the command was processed successfully, then retrieve the data from the reply payload (RPL).

How Has This Been Tested?

Tested with Cisco8111 and Credo C1 cable
image

… and perform the corresponding actions

Signed-off-by: xinyu <[email protected]>
@xinyulin xinyulin closed this Jul 19, 2024
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.

1 participant