Merge "V2T migration: handle empty tier0 route redistribution" into stable/victoria
This commit is contained in:
commit
b938e5296e
|
@ -95,7 +95,11 @@ def migration_tier0_redistribute(resource, event, trigger, **kwargs):
|
||||||
tier0)
|
tier0)
|
||||||
except Exception:
|
except Exception:
|
||||||
LOG.error("Did not find Tier0 %s", tier0)
|
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)
|
fixed_conf = copy.deepcopy(orig_conf)
|
||||||
if ((not orig_conf['bgp_enabled'] and
|
if ((not orig_conf['bgp_enabled'] and
|
||||||
not orig_conf['ospf_enabled']) or
|
not orig_conf['ospf_enabled']) or
|
||||||
|
|
Loading…
Reference in New Issue