summaryrefslogtreecommitdiffstats
path: root/vnfs/qemu
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-01-16 07:56:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-16 07:56:57 +0000
commitcafcb9f24b422a4b3a0b19ba00c83fe2819dcbaa (patch)
tree4a5f946ef9da8d81f1d74d7bac90130ba2464f82 /vnfs/qemu
parent0b202e7c4f4d88ba32570d245a4d4f7371f5fa3a (diff)
parent3ea19952db315e88263437ed41b0c31bd3bdbdf4 (diff)
Merge "testpmd_pvp: Adds pkt_fwd to allow pvp topology testing"
Diffstat (limited to 'vnfs/qemu')
-rw-r--r--vnfs/qemu/qemu_dpdk_vhost_user.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/vnfs/qemu/qemu_dpdk_vhost_user.py b/vnfs/qemu/qemu_dpdk_vhost_user.py
index 51c10242..f09ded13 100644
--- a/vnfs/qemu/qemu_dpdk_vhost_user.py
+++ b/vnfs/qemu/qemu_dpdk_vhost_user.py
@@ -56,9 +56,16 @@ class QemuDpdkVhostUser(IVnfQemu):
ifi = str(index)
net = 'net' + str(index + 1)
+ # In case of testpmd as switch, path to vhost netdev folder will be set
+ # to tmp location instead of default ovs_var_tmp folder.
+ if S.getValue('VSWITCH') == 'none':
+ vhost_folder = '/tmp/'
+ else:
+ vhost_folder = S.getValue('TOOLS')['ovs_var_tmp']
+
self._cmd += ['-chardev',
'socket,id=char' + ifi +
- ',path=' + S.getValue('TOOLS')['ovs_var_tmp'] +
+ ',path=' + vhost_folder +
'dpdkvhostuser' + ifi,
'-netdev',
'type=vhost-user,id=' + net +