Take a hard look at the startup config / command-line arguments passed by “make run”. The Python client isn’t hooking up with vpp correctly, most likely due to permission issues on the binary api segment.
Make sure that the python client runs as root, or as a member of the “vpp” group, etc. Here are couple of likely config stanzas to check, depending on what’s in your workspace: unix { ... gid vpp ... } api-segment { gid vpp } From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Ivaylo Handjiiski Sent: Wednesday, July 28, 2021 9:06 AM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Having trouble disabling optimization Hello again, Thank you for the reply. I can't completely understand how am I supposed to make it work. I successfully generated -g -O0 binaries the way you explained using "make build" from my vagrant vm and then I tried various scenarios: - I copied the binaries from my vagrant vm to my device and started vpp using "make run" command. However , when I run my custom service which uses vpp's python api to configure bridge domains and etc. i get the following error: VPP API client:: b'vl_client_disconnect:300: peer unresponsive, give up\n' - I tried replacing the /usr/bin/vpp executable with the one from /build-root/install-vpp_debug-native/vpp/bin as well as all vpp .so files with ones from /build-root/install-vpp_debug-native/vpp/lib but got the same error.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#19879): https://lists.fd.io/g/vpp-dev/message/19879 Mute This Topic: https://lists.fd.io/mt/84378138/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-