From 76aba6f4fcb5e2a030893c01a3103bf8e94aa288 Mon Sep 17 00:00:00 2001 From: Dino Simeon Madarang Date: Fri, 8 Jan 2016 15:31:36 +0000 Subject: 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 Reviewed-by: Maryam Tahhan Reviewed-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Brian Castelli --- vswitches/ovs_vanilla.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vswitches') 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() -- cgit 1.2.3-korg