Skip to content

Commit

Permalink
Convert field ExternalIpv6PrefixLength in Cai2Hcl converter for Compu…
Browse files Browse the repository at this point in the history
…teInstance (#10252)
  • Loading branch information
edisonhuang-google authored Apr 1, 2024
1 parent f1f0e24 commit 53b19f4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ func flattenIpv6AccessConfigs(ipv6AccessConfigs []*compute.AccessConfig) []map[s
}
flattened[i]["public_ptr_domain_name"] = ac.PublicPtrDomainName
flattened[i]["external_ipv6"] = ac.ExternalIpv6
flattened[i]["external_ipv6_prefix_length"] = ac.ExternalIpv6PrefixLength
}
return flattened
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@
},
{
"subnetwork": "projects/test-subnetwork_project/regions/us-central1/subnetworks/test-subnetwork"
},
{
"ipv6AccessConfigs": [
{
"externalIpv6": "0000:00000:00000:00000:00000:00000:00000:1",
"externalIpv6PrefixLength": 96,
"networkTier": "PREMIUM"
}
]
}
],
"scheduling": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ resource "google_compute_instance" "test1" {
subnetwork = "projects/test-subnetwork_project/regions/us-central1/subnetworks/test-subnetwork"
}

network_interface {
ipv6_access_config {
external_ipv6 = "0000:00000:00000:00000:00000:00000:00000:1"
external_ipv6_prefix_length = "96"
network_tier = "PREMIUM"
}

queue_count = 0
}

scheduling {
automatic_restart = true
on_host_maintenance = "test-on_host_maintenance"
Expand Down

0 comments on commit 53b19f4

Please sign in to comment.