From b792a8ce775e60107ce9d9adfb5e853860b08c9b Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Fri, 9 Jul 2021 01:59:26 -0700 Subject: [PATCH] V2T: Ensure transit LS is created for routers on Policy This will simplify the N/S cutover process, allowing it to run smoothly also for routers with no downlink interfaces Change-Id: Ida4f2ba787c5bb897b6d2f479b32f715b1e83713 --- vmware_nsx/plugins/nsx_p/plugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index 13b875a19d..3474750b44 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -2849,6 +2849,12 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base): tags = self.nsxpolicy.build_v3_tags_payload( r, resource_type='os-neutron-router-id', project_name=context.tenant_name) + + # Upon API replay make sure a transit LS is always created + # to ensure also "standalone" routers can be migrated from NSX-V + if cfg.CONF.api_replay_mode: + tags.append({"tag": "v2t-gateway-transit-ls"}) + try: def _do_create_router(): self.nsxpolicy.tier1.create_or_overwrite(