V2T migration: handle empty tier0 route redistribution

Change-Id: Ica20c41cc8c103b778fe174121d386cb5667e2c7
This commit is contained in:
asarfaty 2021-02-14 20:23:00 +02:00 committed by Adit Sarfaty
parent 439d07bdfb
commit 8fddbd4267
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