Hi, i am having a issue with VPP running on RH8.2 with version 20.05.1.
There are 4 commands that I am trying to run from my application (using vppcli), fairly straight forward. the Trace.Writeline function is just a utility to print out the trace. what I see is the ret val is 256 indicating system command did not get executed properly. however the same command when i type it manually , works perfectly fine.. Not sure what is wrong. I am logged in as root and running the process using "./a.out" (manually) as a root. Could anyone suggest anything else to check apart from switching to VPP API to configure interfaces/add routes etc? we had few issues with vpp api/vcl libraries and have not decided to pursue vpp - api for now, so vppctl is the only option. Alternative is to write a ipaddr.txt file and put it in startup.conf -> which will do the trick. However I want to do it from application. is there special flag in vpp.log to enable that can give information. i could not find anything useful in vpp.log string s1("vppctl create sub-interfaces HundredGigabitEthernet12/0/1 501"); string s2("vppctl set interface state HundredGigabitEthernet12/0/1 up"); string s3("vppctl set interface state HundredGigabitEthernet12/0/1.501 up"); string s4("vppctl set interface ip address HundredGigabitEthernet12/0/1.501 2001:5b0:ffff:501:b883:31f:19e:8879/64"); int ret; ret = system(s1.c_str()); Trace.WriteLine(TraceConstants::Configuration, "Cmd: ", s1, ", ret = ", ret); ret = system(s2.c_str()); Trace.WriteLine(TraceConstants::Configuration, "Cmd: ", s2, ", ret = ", ret); ret = system(s3.c_str()); Trace.WriteLine(TraceConstants::Configuration, "Cmd: ", s3, ", ret = ", ret); ret = system(s4.c_str()); Trace.WriteLine(TraceConstants::Configuration, "Cmd: ", s4, ", ret = ", ret); my startup.conf file: unix { nodaemon log /var/log/vpp/vpp.log full-coredump cli-listen /run/vpp/cli.sock gid vpp } [image: image.png] -- Thanks and regards, Aniket Pugaonkar
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18045): https://lists.fd.io/g/vpp-dev/message/18045 Mute This Topic: https://lists.fd.io/mt/78297645/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-