summaryrefslogtreecommitdiffstats
path: root/vswitches/ovs_vanilla.py
diff options
context:
space:
mode:
authorDino Simeon Madarang <dino.simeonx.madarang@intel.com>2016-01-08 15:31:36 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-01-12 12:38:59 +0000
commit76aba6f4fcb5e2a030893c01a3103bf8e94aa288 (patch)
tree4819464b0f3bc26b42d309f0860541f782fac399 /vswitches/ovs_vanilla.py
parentb2b11bf301bbe37befdda23e2a0f1501c079405f (diff)
vswitches: Remove datapath after stopping OVS
Remove the datapath that OVS creates, ovs-system, (can be viewed by ip link) after running OVS vanilla tests. Change-Id: I087c7b3f5afa546258227939ffcb38f0192f0d98 JIRA: VSPERF-175 Signed-off-by: Dino Simeon Madarang <dino.simeonx.madarang@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Brian Castelli <brian.castelli@spirent.com>
Diffstat (limited to 'vswitches/ovs_vanilla.py')
-rw-r--r--vswitches/ovs_vanilla.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/vswitches/ovs_vanilla.py b/vswitches/ovs_vanilla.py
index 04058d97..c6617404 100644
--- a/vswitches/ovs_vanilla.py
+++ b/vswitches/ovs_vanilla.py
@@ -18,7 +18,7 @@
import logging
from conf import settings
from vswitches.vswitch import IVSwitch
-from src.ovs import VSwitchd, OFBridge
+from src.ovs import VSwitchd, OFBridge, DPCtl
from tools.module_manager import ModuleManager
from tools import tasks
@@ -74,6 +74,9 @@ class OvsVanilla(IVSwitch):
self._vport_id = 0
self._vswitchd.kill()
+ dpctl = DPCtl()
+ dpctl.del_dp()
+
self._module_manager.remove_modules()