STATS: Python binding to access VPP statistics and counters. 84/14584/4
authorOle Troan <ot@cisco.com>
Thu, 30 Aug 2018 22:29:48 +0000 (00:29 +0200)
committerDamjan Marion <dmarion@me.com>
Sun, 2 Sep 2018 16:13:57 +0000 (16:13 +0000)
commit732021070fa0c731896ab3e29f802d3834c72ab7
treed7ecbd4e4c986333b1ba59db931f0e3283da2195
parent855e26868ff8b9e6d00ca4d69ce6c9fdc0f2e121
STATS: Python binding to access VPP statistics and counters.

from vpp_papi.vpp_stats import VPPStats
s = VPPStats(socketname='/var/run/stats.sock')
c = s.ls('/if/rx')
counters = s.dump(c)
print(s.set_error_str())

Change-Id: I203ebe60b0c9ee5742aadc737c0f29051757959d
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp-api/client/libvppapiclient.map
src/vpp-api/client/stat_client.c
src/vpp-api/client/stat_client.h
src/vpp-api/python/vpp_papi/vpp_stats.py [new file with mode: 0644]
src/vpp/app/vpp_get_stats.c
test/framework.py
test/test_ipip.py