-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding new test for bgp prefix-set - 321973993 (#2624)
* adding new test for bgp prefix-set - 321973993 * committing suggested changes to readme file * committing changes
- Loading branch information
1 parent
5914f61
commit 4590011
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
feature/bgp/policybase/otg_tests/prefix-set_test/README.md
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# RT-1.33: BGP Policy with prefix-set matching | ||
|
||
## Summary | ||
|
||
BGP policy configuration with prefix-set matching | ||
|
||
## Testbed type | ||
|
||
* https://github.com/openconfig/featureprofiles/blob/main/topologies/atedut_2.testbed | ||
|
||
## Procedure | ||
Establish eBGP sessions between: | ||
• ATE port-1 and DUT port-1 | ||
• ATE port-2 and DUT port-2 | ||
• Configure Route-policy under BGP neighbor/session address-family | ||
|
||
For IPv4: | ||
Create two prefix-sets as below: | ||
IPv4-prefix-set-1 - exact match on 10.23.15.0/26 | ||
IPv4-prefix-set-2 - match on 10.23.0.0/16 | ||
For IPv6: | ||
Create two prefix-sets as below: | ||
IPv6-prefix-set-1 - exact match on 2001:4860:f804::/48 | ||
IPv6-prefix-set-2 - 65-128 match on ::/0 | ||
For IPv4 and IPv6: | ||
• Configure BGP policy on DUT to allow routes based on IPv4-prefix-set-2 and reject routes based on IPv4-prefix-set-1 | ||
• Configure BGP policy on DUT to allow routes based on IPv6-prefix-set-1 | ||
• and reject routes based on IPv6-prefix-set-2 | ||
• Validate that the prefixes are accepted after policy application. | ||
• DUT conditionally advertises prefixes received from ATE port-1 to ATE port-2 after policy application. Ensure that multiple routes are accepted and advertised to the neighbor on ATE port-2. | ||
|
||
## Config Parameter Coverage | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/config/mode | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/config/name | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/ip-prefix | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/config/masklength-range | ||
|
||
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/ip-prefix | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/prefixes/prefix/state/masklength-range | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/state/mode | ||
/routing-policy/defined-sets/prefix-sets/prefix-set/state/name | ||
|
||
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/match-set-options | ||
/routing-policy/policy-definitions/policy-definition/statements/statement/conditions/match-prefix-set/config/prefix-set | ||
|
||
## Telemetry Parameter coverage | ||
N/A | ||
Protocol/RPC Parameter coverage | ||
N/A | ||
Minimum DUT platform requirement | ||
vRX |
7 changes: 7 additions & 0 deletions
7
feature/bgp/policybase/otg_tests/prefix-set_test/metadata.textproto
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# proto-file: github.com/openconfig/featureprofiles/proto/metadata.proto | ||
# proto-message: Metadata | ||
|
||
plan_id: "RT-1.33" | ||
description: "BGP Policy with prefix-set matching" | ||
testbed: TESTBED_DUT_ATE_2LINKS | ||
tags: TAGS_AGGREGATION, TAGS_TRANSIT, TAGS_DATACENTER_EDGE |