[vpp-dev] python api macip_acl_add failed

2017-07-26 Thread Weitao Han
I use macip_acl_add to add some macip rules, but failed. What is the max length of vl_api_macip_acl_rule_t in macip_acl_add? When I try to add more than 2 rules, I get no reply from vpp_papi. Like this from vpp_papi import VPP vpp = VPP() vpp.connect('t') rules = [ {'src

[vpp-dev] The length of vl_api_macip_acl_rule_t in macip_acl_add (python api)

2017-07-24 Thread Weitao Han
What is the max length of vl_api_macip_acl_rule_t in macip_acl_add? When I try to add more than 2 rules, I get no reply from vpp_papi. Like this from vpp_papi import VPP vpp = VPP() vpp.connect('t') rules = [ {'src_ip_prefix_len': 0, 'src_mac_mask': '\xff\xff\xff\xff\xff\

[vpp-dev] What is "pneum_read filed"?

2017-07-24 Thread Weitao Han
When I use multithreads(python threading) to send msg to vpp, it raises "IOError - pneum_read filed". In vpp_papi.py rv = vpp_api.pneum_read(mem, size, self.read_timeout) if rv: raise IOError(rv, 'pneum_read filed') What does IOError - pneum_read filed mean?

Re: [vpp-dev] How to get interface stats using python api?

2017-06-13 Thread Weitao Han
I noticed that in interface.api. manual_print manual_endian define vnet_interface_combined_counters { /* enums - plural - in vnet/interface.h */ u8 vnet_counter_type; u32 first_sw_if_index; u32 count; vl_api_vlib_counter_t data[count]; }; Should vl_api_vlib_counter_t be u64? Is that ri

Re: [vpp-dev] How to get interface stats using python api?

2017-06-13 Thread Weitao Han
I will try the latest version of vpp. Thank you very much! WT Han 2017-06-13 18:56 GMT+08:00 : > Hi again, > > > I tried the method you told me, but the data that I got is '\x00'. > > > > Like this, vnet_interface_counters(_0=49, vnet_counter_type=1, > is_combined=1, first_sw_if_index=0, count=

Re: [vpp-dev] How to get interface stats using python api?

2017-06-13 Thread Weitao Han
Dear Ole I tried the method you told me, but the data that I got is '\x00'. Like this, vnet_interface_counters(_0=49, vnet_counter_type=1, is_combined=1, first_sw_if_index=0, count=7, data='\x00\x00\x00\x00\x00\x00\x00') I don't why this happened. Thanks WT Han 2017-06-13 18:02 GMT+08:00 : >

[vpp-dev] How to get interface stats using python api?

2017-06-13 Thread Weitao Han
Hi! How to get interface stats using python api? For example, I want to know "GigabitEthernete/0/1" rx packets, what shoud I do? Thanks WT Han ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev

Re: [vpp-dev] vpp_papi: No such message type or failed CRC checksum

2017-04-25 Thread Weitao Han
Hi, I installed vpp 17.04 release in a new clean ubuntu 16.04 server, except that, I did nothing. When I first connect vpp using python api, the terminal show those DEBUG messages. Is this phenomenon right? Best regards, Weitao Han 2017-04-25 16:47 GMT+08:00 : > Hi, > > This means

Re: [vpp-dev] How can I get API messages IDs?

2017-04-25 Thread Weitao Han
nguish what kind of messages I received asynchronously, so I want to know the message IDs for all API messages. Is there any other way to do this without knowing message IDs? Best regards Weitao Han ___ vpp-dev mailing list vpp-dev@lists.fd.io https://

[vpp-dev] How can I get API messages IDs?

2017-04-24 Thread Weitao Han
Every API message has a ID number, where can I get the specific number? ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev

[vpp-dev] vpp_papi: No such message type or failed CRC checksum

2017-04-24 Thread Weitao Han
When I try to connect vpp using python api, it shows the debug messages. My codes: from vpp_papi import VPP vpp = VPP() vpp.connect('test') And the terminal shows: DEBUG:vpp_papi:No such message type or failed CRC checksum: udp_ping_add_del_reply_a08dec44 DEBUG:vpp_papi:No such message type or