gnmi_sample_mode_test - openconfig/featureprofiles GitHub Wiki
Test to validate basic gNMI streaming telemetry works with SAMPLE
mode.
-
Create a new gNMI Subscription to Interface description
state
leaf inSAMPLE
mode. with a 10 second interval -
Configure Port-1 with description
DUT Port 1
. -
Verify correct description is streamed.
-
Update Port-1 description to
DUT Port 1 - Updated
. -
Verify correct description is streamed.
-
Create a new gNMI Subscription to Interface description
state
leaf inSAMPLE
mode with a 10 second interval. -
Configure Port-1 with description
DUT Port 1
. -
Flap port 1 interface and wait for it to be UP.
-
Collect all the samples streamed and validate no invalid values were streamed during the flap.
-
Create a new gNMI Subscription to Default Network Instance
state
container inSAMPLE
mode with a 10 second interval. -
Configure ISIS on Port 1 in Default Network Instance.
-
Verify that ISIS telemetry is streamed within the next 5 samples.
The below yaml defines the OC paths intended to be covered by this test. OC paths used for test setup are not listed here.
paths:
## Config Paths ##
/interfaces/interface/config/description:
## State Paths ##
/interfaces/interface/state/description:
rpcs:
gnmi:
gNMI.Subscribe:
SAMPLE: true