Merge "V2T migration: handle empty tier0 route redistribution" into stable/victoria

This commit is contained in:
Zuul 2021-02-15 07:51:19 +00:00 committed by Gerrit Code Review
commit b938e5296e
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ def migration_tier0_redistribute(resource, event, trigger, **kwargs):
tier0)
except Exception:
LOG.error("Did not find Tier0 %s", tier0)
return
continue
if not orig_conf:
LOG.info("Tier0 %s does not have route redistribution config",
tier0)
continue
fixed_conf = copy.deepcopy(orig_conf)
if ((not orig_conf['bgp_enabled'] and
not orig_conf['ospf_enabled']) or