diff --git a/vmware_nsx/shell/admin/plugins/nsxv3/resources/migration.py b/vmware_nsx/shell/admin/plugins/nsxv3/resources/migration.py index 8c81781d04..0af891ebd6 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv3/resources/migration.py +++ b/vmware_nsx/shell/admin/plugins/nsxv3/resources/migration.py @@ -1320,19 +1320,29 @@ def migrate_t_resources_2_p(nsxlib, nsxpolicy, plugin, start_migration_process(nsxlib) # Migration order derives from the dependencies between resources - public_switches, tier0s = migrate_tier0s(nsxlib, nsxpolicy, plugin) - migrate_md_proxies(nsxlib, nsxpolicy, plugin) - migrate_switch_profiles(nsxlib, nsxpolicy, plugin) - migrate_groups(nsxlib, nsxpolicy) + # Migrate DHCP server migrate_dhcp_servers(nsxlib, nsxpolicy) + # Migrate Tier0 routers + public_switches, tier0s = migrate_tier0s(nsxlib, nsxpolicy, plugin) + # Migrate Tier1 routers mp_routers = migrate_routers(nsxlib, nsxpolicy) + # Migrate switch profiles + migrate_switch_profiles(nsxlib, nsxpolicy, plugin) + # Migrate MD Proxies + migrate_md_proxies(nsxlib, nsxpolicy, plugin) + # Migrate logical switches mp_networks = migrate_networks(nsxlib, nsxpolicy, plugin, public_switches) + # Migrate logical ports including Tier1 router ports migrate_ports(nsxlib, nsxpolicy, plugin, mp_networks) + # Migrate static routes and NAT config migrate_routers_config(nsxlib, nsxpolicy, plugin, mp_routers) + # Migrate Tier0 router ports and configuration migrate_tier0_config(nsxlib, nsxpolicy, tier0s) + # Migrate NS groups + migrate_groups(nsxlib, nsxpolicy) + # Migrate Lb profiles, monitors, pools, virtual servers, and services migrate_lb_resources(nsxlib, nsxpolicy) - # Migrate firewall sections last as those take the longest to rollback # in case of error migrate_dfw_sections(nsxlib, nsxpolicy, plugin)