From 2976cffaaff1861ee7de02c8e5bd2a9c35b0e0e0 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Wed, 31 Mar 2021 08:50:27 +0200 Subject: [PATCH] V2T migration: fix validation with ipv6 subnets Change-Id: Ib30a513dcdff38930b9775a0f1b46f5d9d472b5b --- vmware_nsx/shell/admin/plugins/nsxv/resources/migration.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxv/resources/migration.py b/vmware_nsx/shell/admin/plugins/nsxv/resources/migration.py index e3d36a9994..92a62892e2 100644 --- a/vmware_nsx/shell/admin/plugins/nsxv/resources/migration.py +++ b/vmware_nsx/shell/admin/plugins/nsxv/resources/migration.py @@ -199,9 +199,11 @@ def _validate_networks(plugin, admin_context, transit_networks): (subnet['id'], transit_networks)) # Cannot support non-dhcp overlay subnet attached to a router - # if there is also a dhcp subnet on the same network + # if there is also a dhcp subnet on the same network and the + # same ipver if (overlay_net and n_dhcp_subnets > 0 and - not subnet['enable_dhcp']): + not subnet['enable_dhcp'] and + subnet.get('ip_version', 4) == 4): # look for a router interface for this subnet for if_port in intf_ports: if if_port['fixed_ips']: