summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Benton <kevin@benton.pub>2017-06-23 18:57:02 -0700
committerKevin Benton <kevin@benton.pub>2017-07-21 19:46:58 +0000
commitcdc216bcac7b440783ea9f0831a473db00a12e4a (patch)
tree023daab95d8fa08c5d8ba47f6b72ef0f669874b9
parentc1dfe1fa3fc2716c5b9f712cb87e0b1bfaf6be4b (diff)
downloadneutron-cdc216bcac7b440783ea9f0831a473db00a12e4a.tar.gz
Log reserved cookies in cleanup_flows method
This will help us debug why flows are unexpectedly being cleaned up if the related bug ever resurfaces. Related-Bug: #1697243 Change-Id: I517b16c550037f41a5f4915b98963c2232daa78c (cherry picked from commit bc51380ded25eb679209c379a07a1ac176af30f3)
-rw-r--r--neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py b/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py
index 5a310a7b0e..ddf6a036b9 100644
--- a/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py
+++ b/neutron/plugins/ml2/drivers/openvswitch/agent/openflow/native/ofswitch.py
@@ -137,6 +137,8 @@ class OpenFlowSwitchMixin(object):
def cleanup_flows(self):
cookies = set([f.cookie for f in self.dump_flows()]) - \
self.reserved_cookies
+ LOG.debug("Reserved cookies for %s: %s", self.br_name,
+ self.reserved_cookies)
for c in cookies:
LOG.warning(_LW("Deleting flow with cookie 0x%(cookie)x"),
{'cookie': c})