2020-04-13 14:28:50 -04:00
|
|
|
<!-- Code generated from the comments of the NIC struct in builder/vsphere/iso/step_create.go; DO NOT EDIT MANUALLY -->
|
2020-07-13 06:33:16 -04:00
|
|
|
|
2020-04-13 14:28:50 -04:00
|
|
|
Defines a Network Adapter
|
|
|
|
|
|
|
|
Example that creates two network adapters:
|
|
|
|
|
2020-08-05 19:23:52 +02:00
|
|
|
In JSON:
|
2020-04-13 14:28:50 -04:00
|
|
|
```json
|
|
|
|
"network_adapters": [
|
|
|
|
{
|
|
|
|
"network": "VM Network",
|
|
|
|
"network_card": "vmxnet3"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"network": "OtherNetwork",
|
|
|
|
"network_card": "vmxnet3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
```
|
2020-08-05 19:23:52 +02:00
|
|
|
In HCL2:
|
|
|
|
```hcl
|
|
|
|
network_adapters {
|
|
|
|
network = "VM Network"
|
|
|
|
network_card = "vmxnet3"
|
|
|
|
}
|
|
|
|
network_adapters {
|
|
|
|
network = "OtherNetwork"
|
|
|
|
network_card = "vmxnet3"
|
|
|
|
}
|
|
|
|
```
|