-
Notifications
You must be signed in to change notification settings - Fork 227
Adding new test for coverage of ipv6 dynamic NDP state transition #5666
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
Open
ram-mac
wants to merge
2
commits into
openconfig:main
Choose a base branch
from
ram-mac:ipv6_dynamic_ndp
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.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
105 changes: 105 additions & 0 deletions
105
feature/interface/ip/otg_tests/ipv6_neighbor_state_test/README.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| # RT-5.16: IPv6 Dynamic Neighbor Discovery (NDP) State Transitions | ||
|
|
||
| ## Summary | ||
|
|
||
| Verify the dynamic IPv6 Neighbor Discovery (NDP) state transitions on the DUT. | ||
| This includes verifying neighbor resolution, transitions to STALE state on inactivity, and recovery back to REACHABLE when traffic resumes. | ||
|
|
||
| ## Procedure | ||
|
|
||
| * Configure DUT port-1 with IPv6 address `2001:db8:1::1/64` and port-2 with `2001:db8:2::1/64`. | ||
| * Configure ATE port-1 with IPv6 address `2001:db8:1::2/64` and ATE port-2 with `2001:db8:2::2/64`. | ||
| * Enable IPv6 on both interfaces. | ||
|
|
||
| ### TC1: Initial Neighbor Discovery Resolution (REACHABLE State) | ||
| * Start continuous traffic flow from ATE port-2 to ATE port-1 (forwarded by the DUT). | ||
| * Verify that the neighbor entry for ATE port-1 (`2001:db8:1::2`) is resolved on the DUT. | ||
| * Verify that the neighbor attributes under `/interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state` match: | ||
| * `ip`: `2001:db8:1::2` | ||
| * `link-layer-address`: ATE port-1 MAC address | ||
| * `origin`: `DYNAMIC` | ||
| * `neighbor-state`: `REACHABLE` | ||
|
|
||
| ### TC2: Neighbor Inactivity and Transition to STALE | ||
| * Stop all traffic forwarding and interface packets. | ||
| * Wait for the neighbor entry to transition to `STALE` state (usually ~30s-60s on typical implementations). | ||
| * Query `/interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/neighbor-state` until it shows `STALE`. | ||
| * Verify the neighbor attributes: | ||
| * `neighbor-state`: `STALE` | ||
| * `link-layer-address`: remains populated with ATE port-1 MAC address | ||
|
|
||
| ### TC3: Stale Neighbor Traffic Recovery (Transition to REACHABLE) | ||
| * Resume continuous traffic flow from ATE port-2 to ATE port-1. | ||
| * Ensure that the DUT sends packets to the stale neighbor `2001:db8:1::2`. | ||
| * Verify that the neighbor state transitions back to `REACHABLE` (may transiently go through `DELAY` or `PROBE` state). | ||
| * Verify that the packet loss at the ATE receiver is sub-second (minimal packet loss during NDP probe phase). | ||
| * Verify that the neighbor attributes are updated back to: | ||
| * `neighbor-state`: `REACHABLE` | ||
|
|
||
| ## Canonical OC | ||
|
|
||
| ```json | ||
| { | ||
| "interfaces": { | ||
| "interface": [ | ||
| { | ||
| "name": "Ethernet1", | ||
| "config": { | ||
| "name": "Ethernet1" | ||
| }, | ||
| "subinterfaces": { | ||
| "subinterface": [ | ||
| { | ||
| "index": 0, | ||
| "config": { | ||
| "index": 0 | ||
| }, | ||
| "ipv6": { | ||
| "config": { | ||
| "enabled": true | ||
| }, | ||
| "addresses": { | ||
| "address": [ | ||
| { | ||
| "ip": "2001:db8:1::1", | ||
| "config": { | ||
| "ip": "2001:db8:1::1", | ||
| "prefix-length": 64 | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## OpenConfig Path and RPC Coverage | ||
|
|
||
| The below yaml defines the OC paths and RPC intended to be covered by this test. | ||
|
|
||
| ```yaml | ||
| paths: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/config/enabled: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/addresses/address/config/ip: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/addresses/address/config/prefix-length: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/ip: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/link-layer-address: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/neighbor-state: | ||
| /interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/origin: | ||
|
|
||
| rpcs: | ||
| gnmi: | ||
| gNMI.Get: | ||
| gNMI.Set: | ||
| gNMI.Subscribe: | ||
| ``` | ||
|
|
||
| ## Minimum DUT Platform Requirement | ||
|
|
||
| FFF | ||
8 changes: 8 additions & 0 deletions
8
feature/interface/ip/otg_tests/ipv6_neighbor_state_test/metadata.textproto
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # proto-file: github.com/openconfig/featureprofiles/proto/metadata.proto | ||
| # proto-message: Metadata | ||
|
|
||
| uuid: "307a9ab1-5617-49ad-9b89-b0906ed9a750" | ||
| plan_id: "RT-5.16" | ||
| description: "IPv6 Dynamic Neighbor Discovery (NDP) State Transitions" | ||
| testbed: TESTBED_DUT_ATE_2LINKS | ||
|
|
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
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.
Uh oh!
There was an error while loading. Please reload this page.