Hello, > How to get interface stats using python api? > For example, I want to know "GigabitEthernete/0/1" rx packets, what shoud I > do?
You register for stats with the want_stats call. Before that you must register an event handler with VPP.register_event_callback Then that callback will be called periodically with the stats messages. VL_API_VNET_INTERFACE_COUNTERS, VL_API_VNET_IP6_FIB_COUNTERS and VL_API_VNET_IP4_FIB_COUNTERS if I remember correctly. Ping me if you need more help. Cheers, Ole
signature.asc
Description: Message signed with OpenPGP
_______________________________________________ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev