From 153e0f8011a688c8d168ec6d32a0748a7b933d0c Mon Sep 17 00:00:00 2001 From: asarfaty Date: Sun, 14 Feb 2021 20:23:00 +0200 Subject: [PATCH] V2T migration: handle empty tier0 route redistribution Change-Id: Ica20c41cc8c103b778fe174121d386cb5667e2c7 --- vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py b/vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py index 49da91bb7d..f3bfa6c248 100644 --- a/vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py +++ b/vmware_nsx/shell/admin/plugins/nsxp/resources/migration.py @@ -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