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

Revise RJ45 Port Type Check #3606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PJHsieh
Copy link
Contributor

@PJHsieh PJHsieh commented Nov 8, 2024

What I did

For the RJ45 port, the port_transceiver_info is None. This is because that the XCVRD will not update TRANSCEIVER_INFO into STATE DB for the RJ45 port.

How I did it

If port_transceiver_info is None,
apply the same method used in intfutil.

How to verify it

Set link-training on RJ45 port, the error msg "Setting RJ45 ports' link-training is not supported" must be displayed.
Set interface type on RJ45 port, the error msg "Setting RJ45 ports' type is not supported" must be displayed.
Set advertised-types on RJ45 port, the error msg "Setting RJ45 ports' advertised types is not supported" must be displayed.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Issue:
For the RJ45 port, the port_transceiver_info is None. This is because
that the XCVRD will not update TRANSCEIVER_INFO into STATE DB for the
RJ45 port.

Solution:
If port_transceiver_info is None,
apply the same method used in intfutil.
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