Skip to content

Commit f7b3fef

Browse files
Merge pull request openshift#7124 from mkowalski/OPNET-298
OPNET-298: Allow primary-v6 dual-stack on vSphere
2 parents 5ece3e4 + 25471e4 commit f7b3fef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/types/validation/installconfig.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ func validateNetworkingIPVersion(n *types.Networking, p *types.Platform) field.E
252252
// We now support ipv6-primary dual stack on baremetal
253253
allowV6Primary = true
254254
case p.VSphere != nil:
255+
// as well as on vSphere
256+
allowV6Primary = true
255257
case p.OpenStack != nil:
256258
case p.Ovirt != nil:
257259
case p.Nutanix != nil:
@@ -531,9 +533,6 @@ func validateVIPsForPlatform(network *types.Networking, platform *types.Platform
531533

532534
allErrs = append(allErrs, validateAPIAndIngressVIPs(virtualIPs, newVIPsFields, true, true, network, fldPath.Child(openstack.Name))...)
533535
case platform.VSphere != nil:
534-
allErrs = append(allErrs, ensureIPv4IsFirstInDualStackSlice(&platform.VSphere.APIVIPs, fldPath.Child(vsphere.Name, newVIPsFields.APIVIPs))...)
535-
allErrs = append(allErrs, ensureIPv4IsFirstInDualStackSlice(&platform.VSphere.IngressVIPs, fldPath.Child(vsphere.Name, newVIPsFields.IngressVIPs))...)
536-
537536
virtualIPs = vips{
538537
API: platform.VSphere.APIVIPs,
539538
Ingress: platform.VSphere.IngressVIPs,

0 commit comments

Comments
 (0)