diff options
author | Martin Klozik <martin.klozik@tieto.com> | 2018-05-28 09:48:05 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-05-28 09:48:06 +0000 |
commit | c79adfe7660ffa43f597af794412c0616a785943 (patch) | |
tree | f157c10340f36eb6f092cd3ed2e2a06b6a6541cc /vswitches/ovs.py | |
parent | 1ea6b99c3282724cf550f71979121e6ee728f126 (diff) | |
parent | 7820695ec10db06f7f486902ef3ef04b2bc40da3 (diff) |
Merge "vswitches/ovs: delete flows on stop"
Diffstat (limited to 'vswitches/ovs.py')
-rw-r--r-- | vswitches/ovs.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |