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 bc51380ded
)
This commit is contained in:
parent
c1dfe1fa3f
commit
cdc216bcac
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue