summaryrefslogtreecommitdiffstats
path: root/src/vnf/virtio-user-ping/setup_vpp.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-08-01 11:11:01 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-08-01 11:12:11 -0700
commitf9154df2f80bfb343b58016ad81cff5ae0b44cd3 (patch)
tree855aabc5bc097320643fedb798626ce565e0156f /src/vnf/virtio-user-ping/setup_vpp.sh
parentdc766e69c0c08c55b6df2384bbcfd1e712f03160 (diff)
Add ping vnf using vhost-user & virtio-user
Change-Id: If1138e90dd5ebf3c4748dc9cc998c93bb037c4c7 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vnf/virtio-user-ping/setup_vpp.sh')
-rwxr-xr-xsrc/vnf/virtio-user-ping/setup_vpp.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnf/virtio-user-ping/setup_vpp.sh b/src/vnf/virtio-user-ping/setup_vpp.sh
new file mode 100755
index 0000000..eef672c
--- /dev/null
+++ b/src/vnf/virtio-user-ping/setup_vpp.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+mkdir -p /run/vpp
+vpp -c /root/startup.conf &
+sleep 10
+chmod 777 /run/vpp/cli.sock
+vppctl set int state VirtioUser0/0/0 up
+vppctl set int ip add VirtioUser0/0/0 192.168.3.2/24
+sleep 1000000