Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Implementation of sample streaming mode #49

Merged
merged 9 commits into from
Dec 17, 2020

Conversation

macikgozwa
Copy link
Contributor

@macikgozwa macikgozwa commented Nov 19, 2020

Implementation of sample streaming mode per https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#35152-stream-subscriptions

What is NOT included:

  • TARGET_DEFINED mode.
  • suppress_redundant and hence heartbeat_interval are ignored.
  • The behavior of dial-out streaming hasn't changed. It will stay ON_CHANGE.

For testing results, see the example queries and the response:

  • Virtual DB Single table:
./gnmi_cli_py/py_gnmicli.py -g -t localhost -p 8080 -m subscribe --submode 2 -x "COUNTERS/Ethernet0"   -xt COUNTERS_DB -o "ndastreamingservertest" --interval 5000 --update_count 3

Response: single-table.txt

  • Virtual DB Multiple table:
./gnmi_cli_py/py_gnmicli.py -g -t localhost -p 8080 -m subscribe --submode 2 -x "COUNTERS/Ethernet*"   -xt COUNTERS_DB -o "ndastreamingservertest" --interval 5000 --update_count 3

Response: multi-table.txt

  • Single field
./gnmi_cli_py/py_gnmicli.py -g -t localhost -p 8080 -m subscribe --submode 2 -x "COUNTERS/Ethernet0/SAI_PORT_STAT_ETHER_IN_PKTS_128_TO_255_OCTETS"   -xt COUNTERS_DB -o "ndastreamingservertest" --interval 5000 --update_count 3

Response: single-field.txt

  • Single field across multiple tables
./gnmi_cli_py/py_gnmicli.py -g -t localhost -p 8080 -m subscribe --submode 2 -x "COUNTERS/Ethernet*/SAI_PORT_STAT_ETHER_IN_PKTS_128_TO_255_OCTETS"   -xt COUNTERS_DB -o "ndastreamingservertest" --interval 5000 --update_count 3 

Response: multi-field.txt

  • Virtual DB multiple table with update_only where only the changed part is included in the update: updates-only.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants