[vpp-dev] Connecting to /run/vpp/api.sock

2021-07-07 Thread Faisal Ahmed
Hey Devs, I'm still new to VPP, I've played around with the CLI following tutorials, Need some help in understand the api socket, I've connected to the API socket using netcat sudo nc -U /run/vpp/api.sock However none of my inputs get a response, Do i need to send in bincode or is there a manual

Re: [vpp-dev] how to use span api in c code?

2021-07-07 Thread hemant via lists.fd.io
Got it, Dave, thanks! Hemant From: vpp-dev@lists.fd.io On Behalf Of Dave Barach Sent: Wednesday, July 07, 2021 6:29 PM To: hem...@mnkcg.com; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] how to use span api in c code? That doc URL is from 17.04. See span_add_delete_entry() in

Re: [vpp-dev] how to use span api in c code?

2021-07-07 Thread Dave Barach
That doc URL is from 17.04. See span_add_delete_entry() in span.[ch]. HTH... Dave From: vpp-dev@lists.fd.io On Behalf Of hemant via lists.fd.io Sent: Wednesday, July 7, 2021 5:40 PM To: vpp-dev@lists.fd.io Subject: [vpp-dev] how to use span api in c code? I see

[vpp-dev] how to use span api in c code?

2021-07-07 Thread hemant via lists.fd.io
I see https://docs.fd.io/vpp/17.04/span_doc.html The link about says this is the api: : sw_interface_span_enable_disable I call the API in C code as: sw_interface_span_enable_disable ("TenGigabitEthernet3/0/0", "TenGigabitEthernet3/0/1", 3, true); When I compile the code I get

Re: [vpp-dev] how to use span api in c code?

2021-07-07 Thread hemant via lists.fd.io
Unfortunately, I am in C code of the VPP plugin and all I have for span src and dst is names of the interfaces, "TenGigabitEthernet3/0/0", "TenGigabitEthernet3/0/1". Is there an unformat trick to convert the name to sw_if_index - I see unformat_vnet_sw_interface but I don't have access to any

[vpp-dev] having problem pinging gtpu_tunnel0 interface, says Failed: no source address for egress interface

2021-07-07 Thread Venumadhav Josyula
Hi All, I facing problem to ping over gtpu tunnel interface *vpp1 on separate vm* set interface state GigabitEthernet0/4/0 up set interface ip address GigabitEthernet0/4/0 10.21.58.142/16 create gtpu tunnel src 10.21.58.142 dst 10.21.58.140 teid 13 tteid 14 encap-vrf-id 0 decap-next ip4 set in

Re: [vpp-dev] VRRP issue when using interface in a table

2021-07-07 Thread Mechthild Buescher via lists.fd.io
Hi Matt, Thanks for the patch. I can confirm that the patch solves the vrrp issue and from what we see until now, it doesn’t break other traffic handled by that interface. So everything is fine  Fyi: We applied the patch on VPP 21.06.1 Thank you very much for your help! BR/Mechthild From: