Skip to content

[202412] Fix test_acl.py [ipv6-ingress-uplink->downlink-*] cases for v6 topo#942

Merged
r12f merged 2 commits intoAzure:202412from
markx-arista:fix-acl-ingress-uplink-to-downlink-v6-topo
Feb 5, 2026
Merged

[202412] Fix test_acl.py [ipv6-ingress-uplink->downlink-*] cases for v6 topo#942
r12f merged 2 commits intoAzure:202412from
markx-arista:fix-acl-ingress-uplink-to-downlink-v6-topo

Conversation

@markx-arista
Copy link

@markx-arista markx-arista commented Dec 23, 2025

Description of PR

Summary:
t0-isolated-v6-*:
Downstream neighbors are servers connected to VLAN interface. Use DOWNSTREAM_DST_IP_VLAN as dest ips. IPv6 cases have been skipped for t0 since beginning, only fix it for v6 topos now.

t1-isolated-v6-*:
V6 topo files set ipv6_address_pattern: 2064:100:0::%02X%02X:%02X%02X:0/120.
announce_routes.py uses the pattern to generate routes for PTF and pass them to VMs. If it is not set, default pattern 20%02X:%02X%02X:0:%02X::/64 is used.
acl tests use hardcoded dest ip 20c0:a800::1 that is not covered by v6 topo pattern, so packets are forwarded with the default route to upstream VM.
Fix it by changing dest ip for v6 topos, also add acl rules for these dest ips.

With extra ACL rules for v6 topos, also increase timeout for check_rule_counters.

Manual cherry pick of sonic-net/sonic-mgmt#21760

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202412
  • 202505

Approach

What is the motivation for this PR?

test_acl.py [ipv6-ingress-uplink->downlink-*] cases failed on v6 topo

How did you do it?

Correct DOWNSTREAM_DST_IP for t0/t1-isolated-v6-*. topos, and add corresponding acl rules

How did you verify/test it?

Test passed on t0/t1-isolated-v6-*. topos

Any platform specific information?

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

Documentation

With extra ACL rules for V6 topo, some topos need longer timeout

Signed-off-by: markxiao <[email protected]>
@r12f
Copy link
Contributor

r12f commented Jan 23, 2026

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@r12f r12f merged commit 46503f1 into Azure:202412 Feb 5, 2026
14 checks passed
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.

2 participants