Skip to content

[acl] Refactor test_acl.py and add t0 support#2401

Merged
daall merged 3 commits intosonic-net:masterfrom
daall:acl_refactor
Nov 3, 2020
Merged

[acl] Refactor test_acl.py and add t0 support#2401
daall merged 3 commits intosonic-net:masterfrom
daall:acl_refactor

Conversation

@daall
Copy link
Contributor

@daall daall commented Oct 23, 2020

  • Generalize setup to work for t0 and t1
  • Add arp_responder to support forwarding to VLAN members
  • Add helper methods for duplicate code
  • Clean up linter errors

Signed-off-by: Danny Allen [email protected]

Description of PR

Summary: [acl] Refactor test_acl.py

Type of change

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

Approach

What is the motivation for this PR?

Currently we are not able to run the ACL tests on t0 testbeds. This PR makes that possible, and it cleans up the existing code to meet pep8 standards.

How did you do it?

I generalized the test setup to handle interfaces as "upstream" or "downstream" instead of just spine vs. tor. To make this work for T0, I also set up the arp_responder so that we can forward to VLAN members correctly.

How did you verify/test it?

Ran the test on multiple platforms (2 that do not support egress mirroring and 1 that does), against 201911 and master branch images, and finally with a variety of topologies (t1, t1-lag, t1-64-lag, and t0).

Any platform specific information?

N/A

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

t0 support added.

Documentation

- Generalize setup to work for t0 and t1
- Add arp_responder to support forwarding to VLAN members
- Add helper methods for duplicate code
- Clean up linter errors

Signed-off-by: Danny Allen <[email protected]>
@daall daall requested a review from a team October 23, 2020 23:08
Copy link
Collaborator

@yxieca yxieca left a comment

Choose a reason for hiding this comment

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

Left a few cosmetic issues. You can choose to address them in another PR.

@daall daall merged commit 61d16a5 into sonic-net:master Nov 3, 2020
@daall daall deleted the acl_refactor branch November 3, 2020 18:02
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…-net#11929)

Include following new kernel commits:
- 815cb34 [patch]: Add accept_untracked_na kernel param (sonic-net#291)
- fbb76cc Remove kernel config SERIAL_8250_RUNTIME_UARTS (sonic-net#286)

Introduce following SWSS commits:
- eedf59d [intfmgr]: Enable `accept_untracked_na` kernel param (sonic-net#2439)
- bbd4eb7 [BFD]Clean up state_db BFD entries on swss restart (sonic-net#2434) (sonic-net#2435)
- aa7b546 [FDB] [202012] Fix fbdorch to properly handle syncd FDB FLUSH Notif (sonic-net#2401)
- 4190c13 Support for platforms based on Clounix Networks' device (sonic-net#2399)

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

2 participants