tests(bgp): add BGP allow-as-in test case#20172
Open
sainath-nexthop wants to merge 1 commit intosonic-net:masterfrom
Open
tests(bgp): add BGP allow-as-in test case#20172sainath-nexthop wants to merge 1 commit intosonic-net:masterfrom
sainath-nexthop wants to merge 1 commit intosonic-net:masterfrom
Conversation
This commit adds comprehensive testing for the BGP allow-as-in feature: - Add test_bgp_allow_as_in.py with IPv4 and IPv6 test cases - Test validates route acceptance when allow_as_in is enabled - Test validates route rejection when allow_as_in is disabled - Supports both config_db (GCU) and vtysh configuration methods - Includes proper setup, verification, and cleanup - Add test to PR test scripts for t0 and t1-lag topologies The allow-as-in feature allows a router to accept routes containing its own AS number in the AS_PATH attribute, which would normally be dropped to prevent routing loops. Test coverage: - IPv4 and IPv6 route handling - Route announcement with own AS in AS_PATH - Configuration via JSON-PATCH and vtysh - Route verification and status checking - Multi-topology support (t0, t1) Fixes sonic-net#18654
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
doesnt this script/TCs already cover this same allow-as feature - https://github.com/sonic-net/sonic-mgmt/blob/master/tests/bgp/test_bgp_bbr.py ? - #2538 |
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:
Fixes #18654
Type of change
Back port request
Approach
What is the motivation for this PR?
To ensure the BGP allow-as-in feature is correctly implemented and to prevent regressions in SONiC’s BGP behavior.
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation