It looks like the only access to stats though is from shared memory. I guess running vpp_get_stats with ssh is the way to fetch the counters in this case. It would be nice if there was an API in VPP that mimic'd the vpp_get_stats functionality though. Could even expose that to the CLI.
I really just want the interface and error counts for now, was a little surprised there was no API for this (since it exists in the CLI). Thanks, Chris. > On Jan 8, 2020, at 6:40 PM, Christian Hopps <cho...@chopps.org> wrote: > > The ssh tunnel is a good-enough solution actually, as I'm running vpp on each > host using ssh connections. I can map the socket using that :) > > Thanks, > Chris. > >> On Jan 8, 2020, at 4:59 PM, Ole Troan <otr...@employees.org> wrote: >> >> Hi Christian, >> >> VPP itself exposes the API over a Unix domain socket or via shared memory. >> >> There is no authentication, retransmits, or congestion control. >> >> I have tried proxying the UDS across an ssh tunnel and that seemed to work. >> You could also do something like a grpc proxy to accommodate remote access. >> >> Cheers >> Ole >> >>> On 8 Jan 2020, at 22:22, Christian Hopps <cho...@chopps.org> wrote: >>> >>> I was looking to use the VPP binary api using python over a TCP socket. As >>> I look at the python code it seems this may not be possible. Can anyone >>> confirm whether this might be possible or not? I see in the python api code >>> it opens a unix stream socket, so I changed that to AF_INET without much >>> luck. I'm wondering if this just needs a couple tweaks or if it's really >>> not supported. >>> >>> Thanks, >>> Chris. >> > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15102): https://lists.fd.io/g/vpp-dev/message/15102 Mute This Topic: https://lists.fd.io/mt/69538850/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-