stats: adding symlinks for nodes and interfaces in the stat segment 36/31636/18
authorArthur de Kerhor <arthurdekerhor@gmail.com>
Thu, 11 Mar 2021 18:26:54 +0000 (10:26 -0800)
committerOle Tr�an <otroan@employees.org>
Tue, 4 May 2021 16:29:29 +0000 (16:29 +0000)
commitdb023809043f1dc64ed8c30dd5a575763df6045b
treeeace5cdd59301a33872e312dd59bb9d2a24b8820
parent78b0a6e3f6e8644ebd06273f53b2440748ba34f4
stats: adding symlinks for nodes and interfaces in the stat segment

A given interface counter (e.g rx) can be accessed via
/interfaces/<interface_name>/<counter_name>.
Same goes with nodes: /nodes/<node_name>/<counter_name>
As interfaces may contain '/' in their names,
these are replaced by '_' in symlinks
Also added 2 tests for the stat segment

Type: feature

Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
Change-Id: I27da252e7b3dc177815616ca46b5c200a456bf0f
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp-api/client/stat_client.c
src/vpp-api/python/vpp_papi/vpp_stats.py
src/vpp/stats/stat_segment.c
src/vpp/stats/stat_segment.h
src/vpp/stats/stat_segment_shared.h
test/framework.py
test/test_stats_client.py