Skip to content

Commit 0419763

Browse files
treywelshfrousselet
authored andcommitted
F #477: doc: network_id is not required anymore
1 parent a7ed71b commit 0419763

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

website/docs/r/template.html.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ Minimum 1 item. Maximum 8 items.
156156

157157
`nic` supports the following arguments
158158

159-
* `network_id` - (Required) ID of the virtual network to attach to the virtual machine.
159+
* `network_id` - (Optional) ID of the virtual network to attach to the virtual machine.
160160
* `ip` - (Optional) IP of the virtual machine on this network.
161161
* `mac` - (Optional) MAC of the virtual machine on this network.
162162
* `model` - (Optional) Nic model driver. Example: `virtio`.
163163
* `physical_device` - (Optional) Physical device hosting the virtual network.
164164
* `security_groups` - (Optional) List of security group IDs to use on the virtual network.
165165
* `network_mode_auto` - (Optional) A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to.
166-
* `sched_requirements` - (Optional) A boolean expression to select virtual networks (evaluates to true) to attach the NIC.
167-
* `sched_rank` - (Optional) Arithmetic expression to sort the suitable Virtual Networks for this NIC.
166+
* `sched_requirements` - (Optional) A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when `network_mode_auto` is true.
167+
* `sched_rank` - (Optional) Arithmetic expression to sort the suitable Virtual Networks for this NIC, when `network_mode_auto` is true.
168168

169169
Minimum 1 item. Maximum 8 items.
170170

website/docs/r/virtual_machine.html.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,16 @@ A disk update will be triggered in adding or removing a `disk` section, or by a
144144

145145
`nic` supports the following arguments
146146

147-
* `network_id` - (Required) ID of the virtual network to attach to the virtual machine.
147+
* `network_id` - (Optional) ID of the virtual network to attach to the virtual machine.
148148
* `ip` - (Optional) IP of the virtual machine on this network.
149149
* `mac` - (Optional) MAC of the virtual machine on this network.
150150
* `model` - (Optional) Nic model driver. Example: `virtio`.
151151
* `virtio_queues` - (Optional) Virtio multi-queue size. Only if `model` is `virtio`.
152152
* `physical_device` - (Optional) Physical device hosting the virtual network.
153153
* `security_groups` - (Optional) List of security group IDs to use on the virtual network.
154-
* `network_mode_auto` - (Optional) A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to.
155-
* `sched_requirements` - (Optional) A boolean expression to select virtual networks (evaluates to true) to attach the NIC.
156-
* `sched_rank` - (Optional) Arithmetic expression to sort the suitable Virtual Networks for this NIC.
154+
* `network_mode_auto` - (Optional) A boolean letting the scheduler pick the Virtual Networks the VM NICs will be attached to. Can only be used at VM creation.
155+
* `sched_requirements` - (Optional) A boolean expression to select virtual networks (evaluates to true) to attach the NIC, when `network_mode_auto` is true. Can only be used at VM creation.
156+
* `sched_rank` - (Optional) Arithmetic expression to sort the suitable Virtual Networks for this NIC, when `network_mode_auto` is true. Can only be used at VM creation.
157157

158158
Minimum 1 item. Maximum 8 items.
159159

0 commit comments

Comments
 (0)