Skip to content

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

Merged
wangxin merged 2 commits intosonic-net:masterfrom
ppikh:support_t0-56-po2vlan_fixes
Sep 26, 2022
Merged

[t0-56-po2vlan] Fixed KeyError: u'PortChannel201' in tests which can run on t0 topo for support t0-56-po2vlan topology#6341
wangxin merged 2 commits intosonic-net:masterfrom
ppikh:support_t0-56-po2vlan_fixes

Conversation

@ppikh
Copy link
Copy Markdown
Contributor

@ppikh ppikh commented Sep 14, 2022

Signed-off-by: Petro Pikh petrop@nvidia.com

Description of PR

Many tests supports t0 topology and they should be able to run on t0-56-po2vlan topology - but they fail with error: KeyError: u'PortChannel201'
It happen because topology t0-56-po2vlan has 2 VLANs and tests expect that topology will have only 1 VLAN and second VLAN has PortChannel interface which are member of 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
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

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

How did you do it?

In most cases removed extra VLAN/PortChannel from VLANs/PortChannels list and all t0 tests can pass on t0-56-po2vlan topology in the same way as on regular t0

How did you verify/test it?

Executed tests which were modified

Any platform specific information?

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

Documentation

ppikh and others added 2 commits September 14, 2022 11:13
…or support t0-56-po2vlan topology

Signed-off-by: Petro Pikh <petrop@nvidia.com>
@yutongzhang-microsoft
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@wangxin FYI. if no objection pls merge this one

@wangxin wangxin merged commit cc63351 into sonic-net:master Sep 26, 2022
Azarack pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 17, 2022
…run on t0 topo for support t0-56-po2vlan topology (sonic-net#6341)

What is the motivation for this PR?
Many tests supports t0 topology and they should be able to run on t0-56-po2vlan topology - but they fail with error: KeyError: u'PortChannel201'
It happen because topology t0-56-po2vlan has 2 VLANs and tests expect that topology will have only 1 VLAN and second VLAN has PortChannel interface which are member of 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

How did you do it?
In most cases removed extra VLAN/PortChannel from VLANs/PortChannels list and all t0 tests can pass on t0-56-po2vlan topology in the same way as on regular t0

How did you verify/test it?
Executed tests which were modified

Signed-off-by: Petro Pikh <petrop@nvidia.com>
yxieca pushed a commit that referenced this pull request Oct 26, 2022
…run on t0 topo for support t0-56-po2vlan topology (#6341)

What is the motivation for this PR?
Many tests supports t0 topology and they should be able to run on t0-56-po2vlan topology - but they fail with error: KeyError: u'PortChannel201'
It happen because topology t0-56-po2vlan has 2 VLANs and tests expect that topology will have only 1 VLAN and second VLAN has PortChannel interface which are member of 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

How did you do it?
In most cases removed extra VLAN/PortChannel from VLANs/PortChannels list and all t0 tests can pass on t0-56-po2vlan topology in the same way as on regular t0

How did you verify/test it?
Executed tests which were modified

Signed-off-by: Petro Pikh <petrop@nvidia.com>
allen-xf pushed a commit to allen-xf/sonic-mgmt that referenced this pull request Oct 28, 2022
…run on t0 topo for support t0-56-po2vlan topology (sonic-net#6341)

What is the motivation for this PR?
Many tests supports t0 topology and they should be able to run on t0-56-po2vlan topology - but they fail with error: KeyError: u'PortChannel201'
It happen because topology t0-56-po2vlan has 2 VLANs and tests expect that topology will have only 1 VLAN and second VLAN has PortChannel interface which are member of 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

How did you do it?
In most cases removed extra VLAN/PortChannel from VLANs/PortChannels list and all t0 tests can pass on t0-56-po2vlan topology in the same way as on regular t0

How did you verify/test it?
Executed tests which were modified

Signed-off-by: Petro Pikh <petrop@nvidia.com>
yxieca pushed a commit that referenced this pull request Nov 3, 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>
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.

6 participants