From: Elias Richard Date: Fri, 4 May 2018 07:46:50 +0000 (+0200) Subject: vswitches/ovs: delete flows on stop X-Git-Tag: opnfv-7.0.0~15^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F57053%2F3;p=vswitchperf.git vswitches/ovs: delete flows on stop While removing bridges, also remove any flows created on them. JIRA: VSPERF-577 Change-Id: Ie0cbe65c823e690c9b3e5149ff2af0b56809fccd Signed-off-by: Richard Elias Reviewed-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Sridhar Rao --- diff --git a/vswitches/ovs.py b/vswitches/ovs.py index 6f650005..be7b77df 100644 --- a/vswitches/ovs.py +++ b/vswitches/ovs.py @@ -1,4 +1,4 @@ -# Copyright 2015-2017 Intel Corporation. +# Copyright 2015-2018 Intel Corporation, Tieto and Others. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -149,6 +149,7 @@ class IVSwitchOvs(IVSwitch, tasks.Process): """See IVswitch for general description """ bridge = self._bridges[switch_name] + bridge.del_flow({}) for port in list(bridge.get_ports()): bridge.del_port(port) self._bridges.pop(switch_name)