Skip to content

Commit 3716a60

Browse files
Asiderrzeleena
authored andcommitted
Add IDPF support for the google_compute_instance and google_compute_image.guest_os_features (GoogleCloudPlatform#12256)
Signed-off-by: Norbert Kamiński <[email protected]>
1 parent d32ba8b commit 3716a60

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

mmv1/products/compute/Image.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ properties:
146146
- 'VIRTIO_SCSI_MULTIQUEUE'
147147
- 'WINDOWS'
148148
- 'GVNIC'
149+
- 'IDPF'
149150
- 'SEV_LIVE_MIGRATABLE'
150151
- 'SEV_SNP_CAPABLE'
151152
- 'SUSPEND_RESUME_COMPATIBLE'

mmv1/third_party/terraform/services/compute/resource_compute_instance.go.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ func ResourceComputeInstance() *schema.Resource {
465465
Type: schema.TypeString,
466466
Optional: true,
467467
ForceNew: true,
468-
ValidateFunc: validation.StringInSlice([]string{"GVNIC", "VIRTIO_NET"}, false),
469-
Description: `The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET`,
468+
ValidateFunc: validation.StringInSlice([]string{"GVNIC", "VIRTIO_NET", "IDPF"}, false),
469+
Description: `The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF`,
470470
},
471471
"access_config": {
472472
Type: schema.TypeList,

mmv1/third_party/terraform/website/docs/r/compute_instance.html.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ is desired, you will need to modify your state file manually using
395395
array of alias IP ranges for this network interface. Can only be specified for network
396396
interfaces on subnet-mode networks. Structure [documented below](#nested_alias_ip_range).
397397

398-
* `nic_type` - (Optional) The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET.
398+
* `nic_type` - (Optional) The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, IDPF.
399399

400400
* `network_attachment` - (Optional) [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html) The URL of the network attachment that this interface should connect to in the following format: `projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}`.
401401

0 commit comments

Comments
 (0)