Skip to content

Commit 4701b61

Browse files
committed
fixup! ec2: enable primary IPv6 on ENI for EC2 instances
Addressing reviews
1 parent 061134a commit 4701b61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cloud/services/ec2/instances.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,6 +1325,9 @@ func getInstanceCPUOptionsRequest(cpuOptions infrav1.CPUOptions) *types.CpuOptio
13251325
return request
13261326
}
13271327

1328+
// shouldEnablePrimaryIpv6 determines whether to enable a primary IPv6 address for an instance.
1329+
// It returns true if both the VPC has IPv6 enabled and the instance's subnet has an IPv6 CIDR block.
1330+
// This is required when registering instances by ID to IPv6 target groups.
13281331
func (s *Service) shouldEnablePrimaryIpv6(i *infrav1.Instance) (bool, error) {
13291332
var enablePrimaryIpv6 bool
13301333

0 commit comments

Comments
 (0)