SetRequest_controll_card_switchover - bstoll/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
SwitchControlProcessorResponcebut no longer then 120s. If not received, test FAILED. - Immediately after receiving
SwitchControlProcessorResponcefor gNOI switchover, send gNMIsetRequestwith a prepared large config. Store timestamp as "SwitchControlProcessorResponce_time". - Wait for
SetResponcebut no longer than 30s.- If not received, the test wait 10s and send gNMI
setRequestwith 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
setRequestwith 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
setResponcehas been received within 120s aftersetRequestby comparing with "SwitchControlProcessorResponse_time", and - The gNOI
SwitchControlProcessorResponcehas 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