summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIgor Mikhailov (imichail) <imichail@cisco.com>2019-05-14 14:58:21 -0700
committerOle Trøan <otroan@employees.org>2019-05-15 07:17:38 +0000
commitf4592fb626e4def1e4bf091688cc786f9859638e (patch)
tree7bdcdeae375f1d19329ecd7ae2335d175d7e675d /src
parent19542299d3f4095acda802b73b8a71a2f208cdf2 (diff)
Fix stats documentation with default socket name
Change-Id: Ibcb726c229cc12705764f771c15110852b420c49 Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/stats/stats.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp/stats/stats.md b/src/vpp/stats/stats.md
index 521ab916876..6a62ca6c8ad 100644
--- a/src/vpp/stats/stats.md
+++ b/src/vpp/stats/stats.md
@@ -63,7 +63,7 @@ A new client library can either wrap the C library (libvppapiclient.so) or it ca
```
#!/usr/bin/env python
from vpp_papi.vpp_stats import VPPStats
-stats = VPPStats('/var/run/stats.socks')
+stats = VPPStats('/run/vpp/stats.sock')
dir = stats.ls(['^/if', '/err/ip4-input', '/sys/node/ip4-input'])
counters = stats.dump(dir)
@@ -82,7 +82,7 @@ int main (int argc, char **argv) {
vec_add1(patterns, "^/if");
vec_add1(patterns, "ip4-input");
- int rv = stat_segment_connect("/var/run/stats.sock");
+ int rv = stat_segment_connect(STAT_SEGMENT_SOCKET_FILE);
uint32_t *dir = stat_segment_ls(patterns);
stat_segment_data_t *res = stat_segment_dump(dir);