From 3af55a78fcd572f93b1a46178bffc4c8e90534f2 Mon Sep 17 00:00:00 2001 From: Dino Simeon Madarang Date: Wed, 15 Jul 2015 09:22:07 +0100 Subject: vnfs: Enable PVP using vhost-user Enable booting of a VM with DPDK and run testpmd for PVP testing. * Added throughput and back2back tests with pvp deployment scenario in 01_testcases.conf * PVP requires DPDK 2.0 with VHOST_USER enabled and QEMU 2.2.0 * Tested on CentOS7 and Fedora 20 * Fix conflict with change 1078 Recent Changes: * Fix merge conflict (testcase.py and testcases.conf) * Remove QEMU_DIR. User must set QEMU_BIN * Set bidir traffic to True * Add flow for bi-directional traffic * Use working OVS_TAG ad2e649834be20dd01b1632799fe778106a96a2d * Merge change 1096 (src: Add QEMU makefile) * Set virtio-net-pci csum=off and other variables to off * Move hardcoded values to conf/* JIRA: VSPERF-56 Change-Id: I4ad184531064855493483d9833a7722c9f7d3576 Signed-off-by: Madarang, Dino Simeon Signed-off-by: Meghan Halton Reviewed-by: Billy O Mahony Reviewed-by: Maryam Tahhan Reviewed-by: Martin Klozik --- core/vswitch_controller.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/vswitch_controller.py') diff --git a/core/vswitch_controller.py b/core/vswitch_controller.py index 1caf94fb..619e1d8b 100644 --- a/core/vswitch_controller.py +++ b/core/vswitch_controller.py @@ -20,12 +20,13 @@ class IVswitchController(object): This interface is used to setup and control a vSwitch provider for a particular deployment scenario. """ - def setup(self): + def __enter__(self): """Sets up the switch for the particular deployment scenario """ raise NotImplementedError( "The VswitchController does not implement the \"setup\" function.") - def stop(self): + + def __exit__(self, type_, value, traceback): """Tears down the switch created in setup() """ raise NotImplementedError( -- cgit 1.2.3-korg