Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rt 1.54 bgp_override_as_path_split_horizon_test.go #3432

Merged
merged 16 commits into from
Nov 11, 2024
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,27 @@ BGP Override AS-path split-horizon

## Topology

ATE Port1 (AS 65502) --- DUT Port1 (AS 65501) DUT Port2 ---eBGP --- ATE Port2 (AS 65503)
ATE Port1 (AS 65502) --- eBGP --------- DUT Port1 (DUT Local AS 65501)
ATE Port2 (AS 65503) --- eBGP --------- DUT Port2 (DUT Local AS 64513)

## Procedure
cprabha marked this conversation as resolved.
Show resolved Hide resolved

* Establish BGP Session: Configure and establish an eBGP session between the DUT (Port1) and the ATE (Port1).
*
### RT-1.54.1 Test no allow-own-in
* Baseline Test (No "allow-own-in"):
* Advertise a prefix from the ATE (e.g., 192.168.1.0/24) with an AS-path that includes AS 65501 (DUT's AS) in the middle (e.g., AS-path: 65502 65500 65501 65499).
* Verify that the ATE Port2 doesn't receive the route. due to the presence of its own AS in the path.
* Validate session state and capabilities received on DUT using telemetry.

### RT-1.54.2 Test "allow-own-as 1"
* Test "allow-own-as 1":
* Enable "allow-own-as 1" on the DUT.
* Re-advertise the prefix from the ATE with the same AS-path.
* Verify that the DUT accepts the route.
* Verify that the ATE Port2 receives the route.
* Validate session state and capabilities received on DUT using telemetry.
### RT-1.54.3 Test "allow-own-as 3"
* Test "allow-own-as 3":
* Change the DUT's configuration to "allow-own-as 3".
* Test with the following AS-path occurrences:
Expand All @@ -29,6 +35,7 @@ BGP Override AS-path split-horizon
* 4 Occurrences: 65502 65501 65501 65501 65501 65499 (Should be rejected)
* Verify that the ATE Port2 receives the route with 1 and 3 occurrences of AS 65501 but rejects it with 4 occurrences.
* Validate session state and capabilities received on DUT using telemetry.
### RT-1.54.4 Test "allow-own-as 4"
* Test "allow-own-as 4:
* Change the DUT's configuration to "allow-own-as 4".
* Test with the following AS-path occurrences:
Expand Down
Loading
Loading