Merge "[OVN] Check for lock in check_for_mcast_flood_reports" into stable/wallaby

This commit is contained in:
Zuul 2021-05-07 12:56:55 +00:00 committed by Gerrit Code Review
commit 1bc6c776ec
1 changed files with 3 additions and 0 deletions

View File

@ -667,6 +667,9 @@ class DBInconsistenciesPeriodics(SchemaAwarePeriodicsBase):
# once per lock due to the use of periodics.NeverAgain().
@periodics.periodic(spacing=600, run_immediately=True)
def check_for_mcast_flood_reports(self):
if not self.has_lock:
return
cmds = []
for port in self._nb_idl.lsp_list().execute(check_error=True):
port_type = port.type.strip()