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

[xcvrd] Save the dom_capability of transceiver into db #72

Merged
merged 1 commit into from
Feb 24, 2021

Conversation

kuanyu99
Copy link
Contributor

  • What I did
    Save the dom_capability gotten from transceiver into db

  • How I did it
    Add a field-value pair when it try to set the table inside "post_port_sfp_info_to_db" function

  • How to verify it
    Compare one transceiver which support diagnostic monitoring function to another transceiver which doesn't support it.
    Check the db data of the transceiver
    Run 'show interfaces transceiver eeprom' command.

@vboykox
Copy link
Member

vboykox commented Jul 29, 2020

please also update sfputilbase.py

@kuanyu99
Copy link
Contributor Author

please also update sfputilbase.py

Definitely. The PR is under reviewing.

@jleveque
Copy link
Contributor

jleveque commented Dec 8, 2020

Blocked by comments on sonic-net/sonic-platform-common#102

@jleveque
Copy link
Contributor

@kuanyu99: sonic-net/sonic-platform-common#102 merged a few weeks ago. Can you please fix the merge conflicts?

@kuanyu99
Copy link
Contributor Author

@kuanyu99: Azure/sonic-platform-common#102 merged a few weeks ago. Can you please fix the merge conflicts?

Thanks for your reminder.
I fixed the conflicts and also tried building this.

@jleveque jleveque merged commit 47bcf90 into sonic-net:master Feb 24, 2021
jleveque added a commit that referenced this pull request Mar 9, 2021
…'N/A' (#162)

Currently, some vendors are using custom transceiver info parsers which do not yet provide the `dom_capability` field in the results of `get_transceiver_info()`. However, PR #72 introduced storing this value to State DB under the assumption that it would always be present. On platforms where this value is not present, it would cause xcvrd to crash (see issue: sonic-net/sonic-buildimage#6978).

This change will prevent a crash if it is not present, and will in turn save `'N/A'` as the `dom_capability` value in State DB.
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
)

Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
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.

3 participants