telemetrify-collector / telemetrify

A YANG driven network telemetry collector
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Add tsdb-cat for IP SLA on C8000v #27

Closed mzagozen closed 1 year ago

mzagozen commented 1 year ago

I added a secondary NSO - nso-config to push interface and IP SLA configuration via the CLI NED. In this way the schema loaded in the primary NSO remains minimal - just the new oper data models for IP SLA.

  1. make start
  2. make configure
  3. make nso-test
mzagozen@bn831-dcdev-8a-lab:~/abs/acton-streamer/tests/tsdb-cat$ make nso-test                                                                                                         [251/1641]Makefile:84: warning: overriding recipe for target 'stop'
../testenv-common.mk:95: warning: ignoring old recipe for target 'stop'
make runcmdJ CMD="request devices fetch-ssh-host-keys"
make[1]: Entering directory '/home/mzagozen/abs/acton-streamer/tests/tsdb-cat'
Makefile:84: warning: overriding recipe for target 'stop'
../testenv-common.mk:95: warning: ignoring old recipe for target 'stop'
docker exec -t tsdb-cat-nso-1 bash -lc 'echo -e "unhide debug\nunhide full\nrequest devices fetch-ssh-host-keys" | ncs_cli --stop-on-error -Ju admin'
fetch-result {
    device cat1
    result unchanged
    fingerprint {
        algorithm ssh-rsa
        value 3f:02:4f:21:d1:2b:88:0d:82:a3:74:51:6d:93:dc:59
    }
}
fetch-result {
    device cat2
    result unchanged
    fingerprint {
        algorithm ssh-rsa
        value d4:28:f9:29:2f:5a:77:3c:79:8b:11:a8:67:2c:a9:23
    }
}
make[1]: Leaving directory '/home/mzagozen/abs/acton-streamer/tests/tsdb-cat'
make runcmdJ CMD="show devices device cat1 live-status ip-sla-stats"
make[1]: Entering directory '/home/mzagozen/abs/acton-streamer/tests/tsdb-cat'
Makefile:84: warning: overriding recipe for target 'stop'
../testenv-common.mk:95: warning: ignoring old recipe for target 'stop'
docker exec -t tsdb-cat-nso-1 bash -lc 'echo -e "unhide debug\nunhide full\nshow devices device cat1 live-status ip-sla-stats" | ncs_cli --stop-on-error -Ju admin'
live-status ip-sla-stats sla-oper-entry 10
 oper-type              oper-type-udp-jitter
 latest-return-code     ret-code-ok
 success-count          126
 failure-count          2
 latest-oper-start-time 2023-10-06T14:12:36+00:00
 rtt-info latest-rtt rtt 3
 rtt-info time-to-live forever
 stats rtt rtt-count 10
 stats rtt sla-time-values min 1
 stats rtt sla-time-values avg 3
 stats rtt sla-time-values max 5
 stats rtt sla-time-values accuracy accuracy-milliseconds
 stats oneway-latency sample-count 0
 stats oneway-latency sd min 0
 stats oneway-latency sd avg 0
...

Closes #20

plajjan commented 1 year ago

image

tsdb-cat lol

plajjan commented 1 year ago

LGTM! Merging..