Skip to content

migrate vlan tests from SAI PTF to SAI Challenger#293

Merged
andriy-kokhan merged 9 commits into
opencomputeproject:mainfrom
illia-smulskyi:ptf-vlan-migration
May 14, 2026
Merged

migrate vlan tests from SAI PTF to SAI Challenger#293
andriy-kokhan merged 9 commits into
opencomputeproject:mainfrom
illia-smulskyi:ptf-vlan-migration

Conversation

@illia-smulskyi
Copy link
Copy Markdown
Contributor

Summary

  • Migrate all L2 VLAN test scenarios from PTF to SAI Challenger (TestL2Vlan):

    • test_forwarding
    • test_native_vlan
    • test_priority_tagging
    • test_pv_drop
    • test_lag_pv_miss
    • test_vlan_flood
    • test_vlan_flood_enhanced
    • test_vlan_flood_disable
    • test_vlan_stats
    • test_vlan_flood_prune
    • test_counters_clear
    • test_vlan_member_list
    • test_vlan_negative
    • test_single_vlan_member
    • test_vlan_ingress_acl
    • test_vlan_egress_acl
    • test_vlan_learning
    • test_vlan_max_learned_addresses

    References

  • Original PTF tests: usecases/sai-ptf/SAI/ptf/saivlan.py

How to Run

./exec.sh -t saivs pytest --testbed=saivs_standalone -v -k "test_l2_vlan.py"

Test Results

============================================================================== test session starts ===============================================================================
platform linux -- Python 3.11.2, pytest-9.0.3, pluggy-1.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.11.2', 'Platform': 'Linux-6.17.0-23-generic-x86_64-with-glibc2.36', 'Packages': {'pytest': '9.0.3', 'pluggy': '1.6.0'}, 'Plugins': {'metadata': '3.1.1', 'html': '4.2.0', 'dependency': '0.6.1'}}
rootdir: /sai-challenger/tests
configfile: pytest.ini
plugins: metadata-3.1.1, html-4.2.0, dependency-0.6.1
collected 1526 items / 1508 deselected / 18 selected                                                                                                                             

test_l2_vlan.py::TestL2Vlan::test_forwarding SKIPPED (Traffic generation disabled)                                                                                         [  5%]
test_l2_vlan.py::TestL2Vlan::test_native_vlan SKIPPED (Traffic generation disabled)                                                                                        [ 11%]
test_l2_vlan.py::TestL2Vlan::test_priority_tagging SKIPPED (Traffic generation disabled)                                                                                   [ 16%]
test_l2_vlan.py::TestL2Vlan::test_pv_drop SKIPPED (Traffic generation disabled)                                                                                            [ 22%]
test_l2_vlan.py::TestL2Vlan::test_lag_pv_miss SKIPPED (Traffic generation disabled)                                                                                        [ 27%]
test_l2_vlan.py::TestL2Vlan::test_vlan_flood SKIPPED (Traffic generation disabled)                                                                                         [ 33%]
test_l2_vlan.py::TestL2Vlan::test_vlan_flood_enhanced SKIPPED (Traffic generation disabled)                                                                                [ 38%]
test_l2_vlan.py::TestL2Vlan::test_vlan_flood_disable SKIPPED (Traffic generation disabled)                                                                                 [ 44%]
test_l2_vlan.py::TestL2Vlan::test_vlan_stats SKIPPED (Traffic generation disabled)                                                                                         [ 50%]
test_l2_vlan.py::TestL2Vlan::test_vlan_flood_prune SKIPPED (Traffic generation disabled)                                                                                   [ 55%]
test_l2_vlan.py::TestL2Vlan::test_counters_clear SKIPPED (Traffic generation disabled)                                                                                     [ 61%]
test_l2_vlan.py::TestL2Vlan::test_vlan_member_list PASSED                                                                                                                  [ 66%]
test_l2_vlan.py::TestL2Vlan::test_vlan_negative PASSED                                                                                                                     [ 72%]
test_l2_vlan.py::TestL2Vlan::test_single_vlan_member SKIPPED (Traffic generation disabled)                                                                                 [ 77%]
test_l2_vlan.py::TestL2Vlan::test_vlan_ingress_acl SKIPPED (Traffic generation disabled)                                                                                   [ 83%]
test_l2_vlan.py::TestL2Vlan::test_vlan_egress_acl SKIPPED (Traffic generation disabled)                                                                                    [ 88%]
test_l2_vlan.py::TestL2Vlan::test_vlan_learning SKIPPED (Traffic generation disabled)                                                                                      [ 94%]
test_l2_vlan.py::TestL2Vlan::test_vlan_max_learned_addresses SKIPPED (Traffic generation disabled)                                                                         [100%]

================================================================ 2 passed, 16 skipped, 1508 deselected in 11.69s =================================================================

Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Comment thread tests/test_l2_vlan.py Outdated
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Comment thread tests/test_l2_vlan.py Outdated
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Comment thread .github/workflows/sc-client-server-deb11.yml Outdated
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
Signed-off-by: Illia Smulskyi <illia.smulskyi@plvision.eu>
@andriy-kokhan andriy-kokhan merged commit 340cd77 into opencomputeproject:main May 14, 2026
13 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