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

[20212][port2alias]: Fix to get right number of return values #2188

Merged
merged 4 commits into from
Jun 13, 2022

Conversation

SuvarnaMeenakshi
Copy link
Contributor

@SuvarnaMeenakshi SuvarnaMeenakshi commented May 27, 2022

(cherry picked from commit 3714f63)
Signed-off-by: Suvarna Meenakshi sumeenak@microsoft.com

What I did

Cherry-pick of #1906 to 202012 branch
Fix conflict also few changes done to cherry-pick:

  • get_port_config function takes asic id as argument in 2019/202012 branches
  • Keep load_source of port2alias as module, as is used in unit-test in 202012 branch

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

  1. To address the different set of return values
  2. To get the ports from all namespaces
  3. To add unit-test

Additional change done over the cherry-pick:
added setup_class method in test case to load single asic mock db, this was done in pfcwd_test teardown method in 201911 and master branches. It is not done in 202012 branch, hence added setup_class method.

How I did it

Modify port2alias to read ports from all namespaces and also add unit-test

How to verify it

Verified on single and multi-asic DUTs with 202012 image.

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)

What I did
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
To add unit-test
How I did it
Modify port2alias to read ports from all namespaces and also add unit-test

How to verify it
Test on single and multi-asic platforms.
unit-test passed.

(cherry picked from commit 3714f63)
Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
@qiluo-msft qiluo-msft requested a review from ganglyu May 27, 2022 00:46
@SuvarnaMeenakshi SuvarnaMeenakshi changed the title [port2alias]: Fix to get right number of return values (#1906) [port2alias]: Fix to get right number of return values May 27, 2022
Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
@SuvarnaMeenakshi SuvarnaMeenakshi marked this pull request as ready for review May 27, 2022 02:39
@SuvarnaMeenakshi
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@SuvarnaMeenakshi SuvarnaMeenakshi changed the title [port2alias]: Fix to get right number of return values [20212][port2alias]: Fix to get right number of return values Jun 9, 2022
Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
(cherry picked from commit ad95c8fbca2824fd2c986b0860c98560591f21dc)
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.

3 participants