vswitches/ovs: delete flows on stop 53/57053/3
authorElias Richard <eliasric@ul001609.eu.tieto.com>
Fri, 4 May 2018 07:46:50 +0000 (09:46 +0200)
committerRichard Elias <richard.elias@tieto.com>
Thu, 24 May 2018 11:06:25 +0000 (11:06 +0000)
While removing bridges, also remove any flows created on them.

JIRA: VSPERF-577

Change-Id: Ie0cbe65c823e690c9b3e5149ff2af0b56809fccd
Signed-off-by: Richard Elias <richard.elias@tieto.com>
Reviewed-by: Martin Klozik <martin.klozik@tieto.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com>
vswitches/ovs.py

index 6f65000..be7b77d 100644 (file)
@@ -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)