Merge "[OVN] Fix RowNotFound: Cannot find Logical_Router"

This commit is contained in:
Zuul 2021-03-23 15:46:53 +00:00 committed by Gerrit Code Review
commit bbfd05eeb2
1 changed files with 2 additions and 1 deletions

View File

@ -673,7 +673,8 @@ class OvsdbNbOvnIdl(nb_impl_idl.OvnNbApiIdlImpl, Backend):
if uuidutils.is_uuid_like(lrouter_name):
lrouter_name = utils.ovn_name(lrouter_name)
try:
return self.lr_get(lrouter_name).execute(check_error=True)
return self.lr_get(lrouter_name).execute(log_errors=False,
check_error=True)
except idlutils.RowNotFound:
return None