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
This commit is contained in:
parent
73bf4bbe31
commit
b792a8ce77
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user