tests/vlan: add static L2 forwarding tests (mac-learning, BUM flood, static FDB)#26476
Open
AnantKishorSharma wants to merge 1 commit into
Open
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
AnantKishorSharma
marked this pull request as ready for review
July 22, 2026 16:47
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
…static FDB) Signed-off-by: Anant Kishor Sharma <anant.kishor-sharma@hpe.com>
AnantKishorSharma
force-pushed
the
static-l2-forwarding-mgmt-test
branch
from
July 23, 2026 05:18
e840edf to
10eebf2
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Adds data-plane sonic-mgmt tests for config-driven static L2 forwarding (per-VLAN), covering the three independent sub-features:
SAI_VLAN_ATTR_LEARN_DISABLE)SAI_VLAN_ATTR_{UNKNOWN_UNICAST,UNKNOWN_MULTICAST,BROADCAST}_FLOOD_CONTROL_TYPE)SAI_FDB_ENTRY_TYPE_STATIC)Each sub-feature is toggled through the CONFIG_DB (the same path used by
config apply-patch/ gNMI / theconfig macCLI) and verified from the data plane with PTF. Every test restores the default (learning on, flooding on, no static FDB) on teardown.This is the test companion of the config-driven static L2 forwarding feature. HLD: sonic-net/SONiC#2468.
Type of change
Back port request
Tested branch
Test result
Validated on a t0 testbed with the companion swss changes deployed — 3 passed:
test_mac_learning_disable,test_broadcast_flood_disable,test_static_fdb_forwarding.Approach
What is the motivation for this PR?
Add sonic-mgmt data-plane coverage for the config-driven static L2 forwarding feature so the three per-VLAN sub-features are verified end-to-end (CONFIG_DB -> orchagent -> SAI -> data plane).
How did you do it?
Three test classes, one per sub-feature (
TestVlanMacLearningDisable,TestVlanBumFloodDisable,TestVlanStaticFdb). Config is applied viasonic-db-cli CONFIG_DB; behavior is verified from the data plane with PTF (send/verify_packets/verify_no_packet_any) plusfdbshow. Each test restores the default state on teardown.How did you verify/test it?
Ran on a t0 testbed with the companion swss changes deployed — all 3 tests passed. The test selects a VLAN with at least two untagged members and skips gracefully if none is available.
Any platform specific information?
None
Supported testbed topology if it's a new test case?
t0
Documentation
No new documentation; the feature design is covered by the HLD (sonic-net/SONiC#2468).