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

Fix issue: exception in is_rj45_port in multi ASIC env #2313

Merged
merged 2 commits into from
Aug 18, 2022

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Aug 16, 2022

What I did

Fix issue #2312. On some platforms, logical_port_name_to_physical_port_list doesn't return a valid port name list, which causes exception in is_rj45_port.
Fix it by catching the exception and treating it as a non-RJ45 port.

Signed-off-by: Stephen Sun stephens@nvidia.com

How I did it

How to verify it

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)

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs marked this pull request as ready for review August 16, 2022 09:20
@stephenxs
Copy link
Collaborator Author

@prgeor @judyjoseph could you please review it? thanks.

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@stephenxs stephenxs requested a review from judyjoseph August 18, 2022 00:32
@judyjoseph judyjoseph merged commit 7704f63 into sonic-net:master Aug 18, 2022
@stephenxs stephenxs deleted the fix-invalid-port branch August 18, 2022 22:04
yxieca pushed a commit that referenced this pull request Aug 19, 2022
* Fix issue: exception in is_rj45_port in multi ASIC env
Signed-off-by: Stephen Sun <stephens@nvidia.com>
preetham-singh pushed a commit to preetham-singh/sonic-utilities that referenced this pull request Nov 21, 2022
* Fix issue: exception in is_rj45_port in multi ASIC env
Signed-off-by: Stephen Sun <stephens@nvidia.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