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
This commit is contained in:
Kevin Benton 2017-06-23 18:57:02 -07:00
parent c989331b93
commit bc51380ded
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,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})