Document network path (#9762)

This commit is contained in:
Megan Marsh 2020-08-13 08:26:40 -07:00 committed by GitHub
parent a2277e312f
commit acba3ea3e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 8 deletions

View File

@ -32,8 +32,10 @@ type CloneConfig struct {
DiskSize int64 `mapstructure:"disk_size"`
// Create VM as a linked clone from latest snapshot. Defaults to `false`.
LinkedClone bool `mapstructure:"linked_clone"`
// Set the network in which the VM will be connected to. If no network is specified, `host`
// must be specified to allow Packer to look for the available network.
// Set the network in which the VM will be connected to. If no network is
// specified, `host` must be specified to allow Packer to look for the
// available network. If the network is inside a network folder in vCenter,
// you need to provide the full path to the network.
Network string `mapstructure:"network"`
// VM notes.
Notes string `mapstructure:"notes"`

View File

@ -43,8 +43,10 @@ import (
// }
// ```
type NIC struct {
// Set the network in which the VM will be connected to. If no network is specified, `host`
// must be specified to allow Packer to look for the available network.
// Set the network in which the VM will be connected to. If no network is
// specified, `host` must be specified to allow Packer to look for the
// available network. If the network is inside a network folder in vCenter,
// you need to provide the full path to the network.
Network string `mapstructure:"network"`
// Set VM network card type. Example `vmxnet3`.
NetworkCard string `mapstructure:"network_card" required:"true"`

View File

@ -6,8 +6,10 @@
- `linked_clone` (bool) - Create VM as a linked clone from latest snapshot. Defaults to `false`.
- `network` (string) - Set the network in which the VM will be connected to. If no network is specified, `host`
must be specified to allow Packer to look for the available network.
- `network` (string) - Set the network in which the VM will be connected to. If no network is
specified, `host` must be specified to allow Packer to look for the
available network. If the network is inside a network folder in vCenter,
you need to provide the full path to the network.
- `notes` (string) - VM notes.

View File

@ -1,7 +1,9 @@
<!-- Code generated from the comments of the NIC struct in builder/vsphere/iso/step_create.go; DO NOT EDIT MANUALLY -->
- `network` (string) - Set the network in which the VM will be connected to. If no network is specified, `host`
must be specified to allow Packer to look for the available network.
- `network` (string) - Set the network in which the VM will be connected to. If no network is
specified, `host` must be specified to allow Packer to look for the
available network. If the network is inside a network folder in vCenter,
you need to provide the full path to the network.
- `mac_address` (string) - Set network card MAC address