Skip to content

Commit

Permalink
updating the tests to validate Subscribe ON_CHANGE telemetry (opencon…
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-rp authored Dec 13, 2023
1 parent 0e04dbc commit 1268185
Showing 1 changed file with 30 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@

## Summary
WBB is required to support gNMI Subscribe with SAMPLE or ON_CHANGE mode for various counters.
This test if to verify that DUT supports gNMI Subscribe with sample mode, updating
the available backplane capacity counters correctly while forwarding traffic

* Get backplace capacity before any traffic is sent

* Send some traffic and wait for the sample to be collected

* Send more traffic and wait for the sample to be collected
This test if to verify that DUT supports gNMI Subscribe with ON_CHANGE for backplane-facing-capacity

## Testbed type

Expand All @@ -25,58 +18,57 @@ the available backplane capacity counters correctly while forwarding traffic

* Configure IPv4/IPv6 addresses on the interfaces

* Using gNMI subscribe with "SAMPLE" mode

* Run the test twice, once with a SAMPLE interval of 10 Seconds and once again
with a SAMPLE interval of 15 seconds for the below telemetry path
* Using gNMI subscribe with "ON_CHANGE" mode

* /components/component/integrated-circuit/backplane-facing-capacity/state/consumed-capacity

* Initiate traffic:

* Initiate traffic as per below threshold:

Port number | Interface1(line rate %)
-------------- | -----------------------
Port1 | 20%
Port2 | 20%
* consumed-capacity is the sum of the admin-up front panel interface speeds connected to the integrated-circuit

* Validate that we are receiving consumed capacity metrics at the selected SAMPLE interval
* Ensure that we receieve the initial consumed-capacity metric

* Increase the traffic as per below threshold
* Set port-2 enabled=false

Port number | Interface1(line rate %)
-------------- | -----------------------
Port1 | 70%
Port2 | 70%
* Validate that we recieve a changed consumed-capacity metric of a higher value

* Validate we are now receiving increased consumed capacity metrics at the selected SAMPLE interval
* Set port-2 enable=true

### gNMI-1.18.2
* Validate that we recieve a changed consumed-capacity metric matching the initial value

* Connect DUT port-1 and 2 to ATE port-1 and 2 respectively

* For MFF DUT ports 1 and 2 SHOULD be on different linecards

* Configure IPv4/IPv6 addresses on the interfaces
### gNMI-1.18.2 [TODO: https://github.com/openconfig/featureprofiles/issues/2323]

* Use gNMI subscribe with "ON_CHANGE" mode for the below telemetry paths

* /components/component/integrated-circuit/backplane-facing-capacity/state/total
* /components/component/integrated-circuit/backplane-facing-capacity/state/total-operational-capacity
* /components/component/integrated-circuit/backplane-facing-capacity/state/available-pct

* Disable one of the available FABRIC component
* Make sure we recieve the initial metric for each of the telemetry paths

* Disable two FABRIC components

* set /components/component/{fabric}/config/power-admin-state to POWER_DISABLED

* Validate that we recieve changed metrics of a lower value for each of the telemetry paths
* Validate that we recieve changed metric of a lower value for the below telemetry paths

* Enable the FABRIC component that was disabled in the previous step
* /components/component/integrated-circuit/backplane-facing-capacity/state/total-operational-capacity
* /components/component/integrated-circuit/backplane-facing-capacity/state/available-pct

* Ensure that the metric for the below telemetry path should not have changed hence no updated metric should be received

* /components/component/integrated-circuit/backplane-facing-capacity/state/total

* Enable the FABRIC components that were disabled previously

* Set /components/component/{fabric}/config/power-admin-state to POWER_ENABLED

* Validate that we recieve changed metrics of a higher value for each of the telemetry paths
* Validate that we recieve changed metric matching the initial metric for the below of the telemetry paths

* /components/component/integrated-circuit/backplane-facing-capacity/state/total-operational-capacity
* /components/component/integrated-circuit/backplane-facing-capacity/state/available-pct

* Ensure that the metric for the below telemetry path should not have changed hence no updated metric should be received

* /components/component/integrated-circuit/backplane-facing-capacity/state/total

## Config parameter coverage

Expand All @@ -85,7 +77,7 @@ the available backplane capacity counters correctly while forwarding traffic
* /interfaces/interface/subinterfaces/subinterface/ipv6/config/enabled
* /components/component/{fabric}/config/power-admin-state

## Telemetry parameter coverage (gNMI subscribe with sample every 10 seconds)
## Telemetry parameter coverage

* /components/component/integrated-circuit/backplane-facing-capacity/state/available-pct
* /components/component/integrated-circuit/backplane-facing-capacity/state/consumed-capacity
Expand Down

0 comments on commit 1268185

Please sign in to comment.