diff options
author | Dino Simeon Madarang <dino.simeonx.madarang@intel.com> | 2016-01-08 15:31:36 +0000 |
---|---|---|
committer | Maryam Tahhan <maryam.tahhan@intel.com> | 2016-01-15 15:33:00 +0000 |
commit | 9e850ed8caaa62b8e6bef58edf41c2b32baac87c (patch) | |
tree | 4819464b0f3bc26b42d309f0860541f782fac399 /vswitches | |
parent | f9151087699b72fea457b6c8ea6d3b1c69d70c36 (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>
(cherry picked from commit 76aba6f4fcb5e2a030893c01a3103bf8e94aa288)
Diffstat (limited to 'vswitches')
-rw-r--r-- | vswitches/ovs_vanilla.py | 5 |
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() |