hashicorp / terraform-provider-vsphere

Terraform Provider for VMware vSphere
https://registry.terraform.io/providers/hashicorp/vsphere/
Mozilla Public License 2.0
608 stars 448 forks source link

Clarify how `network_interface` in `customize` blocks are assigned #2101

Open lindhe opened 6 months ago

lindhe commented 6 months ago

Community Guidelines

Description

It's mentioned in the docs that multiple network interfaces can be customized when cloning:

https://github.com/hashicorp/terraform-provider-vsphere/blob/0c2be2d0c2d769b982bc50c6798e08249121bda1/website/docs/r/virtual_machine.html.markdown?plain=1#L1130

The first network_interface would be assigned to the public interface, and the second to the private interface.

It is, however, never explained why this works. Is the first network interface assigned to the public interface because of the order it is defined in or because the IP matches the network or something else?

Use Case(s)

Docs should explain how to use the provider.

Potential Terraform Provider Configuration

No response

References

No response

github-actions[bot] commented 6 months ago

Hello, lindhe! 🖐

Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.

If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.