SetRequest_controll_card_switchover - openconfig/featureprofiles GitHub Wiki
This test verifies if a large config can be bushed via gNMI SetRequest within 2 minutes after Control Card switchover.
- Prepare a large OpenConfig config file to be pushed within a single setRequest.
- 150 LAG interfaces w/ ip, ipv6 configuration
- 800 Ethernet interfaces as member s of LAG
- 28 IPv4 and 28 IPv6 BGP neighbors
- ISIS on all trunk/LAG ports
- Store indexes of ACTIVE and BACKUP Controller Card in "previous_Active" and "previous_BACKUP"
- Initiate Control Card switchover using gNOI SwitchControlProcessorRequest; store timestamp in "SwitchControlProcessorRequest_time"
- Wait for
SwitchControlProcessorResponce
but no longer then 120s. If not received, test FAILED. - Immediately after receiving
SwitchControlProcessorResponce
for gNOI switchover, send gNMIsetRequest
with a prepared large config. Store timestamp as "SwitchControlProcessorResponce_time". - Wait for
SetResponce
but no longer than 30s.- If not received, the test wait 10s and send gNMI
setRequest
with prepared large config. Repaet Wait forSetResponce
. - If received at time <= "SwitchControlProcessorResponce"+110s and a non-zero grpc status code is returned, wait 10s and send gNMI
setRequest
with prepared large config. Repeat Wait forSetResponce
- If received at time > "SwitchControlProcessorResponce"+110s and a non-zero grpc status code is returned, test FAILED
- If received at time <= "SwitchControlProcessorResponce"+120s and SUCCESS is returned, proceed
- If not received, the test wait 10s and send gNMI
- Retrieve configuration from DUT DUT using gNMI
GetRequest
. - Verify:
- The gNMI
setResponce
has been received within 120s aftersetRequest
by comparing with "SwitchControlProcessorResponse_time", and - The gNOI
SwitchControlProcessorResponce
has been received and switchover was executed by DUT (compare "previous_ACRIVE" with DUT state), and - The configuration retrieved from DUT is the same as one prepared^1
- The gNMI
^1 some small deviations are expected. This is OK to verify that the retrieve configuration configuration is not smaller in size than the prepared one, and has the same number of interfaces, BGP neighbors.
dut.testbed
N/A
N/A
MFF