Re: [vpp-dev] vpp api test
Hi, here you can find jvpp (java API) documentation: https://git.fd.io/vpp/tree/src/vpp-api/java/Readme.txt and some examples: https://git.fd.io/vpp/tree/src/vpp-api/java/jvpp-core/io/fd/vpp/jvpp/core/examples For more, take a look at hc2vpp project which is using jvpp https://git.fd.io/hc2vpp/tree Regards, Marek From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Gabriel Ganne Sent: 27 listopada 2017 09:03 To: Holoo Gulakh <holoogul...@gmail.com>; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] vpp api test Hi Holoo, There are two great pages explaining how to use the vpp C and python APIs: C: https://wiki.fd.io/view/VPP/How_To_Use_The_C_API python: https://wiki.fd.io/view/VPP/Python_API I believe you can also use java or lua if you wish. Regards, -- Gabriel Ganne From: vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io> <vpp-dev-boun...@lists.fd.io<mailto:vpp-dev-boun...@lists.fd.io>> on behalf of Holoo Gulakh <holoogul...@gmail.com<mailto:holoogul...@gmail.com>> Sent: Monday, November 27, 2017 8:55:43 AM To: vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> Subject: [vpp-dev] vpp api test Hello I am working on VPP and now need to use its API to communicate with it. I want to know how I can use its API?? Is there any example in source code or any where else? (if yes, how should I use it?) thanks in advance ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev
Re: [vpp-dev] vpp api test
Hi Holoo, There are two great pages explaining how to use the vpp C and python APIs: C: https://wiki.fd.io/view/VPP/How_To_Use_The_C_API python: https://wiki.fd.io/view/VPP/Python_API I believe you can also use java or lua if you wish. Regards, -- Gabriel Ganne From: vpp-dev-boun...@lists.fd.ioon behalf of Holoo Gulakh Sent: Monday, November 27, 2017 8:55:43 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] vpp api test Hello I am working on VPP and now need to use its API to communicate with it. I want to know how I can use its API?? Is there any example in source code or any where else? (if yes, how should I use it?) thanks in advance ___ vpp-dev mailing list vpp-dev@lists.fd.io https://lists.fd.io/mailman/listinfo/vpp-dev
Re: [vpp-dev] VPP API Test Crash - Need help debugging
Billy, Apologies, that was a convenience I did for the attendees of the devboot course last year. In the course notes I had the git checksum of the commit, but as Dave points out, a bit stale. I find a combo of "ldd" against the VPP binary you have built and ultimately want to install and "ldconfig -p | grep" to be useful. Grep against "vpp" and "vlib" tends to show what's hanging around and the diff usually is defunct jetsam from prior packaging. Be a little careful though as I don't believe vlib is unique to VPP/fdio As the project evolves , so too packaging (I've felt your pain) A "find" over /usr/include for headers is not a bad sanity check too On Mar 27, 2017 6:52 AM, "Dave Barach (dbarach)"wrote: Dear Billy, Looks like a stale tree... vm = vlib_mains[os_get_cpu_number ()] from within vpp_api_test was always a mistake. I cleaned this up a while ago. Vpp_api_test was spuriously linked against libvlib.so, leading to this very crash in vpp_api_test until I cleaned up the set of libraries, etc. Please update, “make distclean”, rebuild, and reinstall. If that doesn’t fix it, please unicast me. Thanks… Dave *From:* vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] *On Behalf Of *Billy McFall *Sent:* Monday, March 27, 2017 9:37 AM *To:* vpp-dev@lists.fd.io *Subject:* [vpp-dev] VPP API Test Crash - Need help debugging I have screwed up my system and need some help fixing. Long email because of the traces, so quick summary up front. I was playing with pluggins and had some notes from over the summer on running the MacSwap pluggin. I downloaded the code via: git clone https://github.com/alagalah/macswap-plugin The code did not compile initially because the pluggin registration code changed from a function call to a MACRO. I fiddle with the code and got it to compile and install. As soon as I fired up VPP it crashed. I did not collect the output (sorry), but in the mean time I found the sample pluggin on the Wiki and figured it was the better route anyway. So I deleted the all macswap*.so files I could find under /usr/* and deleted my local sandbox with the MAC Swap changes. Now when I run VPP, it crashes, even a recent, clean sandbox. Builds and loads fine. But when I "show interfaces", vpp_api_test crashes (see below). Is there something in the pluggin registration that needs to be cleaned up that I am missing? Running on Fedora 25. Recent builds on my CentOS system work as expect, so this most likely has something to do with how I installed and more likely how I deleted the MAC Swap pluggin on my laptop. Any help would be greatly appreciated, Billy McFall The rest is logs on the crash: START VPP FROM CLEAN SANDBOX: Mar 27 09:11:40 localhost systemd: Starting Vector Packet Processing Process... Mar 27 09:11:40 localhost systemd: Started Vector Packet Processing Process. Mar 27 09:11:40 localhost vpp: vlib_plugin_early_init:357: plugin path /usr/lib/vpp_plugins/ Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: acl_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: dpdk_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: flowperpkt_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: ila_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: ioam_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:114: Plugin disabled: ixge_plugin.so (default) Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: lb_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: libsixrd_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: snat_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/udp_ping_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_vxlan_gpe_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/acl_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/snat_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_trace_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/dpdk_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_pot_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/vxlan_gpe_ioam_export_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/flowperpkt_test_plugin.so Mar 27 09:11:40 localhost vpp: 0:
Re: [vpp-dev] VPP API Test Crash - Need help debugging
Dear Billy, Looks like a stale tree... vm = vlib_mains[os_get_cpu_number ()] from within vpp_api_test was always a mistake. I cleaned this up a while ago. Vpp_api_test was spuriously linked against libvlib.so, leading to this very crash in vpp_api_test until I cleaned up the set of libraries, etc. Please update, “make distclean”, rebuild, and reinstall. If that doesn’t fix it, please unicast me. Thanks… Dave From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Billy McFall Sent: Monday, March 27, 2017 9:37 AM To: vpp-dev@lists.fd.io Subject: [vpp-dev] VPP API Test Crash - Need help debugging I have screwed up my system and need some help fixing. Long email because of the traces, so quick summary up front. I was playing with pluggins and had some notes from over the summer on running the MacSwap pluggin. I downloaded the code via: git clone https://github.com/alagalah/macswap-plugin The code did not compile initially because the pluggin registration code changed from a function call to a MACRO. I fiddle with the code and got it to compile and install. As soon as I fired up VPP it crashed. I did not collect the output (sorry), but in the mean time I found the sample pluggin on the Wiki and figured it was the better route anyway. So I deleted the all macswap*.so files I could find under /usr/* and deleted my local sandbox with the MAC Swap changes. Now when I run VPP, it crashes, even a recent, clean sandbox. Builds and loads fine. But when I "show interfaces", vpp_api_test crashes (see below). Is there something in the pluggin registration that needs to be cleaned up that I am missing? Running on Fedora 25. Recent builds on my CentOS system work as expect, so this most likely has something to do with how I installed and more likely how I deleted the MAC Swap pluggin on my laptop. Any help would be greatly appreciated, Billy McFall The rest is logs on the crash: START VPP FROM CLEAN SANDBOX: Mar 27 09:11:40 localhost systemd: Starting Vector Packet Processing Process... Mar 27 09:11:40 localhost systemd: Started Vector Packet Processing Process. Mar 27 09:11:40 localhost vpp: vlib_plugin_early_init:357: plugin path /usr/lib/vpp_plugins/ Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: acl_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: dpdk_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: flowperpkt_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: ila_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: ioam_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:114: Plugin disabled: ixge_plugin.so (default) Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: lb_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: libsixrd_plugin.so Mar 27 09:11:40 localhost vpp: load_one_plugin:187: Loaded plugin: snat_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/udp_ping_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_vxlan_gpe_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/acl_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/snat_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_trace_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/dpdk_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_pot_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/vxlan_gpe_ioam_export_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/flowperpkt_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/ioam_export_test_plugin.so Mar 27 09:11:40 localhost vpp: 0: load_one_plugin:63: Loaded plugin: /usr/lib/vpp_api_test_plugins/lb_test_plugin.so Mar 27 09:11:40 localhost vpp: EAL: Detected 4 lcore(s) Mar 27 09:11:40 localhost vpp: EAL: No free hugepages reported in hugepages-1048576kB Mar 27 09:11:40 localhost vpp: /usr/bin/vpp[31951]: dpdk_ipsec_process:241: DPDK Cryptodev support is disabled, default to OpenSSL IPsec Mar 27 09:11:40 localhost vpp: /usr/bin/vpp[31951]: dpdk_lib_init:557: DPDK drivers found no ports... Mar 27 09:11:40 localhost /usr/bin/vpp[31951]: dpdk_ipsec_process:241: DPDK Cryptodev support is disabled, default to OpenSSL IPsec Mar 27 09:11:40 localhost /usr/bin/vpp[31951]: