From: Igor Mikhailov (imichail) Date: Tue, 14 May 2019 21:58:21 +0000 (-0700) Subject: Fix stats documentation with default socket name X-Git-Tag: v20.01-rc0~615 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F78%2F19578%2F2;p=vpp.git Fix stats documentation with default socket name Change-Id: Ibcb726c229cc12705764f771c15110852b420c49 Signed-off-by: Igor Mikhailov (imichail) --- 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);