Skip to content

[t0-56-po2vlan] Fixed KeyError:'PortChannel201' to support tests on t0-56-po2vlan topology#6442

Merged
yxieca merged 1 commit intosonic-net:masterfrom
AntonHryshchuk:t0-56-po2vlan-tests-updates
Nov 3, 2022
Merged

[t0-56-po2vlan] Fixed KeyError:'PortChannel201' to support tests on t0-56-po2vlan topology#6442
yxieca merged 1 commit intosonic-net:masterfrom
AntonHryshchuk:t0-56-po2vlan-tests-updates

Conversation

@AntonHryshchuk
Copy link
Copy Markdown
Contributor

…can run on t0 topo for support t0-56-po2vlan topology

Signed-off-by: Anton antonh@nvidia.com

Description of PR

This PR is continuing the work of fixing started in #6341

Many tests support t0 topology and they should be able to run on t0-56-po2vlan topology - but they fail with error: KeyError: u'PortChannel201'
It happens because topology t0-56-po2vlan has 2 VLANs and tests expect that topology will have only 1 VLAN and the second VLAN has a PortChannel interface which is a member of the second VLAN(in regular t0 topo - all PortChannels are L3 interfaces)
Added fix(remove additional VLAN/PortChannel from list of VLANs/Interfaces) for tests to support t0-56-po2vlan topology

Summary: Fixed KeyError: u'PortChannel201' in tests which can run on t0 topo for support t0-56-po2vlan topology

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Add support of t0-56-po2vlan topo for the test which can run on t0 topo

How did you do it?

Skipped the validation on the interfaces with extra Vlan/PortChannel. The rest interfaces can be tested as on regular t0 topo.

How did you verify/test it?

The test cases were executed after the change.

Any platform specific information?

N/A

Supported testbed topology if it's a new test case?

N/A

Documentation

ppikh
ppikh previously approved these changes Sep 29, 2022
liat-grozovik
liat-grozovik previously approved these changes Sep 30, 2022
@liat-grozovik
Copy link
Copy Markdown
Collaborator

@wangxin could you please have a look on that as well? if good, please merge

…can run on t0 topo for support t0-56-po2vlan topology

Signed-off-by: Anton <antonh@nvidia.com>
@AntonHryshchuk AntonHryshchuk dismissed stale reviews from liat-grozovik and ppikh via 21eb80d October 3, 2022 12:38
@AntonHryshchuk AntonHryshchuk force-pushed the t0-56-po2vlan-tests-updates branch from 37380d5 to 21eb80d Compare October 3, 2022 12:38
@AntonHryshchuk
Copy link
Copy Markdown
Contributor Author

Also added skip to lag_2 tests with PortChannel201 parameter.
Example - test_lag[arc-switch1004|PortChannel201-fallback].

To avoid failures of these tests with error:
> pytest_assert(some_test_ran, "Didn't run any test.")
E Failed: Didn't run any test.

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@yxieca could you please help to assign a reviewer?

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@yxieca kindly reminder, can you please help to assign a reviewer?

@yxieca yxieca merged commit 50fc59d into sonic-net:master Nov 3, 2022
wangxin pushed a commit that referenced this pull request Nov 11, 2022
…can run on t0 topo for support t0-56-po2vlan topology (#6442)

Description of PR
This PR is continuing the work of fixing started in #6341

Many tests support t0 topology and they should be able to run on t0-56-po2vlan topology - but they fail with error: KeyError: u'PortChannel201'
It happens because topology t0-56-po2vlan has 2 VLANs and tests expect that topology will have only 1 VLAN and the second VLAN has a PortChannel interface which is a member of the second VLAN(in regular t0 topo - all PortChannels are L3 interfaces)
Added fix(remove additional VLAN/PortChannel from list of VLANs/Interfaces) for tests to support t0-56-po2vlan topology

Summary: Fixed KeyError: u'PortChannel201' in tests which can run on t0 topo for support t0-56-po2vlan topology

What is the motivation for this PR?
Add support of t0-56-po2vlan topo for the test which can run on t0 topo

How did you do it?
Skipped the validation on the interfaces with extra Vlan/PortChannel. The rest interfaces can be tested as on regular t0 topo.

How did you verify/test it?
The test cases were executed after the change.

Signed-off-by: Anton <antonh@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.

5 participants