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

[201911][port2alias]: Fix to get right number of return values #1907

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

SuvarnaMeenakshi
Copy link
Contributor

What I did

master branch PR: #1906
get_port_config was modified to return different set number of arguments in PR: sonic-net/sonic-buildimage#4222. Changes in this PR is:

To address the different set of return values
To get the ports from all namespaces
How I did it
Modify port2alias to read ports from all namespaces and also add unit-test

How to verify it
Tested on single and multi-asic platforms.

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)

from get_port_config. Modified to get ports from all
namespaces.

Signed-off-by: SuvarnaMeenakshi <[email protected]>
@abdosi
Copy link
Contributor

abdosi commented Nov 1, 2021

can we add ut ?

@abdosi
Copy link
Contributor

abdosi commented Nov 24, 2021

@SuvarnaMeenakshi please add UT as part of another PR. Merging this as of now based on manual validation.

@abdosi abdosi merged commit 3ce8119 into sonic-net:201911 Nov 24, 2021
Copy link
Contributor

@abdosi abdosi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
3ce8119 (HEAD -> 201911, origin/201911) [201911][port2alias]: Fix to get right number of return values (sonic-net#1907)
e648290 disk_Check: Scan & mount as RW when disk turns into Read-only (sonic-net#1872)

Signed-off-by: Abhishek Dosi <[email protected]>
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.

2 participants