Re: [vpp-dev] vpp api versioning

2022-07-19 Thread Stanislav Zaikin
Hello folks, I've just sent 3 patches addressing issues in LCP [0] [1] [2]. First one for marking APIs in progress. 2nd only for s/namespace/netns/g. 3rd fixes endian issues in different methods. One thing I can't understand - if the "autoendian" keyword is specified for API type - I should use ma

Re: [vpp-dev] vpp api versioning

2022-07-16 Thread Andrew Yourtchenko
Hi Matt, Oh right, so especially given the plugin is marked experimental, in-place approach would make a lot of sense… By saying “experimental” I was thinking of marking the API messages as “in-progress” [0] - which would then exempt them from the change enforcements and allow further iteratio

Re: [vpp-dev] vpp api versioning

2022-07-15 Thread Matthew Smith via lists.fd.io
Hi Andrew, Neale and I are the maintainers of linux-cp. I am ok with changing it in place because the use of "namespace" is preventing Stanislav from even being able to compile his code. When you say "mark the APIs as experimental" are you talking about putting "state: experimental" in the FEATUR

Re: [vpp-dev] vpp api versioning

2022-07-15 Thread Stanislav Zaikin
Hi Pim, There's also lcp_default_ns_get broken. I fixed that locally and want to send the patch. Can take a look at lcp_itf_pair_add_del_v2 as well. On Fri, 15 Jul 2022 at 12:57, Pim van Pelt wrote: > Hoi, > > Currently, linux-cp API doesn't seem to work, at least in Python and GoVPP > (see pr

Re: [vpp-dev] vpp api versioning

2022-07-15 Thread Stanislav Zaikin
Hi Andrew, Thanks for the explanation. I'll try to reach maintainers of the lcp plugin and convince them :) Yes, I'm working on an agent for managing vpp through binary api and it's written in C++ - so it breaks the compilation. I have a patch in my local repo for that, but now I'm trying to merge

Re: [vpp-dev] vpp api versioning

2022-07-15 Thread Pim van Pelt
Hoi, Currently, linux-cp API doesn't seem to work, at least in Python and GoVPP (see previous threads on this mailinglist with bugreports), lcp_itf_pair_add_del_v2() eventually succeeds but throws an error to the caller. This snippet: r = vpp.api.create_loopback() print(r) host_if_name = "loop

Re: [vpp-dev] vpp api versioning

2022-07-15 Thread Andrew Yourtchenko
Hi Stanislav, The api is marked as “Production” so the behavior of checkstyle is there to protect the users (as for the duplication - it is a choice to do it once in VPP or in each and every downstream consumer). As for the pure code exercise - I just did it for the sake of a test, took a grand

Re: [vpp-dev] [vpp-api-dev] vppapigen: Backwards compatible API dictionary removal

2021-03-05 Thread Ole Troan
Paul, > Thank you for this, but it is not enough. I don't mean that to come across > ungratefully, but it doesn't fix the problem. Nothing will ever be enough. Which is good, then we would be out of jobs. :-) The general problem to API stability does not have a solution. It's a continual tussle

Re: [vpp-dev] [vpp-api-dev] vppapigen: Backwards compatible API dictionary removal

2021-03-05 Thread Paul Vinciguerra
Hi Ole, Thank you for this, but it is not enough. I don't mean that to come across ungratefully, but it doesn't fix the problem. We need to also remove backward compatible tags from the enums in the .api files. The need for this arose from the fact that enums and enum flags got mixed together a

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-22 Thread Andrew Yourtchenko
On 6/22/20, Neale Ranns (nranns) wrote: > Doing only new functionality that the point of introducing the new API is > good because it ensures no-harm-done to all tested functionality of the v1 > API. However, users of the new API will [likely?] use the v2 API for old and > new functions, but they

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-22 Thread Neale Ranns via lists.fd.io
From: on behalf of Andrew Yourtchenko Date: Thursday 18 June 2020 at 17:58 To: "Neale Ranns (nranns)" Cc: vpp-dev Subject: Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active Hi Neale, On 18 Jun 2020, at 17:11, Neale Ranns (nranns) wrote: Hi

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-18 Thread Andrew Yourtchenko
> Cc: Neale Ranns (nranns) ; vpp-dev > Subject: Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle > merged and active > > Hi Balaji, > > Yeah that was what I was thinking, though weekly ain’t good enough - one > would have to run coverage report before and af

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-18 Thread Dave Barach via lists.fd.io
pp-dev@lists.fd.io>> on behalf of Andrew Yourtchenko mailto:ayour...@gmail.com>> Date: Thursday, June 18, 2020 at 8:58 AM To: "Neale Ranns (nranns)" mailto:nra...@cisco.com>> Cc: vpp-dev mailto:vpp-dev@lists.fd.io>> Subject: Re: [vpp-dev] VPP API CRC compatibility

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-18 Thread Andrew Yourtchenko
> > From: on behalf of Andrew Yourtchenko > > Date: Thursday, June 18, 2020 at 8:58 AM > To: "Neale Ranns (nranns)" > Cc: vpp-dev > Subject: Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle > merged and active > > Hi Neale,

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-18 Thread Balaji Venkatraman via lists.fd.io
: Thursday, June 18, 2020 at 8:58 AM To: "Neale Ranns (nranns)" Cc: vpp-dev Subject: Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active Hi Neale, On 18 Jun 2020, at 17:11, Neale Ranns (nranns) wrote: Hi Andrew, A couple of questions? Absolutely!

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-18 Thread Andrew Yourtchenko
Hi Neale, > On 18 Jun 2020, at 17:11, Neale Ranns (nranns) wrote: > >  > Hi Andrew, > > A couple of questions? Absolutely! That’s how we improve it! Thanks a lot for the questions ! Replies inline: > > Firstly, about unit testing aka make test. This is the salient passage in > your guide:

Re: [vpp-dev] VPP API CRC compatibility check process in checkstyle merged and active

2020-06-18 Thread Neale Ranns via lists.fd.io
Hi Andrew, A couple of questions? Firstly, about unit testing aka make test. This is the salient passage in your guide: "foo_message_v2 is tested in "make test" to the same extent as the foo_message" IMHO "to the same extent" implies everywhere v1 is used v2 should now be used in its place.

Re: [vpp-dev] vpp-api for python3

2020-03-19 Thread Ole Troan
> is vpp api for python3 only available from 19.04-release ? I believe the Python VPP API has been supposed to support Python3 for quite long time. Give it a try. We would always recommend you to stay to the latest release though. Best regards, Ole-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all

Re: [vpp-dev] VPP API client with no rx pthread

2019-09-11 Thread Satya Murthy
Thanks Ole for the quick response. Will got through the doc and give it a try. -- Thanks & Regards, Murthy -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13957): https://lists.fd.io/g/vpp-dev/message/13957 Mute This Topic: https://lists.fd.io/mt/34

Re: [vpp-dev] VPP API client with no rx pthread

2019-09-11 Thread Florin Coras
Hi Satya, Probably you can just replicate what the api rx-thread is doing, i.e., rx_thread_fn. In particular, take a look at vl_msg_api_queue_handler. Florin > On Sep 11, 2019, at 3:26 AM, Satya Murthy wrote: > > Hi , > > We are trying to develop a VPP API client which needs synchronous re

Re: [vpp-dev] VPP API client with no rx pthread

2019-09-11 Thread Ole Troan
Hi Satya, > We are trying to develop a VPP API client which needs synchronous reply > handling. > Hence, we were thinking of NOT having a separate pthread for receiving the > response from VPP. > We are planning to use no_rx_pthread version of connect api. > > Is there any example code to recei

Re: [vpp-dev] VPP API Notification

2019-09-10 Thread Vanessa Valderrama
The vpp-dev list has been removed from the Gerrit notify. Thanks, Vanessa On 09/10/2019 11:56 AM, Vanessa Valderrama wrote: > We're having an issue with a Gerrit notify for VPP API changes not being > delivered to the vpp-api-...@lists.fd.io. We believe it's an issue > specific to the list. I spo

Re: [vpp-dev] VPP API sometimes hangs on ip_route_details response #vppcapi #vpp_stability #vpp #binapi

2019-09-05 Thread Sylvain CADILHAC
"vpp-dev@lists.fd.io" Objet : Re: [vpp-dev] VPP API sometimes hangs on ip_route_details response #vppcapi #vpp_stability #vpp #binapi Looks like VPP-1753<https://jira.fd.io/browse/VPP-1753> to me. I do not have much to add, heisenbugs are har

Re: [vpp-dev] VPP API sometimes hangs on ip_route_details response #vppcapi #vpp_stability #vpp #binapi

2019-09-04 Thread Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
Looks like VPP-1753 to me. I do not have much to add, heisenbugs are hard to figure out. Vratko. From: vpp-dev@lists.fd.io on behalf of sylvain.cadil...@jaguar-network.com Sent: Wednesday, September 4, 2019 01:36 To: vpp

Re: [vpp-dev] VPP api python scripts in packages for out-of-tree VPP plugins.

2019-07-10 Thread Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
Adding vpp-dev, as I am not sure who reads vpp-api-dev. Here [0] is my attempt at a simple solution. Vratko. [0] https://gerrit.fd.io/r/20595 From: vpp-api-...@lists.fd.io On Behalf Of Luca Muscariello via Lists.Fd.Io Sent: Tuesday, 2019-July-09 15:56 To: vpp-api-...@lists.fd.io; hicn-...@lis

Re: [vpp-dev] VPP API language changes

2018-12-07 Thread Ole Troan
Hi Paul, > I could see a use for having an API call that populates the properties of an > IntEnum. Are you thinking of the language or specifically about the Python binding? In the language there is already enum support: typedef u8 ip4_address[4]; typedef u8 ip6_address[16]; enum address_fam

Re: [vpp-dev] VPP API language changes

2018-12-06 Thread pvinci
Hi Ole. I could see a use for having an API call that populates the properties of an IntEnum.  Paul -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11520): https://lists.fd.io/g/vpp-dev/message/11520 Mute This Topic: https://lists.fd.io/mt/2861011

Re: [vpp-dev] VPP API language changes

2018-12-06 Thread Jon Loeliger
On Wed, Dec 5, 2018 at 6:04 AM Ole Troan wrote: > All, > Hi Ole, > Here is an update on API progress. > > In the long process of making types in the API language more explicit I > have a few changes merged and a few in the pipeline: > Hooray! > - Type aliases. Previously any new user define

Re: [vpp-dev] vpp api

2017-12-12 Thread Holoo Gulakh
here there is a test code (test.c) I compile it with following command: gcc client.c test.c -o test -I /usr/include/vpp_plugins -lvlibmemoryclient -lsvm -lvppinfra -lvlib -lvatplugin -lpthread -lm -lrt -ldl -lcrypto and then run it sudo ./test but it stops and does not response >

Re: [vpp-dev] vpp api

2017-12-12 Thread Klement Sekera -X (ksekera - PANTHEON TECHNOLOGIES at Cisco)
Hi, it's in src/vpp-api/client Regards, Kement > -Original Message- > From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On > Behalf Of Holoo Gulakh > Sent: Tuesday, December 12, 2017 10:49 AM > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] vpp api > > Hi, > > In ord

Re: [vpp-dev] vpp-api-python depends on vpp (= 17.10-9~gd594711); however: Version of vpp on system is 17.10-release.

2017-12-05 Thread Pradeep Patel (pradpate)
Please try ‘sudo apt-get install –f’ On 12/5/17, 6:38 AM, "vpp-dev-boun...@lists.fd.io on behalf of Pradeep Patel (pradpate)" wrote: Trying running ‘apt install -f’ On 12/5/17, 5:38 AM, "vpp-dev-boun...@lists.fd.io on behalf of Ole Troan" wrote: Mirzaei,

Re: [vpp-dev] vpp-api-python depends on vpp (= 17.10-9~gd594711); however: Version of vpp on system is 17.10-release.

2017-12-05 Thread Pradeep Patel (pradpate)
Trying running ‘apt install -f’ On 12/5/17, 5:38 AM, "vpp-dev-boun...@lists.fd.io on behalf of Ole Troan" wrote: Mirzaei, > I want to build vpp to integrate it with honeycomb according to this url, but I failed in the at this command: > > $sudo dpkg -i *.deb > >

Re: [vpp-dev] vpp-api-python depends on vpp (= 17.10-9~gd594711); however: Version of vpp on system is 17.10-release.

2017-12-05 Thread Ole Troan
Mirzaei, > I want to build vpp to integrate it with honeycomb according to this url, but > I failed in the at this command: > > $sudo dpkg -i *.deb > > the error : > > (Reading database ... 7537

Re: [vpp-dev] VPP API

2017-11-27 Thread Ole Troan
> Here in this link (https://wiki.fd.io/view/VPP/Code_Walkthrough_VoDs), there > is a video (Code Walkthrough VoD: Chapter 4 | VPP API) in which the lecturer > is using a program named (vpe_api_test). > Now I just need a program like that (preferably in C) so that I can > understand how it works

Re: [vpp-dev] vpp api test

2017-11-27 Thread Marek Gradzki -X (mgradzki - PANTHEON TECHNOLOGIES at Cisco)
/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 ; 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

Re: [vpp-dev] vpp api test

2017-11-27 Thread Gabriel Ganne
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 __

Re: [vpp-dev] vpp-api python error during vpp installation

2017-11-22 Thread Pradeep Patel (pradpate)
Thank you Chris and Team, I could install the package by running ‘sudo apt-get install -f' Regards, Pradeep From: "Luke, Chris" Date: Wednesday, November 22, 2017 at 10:09 AM To: "Pradeep Patel (pradpate)" , "vpp-dev@lists.fd.io" Subject: RE: vpp-api python error during vpp installation Need

Re: [vpp-dev] vpp-api python error during vpp installation

2017-11-22 Thread Luke, Chris
Need the error in question, which would have been much earlier in the output. But as another commenter mentions, if you ‘dpkg -i’ packages with dependencies you don’t have, ‘apt install -f’ can usually resolve those for you. Chris. From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists

Re: [vpp-dev] vpp-api python error during vpp installation

2017-11-22 Thread root1
I think it is waiting for dependencies. After failure, run 'sudo apt-get install -f' On Wednesday 22 November 2017 11:27 PM, Pradeep Patel (pradpate) wrote: Team, I am seeing the same issue(https://lists.fd.io/pipermail/vpp-dev/2017-April/004608.html) as seen earlier while installing debia

Re: [vpp-dev] VPP API for interface rx-mode polling

2017-10-29 Thread Steven Luong (sluong)
Jozel, Here is the patch. Please help verifying it. https://gerrit.fd.io/r/#/c/9094/ Steven From: on behalf of "Steven Luong (sluong)" Date: Friday, October 27, 2017 at 9:00 AM To: Jozef Glončák , "vpp-dev@lists.fd.io" Subject: Re: [vpp-dev] VPP API for interface rx

Re: [vpp-dev] VPP API for interface rx-mode polling

2017-10-27 Thread Steven Luong (sluong)
Jozef, Sure. I’ll take care of this. Steven From: on behalf of Jozef Glončák Date: Friday, October 27, 2017 at 3:01 AM To: "vpp-dev@lists.fd.io" Subject: [vpp-dev] VPP API for interface rx-mode polling Hello VPP gurus, I need VPP API for this command set interface rx-mode polling. I

Re: [vpp-dev] VPP API Message Multi-Registration Question

2017-09-15 Thread Dave Barach (dbarach)
How about: only complain if the new registration is actually different from the old one? Thanks... Dave -Original Message- From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Jon Loeliger Sent: Friday, September 15, 2017 3:35 PM To: vpp-dev Subject: [vpp

Re: [vpp-dev] VPP API improvements - community discussion.

2017-06-13 Thread otroan
Jon, > I don't know about user friendly; I can wade through the technical details. > > I think one thing that is annoying about the API is a lack of consistency. > Here are some examples: > >- Sometimes the flag is "u8 is_ipv4", other times it is "u8 is_ipv6". >- Sometimes the flag is "u

Re: [vpp-dev] VPP API improvements - community discussion.

2017-06-13 Thread Jon Loeliger
On Mon, Jun 5, 2017 at 5:24 AM, Neale Ranns (nranns) wrote: > > Dear VPP community, > > Some of the feedback we get from users of VPP is that the client-side API is > not particularly user-friendly – we would like to address this. I don't know about user friendly; I can wade through the technica

Re: [vpp-dev] VPP API improvements - community discussion.

2017-06-06 Thread Dave Barach (dbarach)
maintenance. Thanks… Dave -Original Message- From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of Jan Srnicek -X (jsrnicek - PANTHEON TECHNOLOGIES at Cisco) Sent: Tuesday, June 6, 2017 3:11 AM To: Neale Ranns (nranns) ; vpp-dev Subject: Re: [vpp-dev] VPP API

Re: [vpp-dev] VPP API improvements - community discussion.

2017-06-06 Thread Jan Srnicek -X (jsrnicek - PANTHEON TECHNOLOGIES at Cisco)
Hi everyone From my experience from using vpp apis in honeycomb,i would like to see approach that api does not use giant ammount of parameters(ip_add_del_route for ex.), specialy if that api call defines more than one logical entity,of if there is too many combinations of use of that api. It al

Re: [vpp-dev] vpp-api python error during vpp installation

2017-04-03 Thread Keith Burns
Does this need to be backported to stable/1704? I just did a fresh pull and am getting the same error when trying to install the .deb files. Processing triggers for libc-bin (2.23-0ubuntu7) ... Errors were encountered while processing: vpp-api-python alagalah@thing1:vpp (stable/1704)*$ git ld -

Re: [vpp-dev] VPP API Test Crash - Need help debugging

2017-03-28 Thread Keith Burns
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 "ldcon

Re: [vpp-dev] VPP API Test Crash - Need help debugging

2017-03-27 Thread Dave Barach (dbarach)
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,

Re: [vpp-dev] vpp-api python error during vpp installation

2017-03-25 Thread otroan
Hi Igor, > I've been trying configuring and installing vpp packages, but at the end of > the .deb packages this error appears as show in the attatched image. Does > anyone know how to fix it ? There should be a fix for this in: https://gerrit.fd.io/r/#/c/5799/ It is waiting for a dependency fi

Re: [vpp-dev] VPP API Freeze date coming up -- March 8

2017-03-02 Thread Dave Barach (dbarach)
+1, exactly right, thanks Ole... Dave -Original Message- From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On Behalf Of otr...@employees.org Sent: Thursday, March 2, 2017 7:17 AM To: vpp-dev Subject: [vpp-dev] VPP API Freeze date coming up -- March 8 All, Please re

Re: [vpp-dev] VPP API Synchronization Question

2017-02-11 Thread Dave Barach (dbarach)
Dear Jon, Yeah, without clib_time_init(...) the wheels will fall off. I should toss in a couple of ASSERTs to make that problem totally obvious. vpp_api_test is a simple test tool constructed for no purpose more noble than testing vpp-side message-handlers. I’ve recently fiddled such that vpp i

Re: [vpp-dev] VPP API Synchronization Question

2017-02-10 Thread Jon Loeliger
On Fri, Feb 10, 2017 at 11:23 AM, Dave Barach (dbarach) wrote: > Dear Jon, > > > > If you send “please dump X” API message(s), followed by a control-ping > message: when the control-ping reply appears, all of dump reply messages > (if any) have appeared. > > > > That absolutely *does* work. See a

Re: [vpp-dev] VPP API Synchronization Question

2017-02-10 Thread Dave Barach (dbarach)
Dear Jon, If you send “please dump X” API message(s), followed by a control-ping message: when the control-ping reply appears, all of dump reply messages (if any) have appeared. That absolutely does work. See api_format.c:api_ip_add_del_route(...). In standard usage, the messages are received