Skip to content

[Sub-Port-Interfaces]Remove default acl tables before testing subinterfaces based on portchannels#5730

Closed
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
congh-nvidia:fix_sub_interface_test
Closed

[Sub-Port-Interfaces]Remove default acl tables before testing subinterfaces based on portchannels#5730
congh-nvidia wants to merge 1 commit intosonic-net:masterfrom
congh-nvidia:fix_sub_interface_test

Conversation

@congh-nvidia
Copy link
Contributor

Description of PR

Summary:
In sub interfaces test, the portchannel cases add ethernet ports to portchannels.
But on some testbeds, the selected ports are already in some default acl tables. In SONiC, ports in acl tables can not be used as portchannel members. So the case will fail.
To fix this, need to remove default acl tables before running the portchannel cases.

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?

Fix the portchannel cases to run on testbeds with default acl tables.

How did you do it?

The ethernet ports are selected and added to portchannels in fixture define_sub_ports_configuration, so add logic to remove the default acl tables in this fixture, before the ports are added.
The removal action won't affect testbeds without default acl tables.
The acl tables will be added back automatically by config reload in single test case and test suite teardowns.

How did you verify/test it?

Verified on t0 and t1 testbeds, all cases passed.

Any platform specific information?

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

Documentation

…hannels

In sub interfaces test, the portchannel cases add ethernet ports to portchannels, but on some testbeds, the selected ports are already in the default acl tables, so they can not be added to a port channel.
Remove the default acl tables before the port channel cases, and the acl tables will be added back automatically by config reload in single test case and test suite teardowns.
@congh-nvidia congh-nvidia requested a review from a team as a code owner May 30, 2022 05:01
@congh-nvidia congh-nvidia changed the title Remove default acl tables before testing subinterfaces based on portchannels [Sub-Port-Interfaces]Remove default acl tables before testing subinterfaces based on portchannels May 30, 2022
@OleksandrKozodoi
Copy link
Contributor

Hi @congh-nvidia. I've already added those changes in #5543. Please take a look. Thanks!

@congh-nvidia
Copy link
Contributor Author

Hi @OleksandrKozodoi, didn't see your PR before, I'm closing this PR then, thanks!

@congh-nvidia congh-nvidia deleted the fix_sub_interface_test branch August 8, 2022 10:54
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