forked from openconfig/featureprofiles
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RT-2.17: IS-IS Graceful Restart Restarting test plan (openconfig#3609)
* Create README.md * ISIS GR restarter README.md * rps fixing * fix rpc 1 * foc rpc 3 * fix RPC 4 * fix typo * correct test ID
- Loading branch information
Showing
5 changed files
with
293 additions
and
4 deletions.
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
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
262 changes: 262 additions & 0 deletions
262
feature/isis/otg_tests/graceful_restart_restarting/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,262 @@ | ||
# RT-2.17: IS-IS Graceful Restart Restarting | ||
|
||
## Summary | ||
|
||
- test verify isis garceful restarts support restarter mode. | ||
|
||
## Testbed type | ||
|
||
* https://github.com/openconfig/featureprofiles/blob/main/topologies/atedut_2.testbed | ||
|
||
## Procedure | ||
|
||
#### Initial Setup: | ||
|
||
* Connect: | ||
* DUT port-1 to ATE port-1 | ||
* DUT port-2 to ATE port-2 | ||
|
||
* Configure IPv4 and IPv6 addresses on DUT and ATE ports as shown below | ||
* DUT port-1 IPv4 address ```dp1-v4 = 192.168.1.1/30``` | ||
* ATE port-1 IPv4 address ```ap1-v4 = 192.168.1.2/30``` | ||
|
||
* DUT port-2 IPv4 address ```dp2-v4 = 192.168.1.5/30``` | ||
* ATE port-2 IPv4 address ```ap2-v4 = 192.168.1.6/30``` | ||
|
||
* DUT port-1 IPv6 address ```dp1-v6 = 2001:DB8::1/126``` | ||
* ATE port-1 IPv6 address ```ap1-v6 = 2001:DB8::2/126``` | ||
|
||
* DUT port-2 IPv6 address ```dp2-v6 = 2001:DB8::5/126``` | ||
* ATE port-2 IPv6 address ```ap2-v6 = 2001:DB8::6/126``` | ||
|
||
* Create an "target IPv4" network i.e. ```ipv4-network = 192.168.10.0/24``` attached to ATE port-2 and inject it to ISIS. | ||
|
||
* Create an "target IPv6" network i.e. ```ipv6-network = 2024:db8:128:128::/64``` attached to ATE port-2 and inject it to ISIS. | ||
|
||
* Configure ISIS | ||
* Configure separate ISIS emulated routers, one on each ATE ports-1, port-2 | ||
* Enable IPv4 and IPv6 IS-IS L2 adjacency between ATE port-1 and DUT port-1, DUT port-2 and ATE port-2 in point-to-point mode. | ||
|
||
```json | ||
{ | ||
"network-instances": { | ||
"network-instance": [ | ||
{ | ||
"name": "DEFAULT", | ||
"protocols": { | ||
"protocol": [ | ||
{ | ||
"identifier": "ISIS", | ||
"name": "DEFAULT", | ||
"config": { | ||
"name": "DEFAULT", | ||
"identifier": "ISIS" | ||
}, | ||
"isis": { | ||
"global": { | ||
"afi-safi": { | ||
"af": [ | ||
{ | ||
"afi-name": "IPV4", | ||
"config": { | ||
"afi-name": "IPV4", | ||
"enabled": true, | ||
"safi-name": "UNICAST" | ||
}, | ||
"safi-name": "UNICAST" | ||
}, | ||
{ | ||
"afi-name": "IPV6", | ||
"config": { | ||
"afi-name": "IPV6", | ||
"enabled": true, | ||
"safi-name": "UNICAST" | ||
}, | ||
"safi-name": "UNICAST" | ||
} | ||
] | ||
}, | ||
"config": { | ||
"level-capability": "LEVEL_2", | ||
"net": [ | ||
"<NET address of this WBB>" | ||
] | ||
} | ||
}, | ||
"interfaces": { | ||
"interface": [ | ||
{ | ||
"config": { | ||
"passive": true, | ||
"enabled": true, | ||
"interface-id": "Loopback0" | ||
}, | ||
"interface-id": "Loopback0", | ||
"interface-ref": { | ||
"config": { | ||
"interface": "loopback0", | ||
"subinterface": 0 | ||
} | ||
}, | ||
"levels": { | ||
"level": [ | ||
{ | ||
"config": { | ||
"level-number": 2, | ||
"enabled": true | ||
}, | ||
"level-number": 2 | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"config": { | ||
"circuit-type": "POINT_TO_POINT", | ||
"enabled": true, | ||
"interface-id": "<Interface_ID>" | ||
}, | ||
"interface-id": "<Interface_ID>", | ||
"interface-ref": { | ||
"config": { | ||
"interface": "<Interface name>", | ||
"subinterface": 0 | ||
} | ||
}, | ||
"levels": { | ||
"level": [ | ||
{ | ||
"afi-safi": { | ||
"af": [ | ||
{ | ||
"afi-name": "IPV4", | ||
"config": { | ||
"afi-name": "IPV4", | ||
"metric": 10, | ||
"safi-name": "UNICAST" | ||
}, | ||
"safi-name": "UNICAST" | ||
}, | ||
{ | ||
"afi-name": "IPV6", | ||
"config": { | ||
"afi-name": "IPV6", | ||
"metric": 10, | ||
"safi-name": "UNICAST" | ||
}, | ||
"safi-name": "UNICAST" | ||
} | ||
] | ||
}, | ||
"config": { | ||
"level-number": 2, | ||
"enabled": true | ||
}, | ||
"level-number": 2, | ||
"timers": { | ||
"config": { | ||
"hello-interval": 10, | ||
"hello-multiplier": 6 | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"levels": { | ||
"level": [ | ||
{ | ||
"config": { | ||
"level-number": 2, | ||
"metric-style": "WIDE_METRIC", | ||
"enabled": true | ||
}, | ||
"level-number": 2 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
* Enable IPv4 and IPv6 IS-IS L2 adjacency between ATE port-1 and DUT port-1, DUT port-2 and ATE port-2 in point-to-point mode.\ | ||
* Enable GR helper on ATE port-1 na ATE port-2 in compliacnce with RFC5306 (non-planned restart ONLY). | ||
* Set ISIS graceful restart helper mode on DUT | ||
|
||
```json | ||
{ | ||
"network-instances": { | ||
"network-instance": [ | ||
{ | ||
"name": "DEFAULT", | ||
"protocols": { | ||
"protocol": [ | ||
{ | ||
"identifier": "ISIS", | ||
"name": "DEFAULT", | ||
"isis": { | ||
"global": { | ||
"graceful-restart": { | ||
"config": { | ||
"enabled": true, | ||
"helper-only": false, | ||
"restart-time": 30 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### RT-2.17.1 CONTROLLER-CARD switchover [TODO: ] | ||
#### | ||
|
||
* Generate traffic form ATE port-1 to "target IPv4" and "target IPv6" networks (ATE port-2) | ||
* Verify traffic is recived on ATE port-2 | ||
* Using gNOI SwitchControlProcessor call initiate CONROLER-CARD switchover. | ||
* Verify traffic is recived on ATE port-2 during restart time ( no losses ) | ||
* Wait 60 sec. | ||
|
||
### RT-2.17.2 DUT ISIS restart [TODO: ] | ||
* Generate traffic form ATE port-1 to "target IPv4" and "target IPv6" networks (ATE port-2) | ||
* Verify traffic is recived on ATE port-2 | ||
* Using gNOI KillProcess w/ SIGNAL_KILL call restart process serving ISIS (implementation dependednt). This try to simulate ISIS crash due to unexpected error. | ||
* Verify traffic is recived on ATE port-2 during restart time ( no losses ) | ||
* Wait 60 sec. | ||
|
||
## 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/protocols/protocol/isis/global/graceful-restart/config/enabled: | ||
/network-instances/network-instance/protocols/protocol/isis/global/graceful-restart/config/helper-only: | ||
/network-instances/network-instance/protocols/protocol/isis/global/graceful-restart/config/restart-time: | ||
|
||
rpcs: | ||
gnmi: | ||
gNMI.Subscribe: | ||
gNMI.Set: | ||
gnoi: | ||
system.System.SwitchControlProcessor: | ||
system.System.KillProcess: | ||
``` | ||
|
||
## Required DUT platform | ||
|
||
* FFF |
21 changes: 21 additions & 0 deletions
21
feature/isis/otg_tests/graceful_restart_restarting/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,21 @@ | ||
# proto-file: github.com/openconfig/featureprofiles/proto/metadata.proto | ||
# proto-message: Metadata | ||
|
||
uuid: "3A0314F5-B8BF-418C-AF23-F052B3E1F28F" | ||
plan_id: "RT-2-17" | ||
description: "IS-IS Graceful Restart Restarting" | ||
testbed: TESTBED_DUT_ATE_2LINKS | ||
platform_exceptions: { | ||
platform: { | ||
vendor: ARISTA | ||
} | ||
deviations: { | ||
interface_enabled: true | ||
default_network_instance: "default" | ||
omit_l2_mtu: true | ||
isis_interface_afi_unsupported: true | ||
isis_instance_enabled_required: true | ||
missing_value_for_defaults: true | ||
skip_isis_set_level: true | ||
} | ||
} |
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