Skip to content

Commit

Permalink
Add IDPF support for the google_compute_instance and google_compute_i…
Browse files Browse the repository at this point in the history
…mage.guest_os_features (GoogleCloudPlatform#12256)

Signed-off-by: Norbert Kamiński <[email protected]>
  • Loading branch information
Asiderr authored and akshat-jindal-nit committed Nov 18, 2024
1 parent de42074 commit d739b78
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions mmv1/products/compute/Image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ properties:
- 'VIRTIO_SCSI_MULTIQUEUE'
- 'WINDOWS'
- 'GVNIC'
- 'IDPF'
- 'SEV_LIVE_MIGRATABLE'
- 'SEV_SNP_CAPABLE'
- 'SUSPEND_RESUME_COMPATIBLE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ func ResourceComputeInstance() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{"GVNIC", "VIRTIO_NET"}, false),
Description: `The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET`,
ValidateFunc: validation.StringInSlice([]string{"GVNIC", "VIRTIO_NET", "IDPF"}, false),
Description: `The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF`,
},
"access_config": {
Type: schema.TypeList,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ is desired, you will need to modify your state file manually using
array of alias IP ranges for this network interface. Can only be specified for network
interfaces on subnet-mode networks. Structure [documented below](#nested_alias_ip_range).

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

* `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}`.

Expand Down

0 comments on commit d739b78

Please sign in to comment.