[test_fdb] Fix test_fdb failure caused by FDB aging.#2658
Merged
bingwang-ms merged 3 commits intosonic-net:masterfrom Dec 15, 2020
Merged
[test_fdb] Fix test_fdb failure caused by FDB aging.#2658bingwang-ms merged 3 commits intosonic-net:masterfrom
bingwang-ms merged 3 commits intosonic-net:masterfrom
Conversation
The test cast test_fdb is failing consistently on some testbed. The root cause for the failure is the double loop among all interfaces costs too much time, which is beyond the fdb age (10 minutes in default). This PR address the issue by introducing a module level fixture to disable FDB aging. Signed-off-by: bingwang <bingwang@microsoft.com>
wangxin
reviewed
Dec 14, 2020
This commit introduces two updates: 1. Use swssconfig instead of bcmcmd to disable fdb aging 2. Clear ptfafapter's dataplane after sending warmup packet to ensure the queue in testutil's dataplane is not filled up. Signed-off-by: bingwang <bingwang@microsoft.com>
wangxin
approved these changes
Dec 15, 2020
This commit change the destination mac of arp request to router mac. This is because the broadcast arp request to DUT will be broadcast to all vlan members, as a result, a large amount of packets are generated, which can't be handled by ptfadapter in time. Signed-off-by: bingwang <bingwang@microsoft.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
Include following commits: - c98b9f09 [202012][orchagent]: Get bridge port ID from FDBOrch cache instead of SAI API sonic-net#2657 (sonic-net#2658) - 59886b8f [MuxOrch] Enabling neighbor when adding in active state (sonic-net#2601)
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.
Signed-off-by: bingwang bingwang@microsoft.com
Description of PR
Summary:
Fixes # (issue)
The test case
test_fdbis failing consistently on some testbed (like A7260). The root cause for the failure is the double loop among all interfaces costs too much time, which is beyond the fdb age (10 minutes in default). This PR address the issue by introducing a module level fixture to disable FDB aging.This commit also clears the dataplane of testutil to ensure that the packet queue inside testutil is not filled up.
Type of change
Approach
What is the motivation for this PR?
This PR is to fix
test_fdbfailure caused by expired FDB entry.How did you do it?
This PR address the issue by introducing a module level fixture to disable FDB aging.
How did you verify/test it?
Verified on A7260 (122 interfaces).
Any platform specific information?
No.
Supported testbed topology if it's a new test case?
No.
Documentation