Skip to content

Commit

Permalink
Adding MPLS Static test case (#2587)
Browse files Browse the repository at this point in the history
* Adding MPLS Static test case

* Addressing comments regarding tolerance and the const label as uint32

* Update metadata.textproto

updated plan_id to RT-1.25 per the READme

* Update static LSP test and metadata in gribi OTG tests

The existing static LSP tests and corresponding metadata have been updated for more efficient execution. Changes include modification of the plan ID, vendor name, function parameters and error messages. Moreover, correctly spelled names replaced the typos, improved handling of expected and unexpected packets, and ensured correct configuration of the tested system through the refine implementation of the testing functions.

* updated fmt.sprintf

* update

* updated

* updated readme

* yaml fix

* fixed yaml

* updated yaml

* updated yaml

* yaml fix

---------

Co-authored-by: nraghavendran <[email protected]>
Co-authored-by: Pramod Maurya <[email protected]>
Co-authored-by: AmrNJ <[email protected]>
  • Loading branch information
4 people authored Jun 5, 2024
1 parent 6cc5459 commit 2661cfd
Show file tree
Hide file tree
Showing 5 changed files with 425 additions and 27 deletions.
25 changes: 0 additions & 25 deletions feature/gribi/otg_tests/static_lsp/README.md

This file was deleted.

36 changes: 36 additions & 0 deletions feature/gribi/otg_tests/static_lsp_test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# TE-9.2: MPLS based forwarding Static LSP

## Summary

Validate static lsp functionality.

## Procedure

* Create topology ATE1–DUT1-ATE2
* Enable MPLS forwarding and create egress static LSP to pop the label and forward to ATE2:
* Match incoming label (1000001)
* Set IP next-hop
* Set egress interface
* Set the action to pop label
* Start 2 traffic flows with specified MPLS tags IPv4-MPLS[1000002]-MPLS[1000001]
* Verify that traffic is received at ATE2 with MPLS label [1000001] removed

## OpenConfig Path and RPC Coverage

The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.

```yaml
paths:
## Config paths
/network-instances/network-instance/mpls/lsps/static-lsps/static-lsp/egress/config/next-hop:
/network-instances/network-instance/mpls/lsps/static-lsps/static-lsp/egress/config/incoming-label:
/network-instances/network-instance/mpls/lsps/static-lsps/static-lsp/egress/config/push-label:

## State paths
/network-instances/network-instance/mpls/lsps/static-lsps/static-lsp/egress/state/next-hop:
/network-instances/network-instance/mpls/lsps/static-lsps/static-lsp/egress/state/incoming-label:

rpcs:
gnmi:
gNMI.Set:
gNMI.Subscribe:
15 changes: 15 additions & 0 deletions feature/gribi/otg_tests/static_lsp_test/metadata.textproto
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# proto-file: github.com/openconfig/featureprofiles/proto/metadata.proto
# proto-message: Metadata

uuid: "021610e4-9b59-48c2-a9b9-2f204fa4c2a7"
plan_id: "TE-9.2"
description: "MPLS based forwarding Static LSP"
testbed: TESTBED_DUT_ATE_2LINKS
platform_exceptions: {
platform: {
vendor: CISCO
}
deviations: {
ipv4_missing_enabled: true
}
}
Loading

0 comments on commit 2661cfd

Please sign in to comment.