-
Notifications
You must be signed in to change notification settings - Fork 154
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
Moved decap sub test cases from TE-18.1 README to a seperate directory #3673
Open
vishnureddybadveli
wants to merge
17
commits into
openconfig:main
Choose a base branch
from
vishnureddybadveli:decap
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+167
−79
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
81e4ec4
Moved decap sub test cases from TE-18.1 README to a seperate directory
vishnureddybadveli 68a2bc8
Create README.md
vishnureddybadveli b98d9c2
Moved decap sub test cases from TE-18.1 README to a seperate directory
vishnureddybadveli fadc293
Create README.md
vishnureddybadveli 07ea35e
Created README for decap sub test cases in new directory
vishnureddybadveli 18de9d3
Update README.md
vishnureddybadveli acc6421
Update feature/gribi/otg_tests/mpls_decap/README.md
vishnureddybadveli c1166d4
Update feature/gribi/otg_tests/mpls_decap/README.md
vishnureddybadveli 636abf6
Update feature/gribi/otg_tests/mpls_decap/README.md
vishnureddybadveli 647d8cf
Update README.md
vishnureddybadveli 3da03c3
Update testregistry.textproto
vishnureddybadveli db78b3f
Create README.md
vishnureddybadveli c0a0d09
Merge branch 'decap' of https://github.com/vishnureddybadveli/feature…
vishnureddybadveli 3807df6
Update README.md
vishnureddybadveli 18dd2c2
Delete feature/gribi/otg_tests/mpls_decap directory
vishnureddybadveli 0602b4d
Update testregistry.textproto
vishnureddybadveli be094e1
Merge branch 'main' into decap
vishnureddybadveli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
158 changes: 158 additions & 0 deletions
158
feature/policy_forwarding/otg_tests/mpls_gre_udp_decap_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,158 @@ | ||
# PF-1.7 Decapsulate MPLS in GRE and UDP | ||
|
||
Create a policy-forwarding configuration using gNMI to decapsulate MPLS | ||
in GRE and UDP packets which are sent to a loopback address and apply to | ||
the DUT. | ||
|
||
## Topology | ||
|
||
* [`featureprofiles/topologies/atedut_2.testbed`](https://github.com/openconfig/featureprofiles/blob/main/topologies/atedut_2.testbed) | ||
|
||
## Test setup | ||
|
||
TODO: Complete test environment setup steps | ||
|
||
inner_ipv6_dst_A = "2001:aa:bb::1/128" | ||
inner_ipv6_dst_B = "2001:aa:bb::2/128" | ||
inner_ipv6_default = "::/0" | ||
|
||
ipv4_inner_dst_A = "10.5.1.1/32" | ||
ipv4_inner_dst_B = "10.5.1.2/32" | ||
ipv4_inner_default = "0.0.0.0/0" | ||
|
||
outer_ipv6_src = "2001:f:a:1::0" | ||
outer_ipv6_dst_A = "2001:f:c:e::1" | ||
outer_ipv6_dst_B = "2001:f:c:e::2" | ||
outer_ipv6_dst_def = "2001:1:1:1::0" | ||
outer_dst_udp_port = "6635" | ||
outer_dscp = "26" | ||
outer_ip-ttl = "64" | ||
|
||
## Procedure | ||
|
||
### PF-1.7.1 - MPLS in GRE decapsulation set by gNMI | ||
|
||
Canonical OpenConfig for policy forwarding, matching IP prefix with action | ||
decapsulate in GRE. | ||
|
||
```json | ||
{ | ||
"openconfig-network-instance": { | ||
"network-instances": [ | ||
{ | ||
"afts": { | ||
"policy-forwarding": { | ||
"policies": [ | ||
{ | ||
"config": { | ||
"policy-id": "default decap rule", | ||
"type": "PBR_POLICY" | ||
}, | ||
"policy": "default decap rule", | ||
"rules": [ | ||
{ | ||
"config": { | ||
"sequence-id": 1, | ||
}, | ||
"ipv6": { | ||
"config": { | ||
"destination-address": "decap_loopback_ipv6" | ||
} | ||
}, | ||
"action": { | ||
"decapsulate-mpls-in-gre": TRUE | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
* Push the gNMI the policy forwarding configuration | ||
* Push the configuration to DUT using gnmi.Set with REPLACE option | ||
* Configure ATE port 1 with traffic flow | ||
* Flow should have a packet encap format : outer_decap_gre_ipv6 <- MPLS label <- inner_decap_ipv6 | ||
* Generate traffic from ATE port 1 | ||
* Validate ATE port 2 receives the innermost IPv4 traffic with correct VLAN and inner_decap_ipv6 | ||
|
||
### PF-1.7.2 - MPLS in UDP decapsulation set by gNMI | ||
|
||
Canonical OpenConfig for policy forwarding, matching IP prefix with action | ||
decapsulate MPLS in UDP. | ||
|
||
```json | ||
{ | ||
"openconfig-network-instance": { | ||
"network-instances": [ | ||
{ | ||
"afts": { | ||
"policy-forwarding": { | ||
"policies": [ | ||
{ | ||
"config": { | ||
"policy-id": "default decap rule", | ||
"type": "PBR_POLICY" | ||
}, | ||
"policy": "default decap rule", | ||
"rules": [ | ||
{ | ||
"config": { | ||
"sequence-id": 1, | ||
}, | ||
"ipv6": { | ||
"config": { | ||
"destination-address": "decap_loopback_ipv6" | ||
} | ||
}, | ||
"action": { | ||
"decapsulate-mpls-in-udp": TRUE | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
* Push the gNMI the policy forwarding configuration | ||
* Push the configuration to DUT using gnmi.Set with REPLACE option | ||
* Configure ATE port 1 with traffic flow | ||
* Flow should have a packet encap format : outer_decap_udp_ipv6 <- MPLS label <- inner_decap_ipv6 | ||
* Generate traffic from ATE port 1 | ||
* Validate ATE port 2 receives the innermost IPv4 traffic with correct VLAN and inner_decap_ipv6 | ||
|
||
## OpenConfig Path and RPC Coverage | ||
|
||
```yaml | ||
paths: | ||
|
||
# Paths added for PF-1.7.1 - MPLS in GRE decapsulation set by gNMI | ||
/network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/ipv6/config/destination-address: | ||
# TODO: /network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/action/config/decapsulate-mpls-in-gre: | ||
|
||
# Paths added for PF-1.7.2 - MPLS in UDP decapsulation set by gNMI | ||
/network-instances/network-instance/policy-forwarding/policies/policy/rules/rule/action/config/decapsulate-mpls-in-udp: | ||
|
||
|
||
rpcs: | ||
gnmi: | ||
gNMI.Set: | ||
union_replace: true | ||
replace: true | ||
gNMI.Subscribe: | ||
on_change: true | ||
|
||
``` | ||
|
||
## Required DUT platform | ||
|
||
* FFF |
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the url for the readme in the readme field. It should look like:
https://github.com/openconfig/featureprofiles/blob/main//feature/policy_forwarding/otg_tests/mpls_gre_udp_decap_test//README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I think that we need to commit this pull request before adding the url for the readme in the readme field right? reason I left it blank once this change is committed I will add the url.