Merge "[OVN] Check for lock in check_for_mcast_flood_reports" into stable/ussuri
This commit is contained in:
commit
5a60756128
|
@ -649,6 +649,9 @@ class DBInconsistenciesPeriodics(SchemaAwarePeriodicsBase):
|
||||||
# once per lock due to the use of periodics.NeverAgain().
|
# once per lock due to the use of periodics.NeverAgain().
|
||||||
@periodics.periodic(spacing=600, run_immediately=True)
|
@periodics.periodic(spacing=600, run_immediately=True)
|
||||||
def check_for_mcast_flood_reports(self):
|
def check_for_mcast_flood_reports(self):
|
||||||
|
if not self.has_lock:
|
||||||
|
return
|
||||||
|
|
||||||
cmds = []
|
cmds = []
|
||||||
for port in self._nb_idl.lsp_list().execute(check_error=True):
|
for port in self._nb_idl.lsp_list().execute(check_error=True):
|
||||||
port_type = port.type.strip()
|
port_type = port.type.strip()
|
||||||
|
|
Loading…
Reference in New Issue