Comments (11)
Does your code work with some other request? Try using simple request like vpe.ShowVersion
to ensure that you are properly connecting to VPP binary API.
from vpp-agent.
@ondrej-fabry, yes, code is working properly, moreover i am also calling this struct and it is working fine.
code:
req:=&ipsec.Ikev2ProfileAddDel{
Name : []byte(ikev.Name),
IsAdd : 1,
}
reply := &ipsec.Ikev2ProfileAddDelReply{}
if err := ch.SendRequest(req).ReceiveReply(reply); err != nil {
fmt.Println("ERROR:", err)
return
}
if reply.Retval != 0 {
fmt.Println("Retval:", reply.Retval)
return
}
fmt.Printf("ikev2 add replace reply: %+v\n", reply)
from vpp-agent.
Does VPP process print amything during request?
from vpp-agent.
@ondrej-fabry vpp process prints this:
vpp# Aborted (core dumped)
from vpp-agent.
Your VPP process crashed. You have most likely put some invalid values or unsupported combination in the request and this caused some undefined behavior and the process crash.
How do you run VPP? As a service? Try running it in foreground so you can see all of it's output. It might print some information before the crash. You can also configure output log file for the VPP using unix { log xxx ... }
.
from vpp-agent.
@ondrej-fabry Log file is not showing anything, whenever i pass some configurations via govpp.its only show those commands which i set from vpp cli.
the output of log file is like:
2019/ 1/ 8 18:12:03:203: ***** Start: PID 926 *****
2019/ 1/ 8 18:14:55:494: ***** Start: PID 946 *****
2019/ 1/ 8 18:15:01:650[0]: show interface
2019/ 1/ 8 18:15:34:920: ***** Start: PID 952 *****
2019/ 1/ 8 18:16:54:711: ***** Start: PID 967 *****
2019/ 1/ 8 18:17:09:767[0]: sho int2019/ 1/ 8 18:17:12:060[0]: sho in2019/ 1/ 8
can you tell me according to your understanding what is problem with this req:
req:=&ipsec.Ikev2ProfileSetAuth{
Name : []byte("Profile1"),
AuthMethod : uint8(2),
Data : []byte("vpp123"),
}
and how you will fill this struct?
from vpp-agent.
Please send your vpp.conf
file you use for VPP process along with arguments you use please.
from vpp-agent.
@ondrej-fabry vpp.conf file contain:
unix {
nodaemon
cli-listen 0.0.0.0:5002
cli-no-pager
log /tmp/vpp.log
full-coredump
}
plugins {
plugin dpdk_plugin.so {
disable
}
}
api-trace {
on
}
command line arguments are:
vpp unix {log /conf.txt interactive }
from vpp-agent.
Does the IKEv2 work for you using CLI commands? As far as I know IKEv2 is not completely functional in VPP so I can't tell you if you can make it work at all. Try using CLI commands to set it up first.
Also why are you not running VPP using vpp -c /etc/vpp/vpp.conf
and then run another shell with vppctl -s localhost:5002
. That way when it crashes you might see some output in the first shell.
from vpp-agent.
@ondrej-fabry IKEv2 commands which i am using is working fine with cli.
in first shell i am getting this:
vpp[128]: received signal SIGSEGV, PC 0x7f95df712fa9, faulting address 0x34003000
vpp[128]: received signal SIGSEGV, PC 0x7f95df712fa9, faulting address 0x34003000
vpp[128]: #0 0x00007f95dfeba39a 0x7f95dfeba39a
vpp[128]: #0 0x00007f95dfeba39a 0x7f95dfeba39a
vpp[128]: #1 0x00007f95ded48890 0x7f95ded48890
vpp[128]: #1 0x00007f95ded48890 0x7f95ded48890
vpp[128]: #2 0x00007f95df712fa9 0x7f95df712fa9
vpp[128]: #2 0x00007f95df712fa9 0x7f95df712fa9
vpp[128]: #3 0x00007f95e00e0366 vl_msg_api_handler_with_vm_node + 0x66
vpp[128]: #3 0x00007f95e00e0366 vl_msg_api_handler_with_vm_node + 0x66
vpp[128]: #4 0x00007f95e00e76f5 vl_mem_api_handle_msg_main + 0x45
vpp[128]: #4 0x00007f95e00e76f5 vl_mem_api_handle_msg_main + 0x45
vpp[128]: #5 0x00007f95e00f9ba8 0x7f95e00f9ba8
vpp[128]: #5 0x00007f95e00f9ba8 0x7f95e00f9ba8
vpp[128]: #6 0x00007f95dfe7dca6 0x7f95dfe7dca6
vpp[128]: #6 0x00007f95dfe7dca6 0x7f95dfe7dca6
vpp[128]: #7 0x00007f95def85770 0x7f95def85770
vpp[128]: #7 0x00007f95def85770 0x7f95def85770
from vpp-agent.
Please report this to VPP.
from vpp-agent.
Related Issues (20)
- CNAT plugin added HOT 1
- BUG: rest plugin return 500 /vpp/telemetry HOT 2
- Unable to start the `vpp-agent` Docker container in WSL
- kvscheduler internal graph bug HOT 4
- Deprecate clientv2 package
- Update k8s directory
- restful-api got configuration error. HOT 4
- BUG: srv6 ad failed to create ip neighbor HOT 1
- Is there any plan about supporting VPP 22.06 or 22.10? HOT 2
- How do I save my /confiuration interface configuration to etcd?
- Remove robot tests
- How to del some configuration by http ? HOT 1
- Unable to use REST plugin to configure vpp loopback interface
- Question: why telementry plugin use api sock to dump memory telemetry rather than stats.sock? HOT 2
- Question: does vpp-agent support linux-cp plugin? or how to send vpp cli commands through gRPC? HOT 2
- connect: No such file or directory HOT 1
- ligato Delivers the configuration of the linux host interface
- why (*InterfaceVppHandler).DumpInterfaces fail? HOT 3
- how to get interface status?
- Can we run the VPP Agent as part of the host process instead of container HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vpp-agent.