You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add internal IPV6 support for GoogleComputeAddress and ComputeInstance resources (#8432) (#15780)
* Address added ipVersion parameter for reserving both ipv4 and ipv6 addresses
Instance added ipv6Address for assigning static ipv6 address to compute instance resource
ComputeInstance added test for internal ipv6 new field
* Fix yaml syntax issues
* Fixes
* Add ipv6PrefixLength and fix tests
* added ipv6PrefixLength and ipv6Address to compute_instance_template
* added ipv6PrefixLength and ipv6Address to region_compute_instance_template
---------
Signed-off-by: Modular Magician <[email protected]>
Co-authored-by: Luca Prete <[email protected]>
Description: `The prefix length of the primary internal IPv6 range.`,
438
+
},
439
+
440
+
"ipv6_address": {
441
+
Type: schema.TypeString,
442
+
Optional: true,
443
+
Computed: true,
444
+
DiffSuppressFunc: ipv6RepresentationDiffSuppress,
445
+
Description: `An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.`,
446
+
},
447
+
433
448
"queue_count": {
434
449
Type: schema.TypeInt,
435
450
Optional: true,
@@ -1788,6 +1803,40 @@ func resourceComputeInstanceUpdate(d *schema.ResourceData, meta interface{}) err
Copy file name to clipboardExpand all lines: google/services/compute/resource_compute_instance_template.go
+13
Original file line number
Diff line number
Diff line change
@@ -533,6 +533,19 @@ Google Cloud KMS.`,
533
533
},
534
534
},
535
535
},
536
+
"internal_ipv6_prefix_length": {
537
+
Type: schema.TypeInt,
538
+
Optional: true,
539
+
Computed: true,
540
+
Description: `The prefix length of the primary internal IPv6 range.`,
541
+
},
542
+
"ipv6_address": {
543
+
Type: schema.TypeString,
544
+
Optional: true,
545
+
Computed: true,
546
+
DiffSuppressFunc: ipv6RepresentationDiffSuppress,
547
+
Description: `An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.`,
Copy file name to clipboardExpand all lines: google/services/compute/resource_compute_region_instance_template.go
+13
Original file line number
Diff line number
Diff line change
@@ -517,6 +517,19 @@ Google Cloud KMS.`,
517
517
},
518
518
},
519
519
},
520
+
"internal_ipv6_prefix_length": {
521
+
Type: schema.TypeInt,
522
+
Optional: true,
523
+
Computed: true,
524
+
Description: `The prefix length of the primary internal IPv6 range.`,
525
+
},
526
+
"ipv6_address": {
527
+
Type: schema.TypeString,
528
+
Optional: true,
529
+
Computed: true,
530
+
DiffSuppressFunc: ipv6RepresentationDiffSuppress,
531
+
Description: `An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.`,
0 commit comments