vpp/vpp-api/python/vpp_papi, branch stable/1801 Vector Packet Processing http://git.fd.io/vpp/atom?h=stable%2F1801 2016-12-28T11:25:14+00:00 Reorganize source tree to use single autotools instance 2016-12-28T11:25:14+00:00 Damjan Marion damarion@cisco.com 2016-12-19T22:05:39+00:00 urn:sha1:7cd468a3d7dee7d6c92f69a0bb7061ae208ec727 Change-Id: I7b51f88292e057c6443b12224486f2d0c9f8ae23 Signed-off-by: Damjan Marion <damarion@cisco.com> Python API: Incorrect error for empty VLA list. 2016-12-21T17:05:05+00:00 Ole Troan ot@cisco.com 2016-12-21T10:51:05+00:00 urn:sha1:85bdafacbdd25f88c06076ca7208ff14fe10b74c Change-Id: Ie3e9a54ca23af6b9ee43615f59a48cb05e3906d4 Signed-off-by: Ole Troan <ot@cisco.com> Python API: Add back support for old-style VLA, e.g. mask[0] 2016-12-19T21:38:35+00:00 Ole Troan ot@cisco.com 2016-12-18T12:15:08+00:00 urn:sha1:f5984bde0462f21402ba5c2c3ad04e44440402eb Change-Id: I5be6bfe522e5ea93934f0ddf75d4e4707376dc0c Signed-off-by: Ole Troan <ot@cisco.com> vpp_papi: Add help() support for python interactive mode 2016-12-13T16:24:21+00:00 Christophe Fontaine christophe.fontaine@qosmos.com 2016-12-09T14:53:47+00:00 urn:sha1:04f4b78ce25a38ca3feef7d454ad20705b379941 The python api 1.3 removed the ability to call 'help' in interactive mode. example: > help(vpp.sw_interface_span_enable_disable) Help on function sw_interface_span_enable_disable in module vpp_papi.vpp_papi: sw_interface_span_enable_disable(**kwargs) u16 _vl_msg_id, u32 client_index, u32 context, u32 sw_if_index_from, u32 sw_if_index_to, u8 state Change-Id: Iea1944fdc862482490174ff966592cf3c8208a98 Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com> Fix for PAPI async call registration 2016-12-12T10:37:15+00:00 Wojciech Dec wdec@cisco.com 2016-12-12T10:32:25+00:00 urn:sha1:64bc612d4ce682fdd4a6e1c8a47b7538f200b24f Introduce async API call registration Change-Id: Iccc89eca1b6e7dcce96a8e7bc5da80d9abc363fc Signed-off-by: Wojciech Dec <wdec@cisco.com> SPAN API: Fix various errors making SPAN break make tests. 2016-12-06T22:48:43+00:00 Ole Troan ot@cisco.com 2016-12-06T22:00:38+00:00 urn:sha1:399ca1ca5267861b56a81f64e689aa42b9a79620 - s/l2/span in span_api.c in foreach macro - Not installing .json from Makefile.am Change-Id: I2469fe01138d62e044b8262cdb5a6e3b009bb43e Signed-off-by: Ole Troan <ot@cisco.com> API: Adapt make test to Python API changes. 2016-12-06T21:17:45+00:00 Ole Troan ot@cisco.com 2016-12-05T09:27:09+00:00 urn:sha1:7e3a875c94b180ef4d9dc99a7fcc8a73c348969b Change the test wrapper script for the updated Python API. All tests but the L2BD multi instance runs fine. That is currently skipped. I see intermittent failures when an MLD message is received before the ND NA in MPLS and IPV6 FIB tests. Change-Id: If809877c9abdf596dbb0a419ce5429552f63d212 Signed-off-by: Ole Troan <ot@cisco.com> Python API: Support for per message CRC and API split. 2016-12-02T13:35:46+00:00 Ole Troan ot@cisco.com 2016-12-02T11:53:55+00:00 urn:sha1:a03f4efa92eb805d627e2f2f0cf55f70ea17c2fb These changes are incompatible with Python VPP API 1.2 There is now a new VPP Class and it can be used like: from vpp_papi import VPP jsonfiles = [] for root, dirnames, filenames in os.walk('../../../build-root/'): if root.find('install-') == -1: continue for filename in fnmatch.filter(filenames, '*.api.json'): jsonfiles.append(os.path.join(root, filename)) vpp = VPP(jsonfiles) rv = vpp.show_version() print('RV', rv.program.decode().rstrip('\0x00')) vpp.disconnect() Change-Id: Ic92d226de2cf3626e750404012247e7fc24fb7fc Signed-off-by: Ole Troan <ot@cisco.com> Add client-side msg_name_and_crc -> msg_index table 2016-11-21T18:11:41+00:00 Dave Barach dave@barachs.net 2016-11-10T19:22:49+00:00 urn:sha1:557d128b68a1213e056f5eed9fe6f230ca3f3144 vppapigen now generates per-message crcs. Verified that whitespace and real changes in message A don't change the crc for message B, etc. Fixed the sample and flowperpkt plugins to participate. Others need the same treatment. They don't build due to python/java language binding build issues. To use the scheme: Client connects as usual. Then call: u32 vl_api_get_msg_index(char * name_and_crc) name_and_crc is a string like: "flowperpkt_tx_interface_add_del_753301f3", aka the message name with _%08x <expected crc> appended. Try these vpp-api-test commands to play with it: vat# dump_msg_api_table <snip> [366]: punt_reply_cca27fbe [367]: ipsec_spd_dump_5e9ae88e [368]: ipsec_spd_details_6f7821b0 [369]: sample_macswap_enable_disable_0f2813e2 [370]: sample_macswap_enable_disable_reply_476738e5 [371]: flowperpkt_tx_interface_add_del_753301f3 [372]: flowperpkt_tx_interface_add_del_reply_d47e6e0b vat# get_msg_id sample_macswap_enable_disable_reply_476738e5 'sample_macswap_enable_disable_reply_476738e5' has message index 370 vat# get_msg_id sample_macswap_enable_disable_reply_476738e3 'sample_macswap_enable_disable_reply_476738e3' not found CRCs may vary, etc. vppapigen is used to build a set of JSON representations of each API file from vpp-api/Makefile.am and that is in turn used by each language binding (Java, Python, Lua). Change-Id: I3d64582e779dac5f20cddec79c562c288d8fd9c6 Signed-off-by: Dave Barach <dave@barachs.net> Signed-off-by: Ole Troan <ot@cisco.com> Python API: Add support for shared memory prefix 2016-10-05T11:39:14+00:00 Ole Troan ot@cisco.com 2016-10-05T09:10:50+00:00 urn:sha1:b8602b595fc89fe8b8fb00cef4820eedf225a93e Recheck. This is to support multiple VPP instances on same host. Change-Id: Ibe511b1f790fc8771900085577423f7e71dc45df Signed-off-by: Ole Troan <ot@cisco.com>
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<feed xmlns="http://www.w3.org/2005/Atom">
<title>vpp/vpp-api/python/vpp_papi, branch stable/1801</title>
<subtitle>Vector Packet Processing</subtitle>
<id>http://git.fd.io/vpp/atom?h=stable%2F1801</id>
<link rel="self" href="http://git.fd.io/vpp/atom?h=stable%2F1801"/>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/"/>
<updated>2016-12-28T11:25:14+00:00</updated>
<entry>
<title>Reorganize source tree to use single autotools instance</title>
<updated>2016-12-28T11:25:14+00:00</updated>
<author>
<name>Damjan Marion</name>
<email>damarion@cisco.com</email>
</author>
<published>2016-12-19T22:05:39+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=7cd468a3d7dee7d6c92f69a0bb7061ae208ec727"/>
<id>urn:sha1:7cd468a3d7dee7d6c92f69a0bb7061ae208ec727</id>
<content type="text"> Change-Id: I7b51f88292e057c6443b12224486f2d0c9f8ae23 Signed-off-by: Damjan Marion <damarion@cisco.com> </content>
</entry>
<entry>
<title>Python API: Incorrect error for empty VLA list.</title>
<updated>2016-12-21T17:05:05+00:00</updated>
<author>
<name>Ole Troan</name>
<email>ot@cisco.com</email>
</author>
<published>2016-12-21T10:51:05+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=85bdafacbdd25f88c06076ca7208ff14fe10b74c"/>
<id>urn:sha1:85bdafacbdd25f88c06076ca7208ff14fe10b74c</id>
<content type="text"> Change-Id: Ie3e9a54ca23af6b9ee43615f59a48cb05e3906d4 Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
<entry>
<title>Python API: Add back support for old-style VLA, e.g. mask[0]</title>
<updated>2016-12-19T21:38:35+00:00</updated>
<author>
<name>Ole Troan</name>
<email>ot@cisco.com</email>
</author>
<published>2016-12-18T12:15:08+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=f5984bde0462f21402ba5c2c3ad04e44440402eb"/>
<id>urn:sha1:f5984bde0462f21402ba5c2c3ad04e44440402eb</id>
<content type="text"> Change-Id: I5be6bfe522e5ea93934f0ddf75d4e4707376dc0c Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
<entry>
<title>vpp_papi: Add help() support for python interactive mode</title>
<updated>2016-12-13T16:24:21+00:00</updated>
<author>
<name>Christophe Fontaine</name>
<email>christophe.fontaine@qosmos.com</email>
</author>
<published>2016-12-09T14:53:47+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=04f4b78ce25a38ca3feef7d454ad20705b379941"/>
<id>urn:sha1:04f4b78ce25a38ca3feef7d454ad20705b379941</id>
<content type="text"> The python api 1.3 removed the ability to call 'help' in interactive mode. example: > help(vpp.sw_interface_span_enable_disable) Help on function sw_interface_span_enable_disable in module vpp_papi.vpp_papi: sw_interface_span_enable_disable(**kwargs) u16 _vl_msg_id, u32 client_index, u32 context, u32 sw_if_index_from, u32 sw_if_index_to, u8 state Change-Id: Iea1944fdc862482490174ff966592cf3c8208a98 Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com> </content>
</entry>
<entry>
<title>Fix for PAPI async call registration</title>
<updated>2016-12-12T10:37:15+00:00</updated>
<author>
<name>Wojciech Dec</name>
<email>wdec@cisco.com</email>
</author>
<published>2016-12-12T10:32:25+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=64bc612d4ce682fdd4a6e1c8a47b7538f200b24f"/>
<id>urn:sha1:64bc612d4ce682fdd4a6e1c8a47b7538f200b24f</id>
<content type="text"> Introduce async API call registration Change-Id: Iccc89eca1b6e7dcce96a8e7bc5da80d9abc363fc Signed-off-by: Wojciech Dec <wdec@cisco.com> </content>
</entry>
<entry>
<title>SPAN API: Fix various errors making SPAN break make tests.</title>
<updated>2016-12-06T22:48:43+00:00</updated>
<author>
<name>Ole Troan</name>
<email>ot@cisco.com</email>
</author>
<published>2016-12-06T22:00:38+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=399ca1ca5267861b56a81f64e689aa42b9a79620"/>
<id>urn:sha1:399ca1ca5267861b56a81f64e689aa42b9a79620</id>
<content type="text"> - s/l2/span in span_api.c in foreach macro - Not installing .json from Makefile.am Change-Id: I2469fe01138d62e044b8262cdb5a6e3b009bb43e Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
<entry>
<title>API: Adapt make test to Python API changes.</title>
<updated>2016-12-06T21:17:45+00:00</updated>
<author>
<name>Ole Troan</name>
<email>ot@cisco.com</email>
</author>
<published>2016-12-05T09:27:09+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=7e3a875c94b180ef4d9dc99a7fcc8a73c348969b"/>
<id>urn:sha1:7e3a875c94b180ef4d9dc99a7fcc8a73c348969b</id>
<content type="text"> Change the test wrapper script for the updated Python API. All tests but the L2BD multi instance runs fine. That is currently skipped. I see intermittent failures when an MLD message is received before the ND NA in MPLS and IPV6 FIB tests. Change-Id: If809877c9abdf596dbb0a419ce5429552f63d212 Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
<entry>
<title>Python API: Support for per message CRC and API split.</title>
<updated>2016-12-02T13:35:46+00:00</updated>
<author>
<name>Ole Troan</name>
<email>ot@cisco.com</email>
</author>
<published>2016-12-02T11:53:55+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=a03f4efa92eb805d627e2f2f0cf55f70ea17c2fb"/>
<id>urn:sha1:a03f4efa92eb805d627e2f2f0cf55f70ea17c2fb</id>
<content type="text"> These changes are incompatible with Python VPP API 1.2 There is now a new VPP Class and it can be used like: from vpp_papi import VPP jsonfiles = [] for root, dirnames, filenames in os.walk('../../../build-root/'): if root.find('install-') == -1: continue for filename in fnmatch.filter(filenames, '*.api.json'): jsonfiles.append(os.path.join(root, filename)) vpp = VPP(jsonfiles) rv = vpp.show_version() print('RV', rv.program.decode().rstrip('\0x00')) vpp.disconnect() Change-Id: Ic92d226de2cf3626e750404012247e7fc24fb7fc Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
<entry>
<title>Add client-side msg_name_and_crc -> msg_index table</title>
<updated>2016-11-21T18:11:41+00:00</updated>
<author>
<name>Dave Barach</name>
<email>dave@barachs.net</email>
</author>
<published>2016-11-10T19:22:49+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=557d128b68a1213e056f5eed9fe6f230ca3f3144"/>
<id>urn:sha1:557d128b68a1213e056f5eed9fe6f230ca3f3144</id>
<content type="text"> vppapigen now generates per-message crcs. Verified that whitespace and real changes in message A don't change the crc for message B, etc. Fixed the sample and flowperpkt plugins to participate. Others need the same treatment. They don't build due to python/java language binding build issues. To use the scheme: Client connects as usual. Then call: u32 vl_api_get_msg_index(char * name_and_crc) name_and_crc is a string like: "flowperpkt_tx_interface_add_del_753301f3", aka the message name with _%08x <expected crc> appended. Try these vpp-api-test commands to play with it: vat# dump_msg_api_table <snip> [366]: punt_reply_cca27fbe [367]: ipsec_spd_dump_5e9ae88e [368]: ipsec_spd_details_6f7821b0 [369]: sample_macswap_enable_disable_0f2813e2 [370]: sample_macswap_enable_disable_reply_476738e5 [371]: flowperpkt_tx_interface_add_del_753301f3 [372]: flowperpkt_tx_interface_add_del_reply_d47e6e0b vat# get_msg_id sample_macswap_enable_disable_reply_476738e5 'sample_macswap_enable_disable_reply_476738e5' has message index 370 vat# get_msg_id sample_macswap_enable_disable_reply_476738e3 'sample_macswap_enable_disable_reply_476738e3' not found CRCs may vary, etc. vppapigen is used to build a set of JSON representations of each API file from vpp-api/Makefile.am and that is in turn used by each language binding (Java, Python, Lua). Change-Id: I3d64582e779dac5f20cddec79c562c288d8fd9c6 Signed-off-by: Dave Barach <dave@barachs.net> Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
<entry>
<title>Python API: Add support for shared memory prefix</title>
<updated>2016-10-05T11:39:14+00:00</updated>
<author>
<name>Ole Troan</name>
<email>ot@cisco.com</email>
</author>
<published>2016-10-05T09:10:50+00:00</published>
<link rel="alternate" type="text/html" href="http://git.fd.io/vpp/commit/?id=b8602b595fc89fe8b8fb00cef4820eedf225a93e"/>
<id>urn:sha1:b8602b595fc89fe8b8fb00cef4820eedf225a93e</id>
<content type="text"> Recheck. This is to support multiple VPP instances on same host. Change-Id: Ibe511b1f790fc8771900085577423f7e71dc45df Signed-off-by: Ole Troan <ot@cisco.com> </content>
</entry>
</feed>