Skip to content

Commit 3f91c3f

Browse files
committed
PLT-1955= Fixed networkd required attributes
1 parent e02d47b commit 3f91c3f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

docs/resources/cluster_maas.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ Required:
183183
- `count` (Number) Number of nodes in the machine pool.
184184
- `instance_type` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--machine_pool--instance_type))
185185
- `name` (String) Name of the machine pool.
186-
- `network` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--machine_pool--network))
187186
- `placement` (Block List, Min: 1, Max: 1) (see [below for nested schema](#nestedblock--machine_pool--placement))
188187

189188
Optional:
@@ -193,6 +192,7 @@ Optional:
193192
- `control_plane_as_worker` (Boolean) Whether this machine pool is a control plane and a worker. Defaults to `false`.
194193
- `max` (Number) Maximum number of nodes in the machine pool. This is used for autoscaling the machine pool.
195194
- `min` (Number) Minimum number of nodes in the machine pool. This is used for autoscaling the machine pool.
195+
- `network` (Block List, Max: 1) (see [below for nested schema](#nestedblock--machine_pool--network))
196196
- `node` (Block List) (see [below for nested schema](#nestedblock--machine_pool--node))
197197
- `node_repave_interval` (Number) Minimum number of seconds node should be Ready, before the next node is selected for repave. Default value is `0`, Applicable only for worker pools.
198198
- `node_tags` (Set of String) Node tags to dynamically place nodes in a pool by using MAAS automatic tags. Specify the tag values that you want to apply to all nodes in the node pool.
@@ -209,29 +209,29 @@ Required:
209209
- `min_memory_mb` (Number) Minimum memory in MB required for the machine pool node.
210210

211211

212-
<a id="nestedblock--machine_pool--network"></a>
213-
### Nested Schema for `machine_pool.network`
212+
<a id="nestedblock--machine_pool--placement"></a>
213+
### Nested Schema for `machine_pool.placement`
214214

215215
Required:
216216

217-
- `network_name` (String) The name of the network in which VMs are created/located.
217+
- `resource_pool` (String) The name of the resource pool in the Maas cloud.
218218

219-
Optional:
219+
Read-Only:
220220

221-
- `parent_pool_uid` (String) The UID of the parent pool which allocates IPs for this IPPool.
222-
- `static_ip` (Boolean) Whether to use static IP. Default is `false`.
221+
- `id` (String) This is a computed(read-only) ID of the placement that is used to connect to the Maas cloud.
223222

224223

225-
<a id="nestedblock--machine_pool--placement"></a>
226-
### Nested Schema for `machine_pool.placement`
224+
<a id="nestedblock--machine_pool--network"></a>
225+
### Nested Schema for `machine_pool.network`
227226

228227
Required:
229228

230-
- `resource_pool` (String) The name of the resource pool in the Maas cloud.
229+
- `network_name` (String) The name of the network in which VMs are created/located.
231230

232-
Read-Only:
231+
Optional:
233232

234-
- `id` (String) This is a computed(read-only) ID of the placement that is used to connect to the Maas cloud.
233+
- `parent_pool_uid` (String) The UID of the parent pool which allocates IPs for this IPPool.
234+
- `static_ip` (Boolean) Whether to use static IP. Default is `false`.
235235

236236

237237
<a id="nestedblock--machine_pool--node"></a>

spectrocloud/resource_cluster_maas.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func resourceClusterMaas() *schema.Resource {
282282
},
283283
"network": {
284284
Type: schema.TypeList,
285-
Required: true,
285+
Optional: true,
286286
MaxItems: 1,
287287
Elem: &schema.Resource{
288288
Schema: map[string]*schema.Schema{

0 commit comments

Comments
 (0)