Hi, I want to get stats from vpp python api. I am following instructions as specified in https://wiki.fd.io/view/VPP/Python_API. I am able to get other info as interface details etc. which uses dump and req/rep messages.
vpp_papi.register_event_callback(papi_event_handler) does not call the callback function specified, when want_stats is called. In https://www.mail-archive.com/vpp-dev@lists.fd.io/msg03819.html it is mentioned 1.) client -> want_stats -> vpp 2.) vpp -> want_stats_reply -> client (confirms subscription) 3.) vpp -> <various stats messages> -> client (when timer fires) in step 3.), client needs to read the shared memory queue in the vpp->client direction (or use the appropriate XXX_read() function). Note that stats take a few seconds to arrive (the test programs require 10-15 seconds of runtime to get some stats). But not sure where these read_from_shared_mem functions are. I assumed that want_stats will send the stats when enabled. Please guide on this. Regards, Neha
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9801): https://lists.fd.io/g/vpp-dev/message/9801 Mute This Topic: https://lists.fd.io/mt/23196484/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-