Skip to content

Commit 00d3dce

Browse files
add ipv6 outputs (#10275) (#7151)
[upstream:db62dafd2cdb8f7aa07dd6b28b9c1db3f697450b] Signed-off-by: Modular Magician <[email protected]>
1 parent 52a0500 commit 00d3dce

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.changelog/10275.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
compute: added `cloud_router_ipv6_address`, `customer_router_ipv6_address` fields to `google_compute_interconnect_attachment` resource
3+
```

google-beta/services/compute/resource_compute_interconnect_attachment.go

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ using PARTNER type this will be managed upstream.`,
247247
Type: schema.TypeString,
248248
Computed: true,
249249
Description: `IPv4 address + prefix length to be configured on Cloud Router
250+
Interface for this interconnect attachment.`,
251+
},
252+
"cloud_router_ipv6_address": {
253+
Type: schema.TypeString,
254+
Computed: true,
255+
Description: `IPv6 address + prefix length to be configured on Cloud Router
250256
Interface for this interconnect attachment.`,
251257
},
252258
"creation_timestamp": {
@@ -258,6 +264,12 @@ Interface for this interconnect attachment.`,
258264
Type: schema.TypeString,
259265
Computed: true,
260266
Description: `IPv4 address + prefix length to be configured on the customer
267+
router subinterface for this interconnect attachment.`,
268+
},
269+
"customer_router_ipv6_address": {
270+
Type: schema.TypeString,
271+
Computed: true,
272+
Description: `IPv6 address + prefix length to be configured on the customer
261273
router subinterface for this interconnect attachment.`,
262274
},
263275
"google_reference_id": {
@@ -576,6 +588,12 @@ func resourceComputeInterconnectAttachmentRead(d *schema.ResourceData, meta inte
576588
if err := d.Set("stack_type", flattenComputeInterconnectAttachmentStackType(res["stackType"], d, config)); err != nil {
577589
return fmt.Errorf("Error reading InterconnectAttachment: %s", err)
578590
}
591+
if err := d.Set("cloud_router_ipv6_address", flattenComputeInterconnectAttachmentCloudRouterIpv6Address(res["cloudRouterIpv6Address"], d, config)); err != nil {
592+
return fmt.Errorf("Error reading InterconnectAttachment: %s", err)
593+
}
594+
if err := d.Set("customer_router_ipv6_address", flattenComputeInterconnectAttachmentCustomerRouterIpv6Address(res["customerRouterIpv6Address"], d, config)); err != nil {
595+
return fmt.Errorf("Error reading InterconnectAttachment: %s", err)
596+
}
579597
if err := d.Set("region", flattenComputeInterconnectAttachmentRegion(res["region"], d, config)); err != nil {
580598
return fmt.Errorf("Error reading InterconnectAttachment: %s", err)
581599
}
@@ -893,6 +911,14 @@ func flattenComputeInterconnectAttachmentStackType(v interface{}, d *schema.Reso
893911
return v
894912
}
895913

914+
func flattenComputeInterconnectAttachmentCloudRouterIpv6Address(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
915+
return v
916+
}
917+
918+
func flattenComputeInterconnectAttachmentCustomerRouterIpv6Address(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
919+
return v
920+
}
921+
896922
func flattenComputeInterconnectAttachmentRegion(v interface{}, d *schema.ResourceData, config *transport_tpg.Config) interface{} {
897923
if v == nil {
898924
return v

website/docs/r/compute_interconnect_attachment.html.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,14 @@ In addition to the arguments listed above, the following computed attributes are
270270

271271
* `creation_timestamp` -
272272
Creation timestamp in RFC3339 text format.
273+
274+
* `cloud_router_ipv6_address` -
275+
IPv6 address + prefix length to be configured on Cloud Router
276+
Interface for this interconnect attachment.
277+
278+
* `customer_router_ipv6_address` -
279+
IPv6 address + prefix length to be configured on the customer
280+
router subinterface for this interconnect attachment.
273281
* `self_link` - The URI of the created resource.
274282

275283

0 commit comments

Comments
 (0)