Skip to content

Commit b7bd35e

Browse files
added default value for minPortsPerVM field at "google_compute_router_nat" (#9712) (#6993)
* added default value for statis allocation * setting the default from API [upstream:3e85823b9bda72a1910ef6eabdf0b64ca6211de5] Signed-off-by: Modular Magician <[email protected]>
1 parent 52bb45e commit b7bd35e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.changelog/9712.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
compute: removed diff detection on `min_ports_per_vm` in `google_compute_router_nat` when the field is unset
3+
```

google-beta/services/compute/resource_compute_router_nat.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ This field can only be set when enableDynamicPortAllocation is enabled.`,
308308
},
309309
"min_ports_per_vm": {
310310
Type: schema.TypeInt,
311+
Computed: true,
311312
Optional: true,
312-
Description: `Minimum number of ports allocated to a VM from this NAT.`,
313+
Description: `Minimum number of ports allocated to a VM from this NAT. Defaults to 64 for static port allocation and 32 dynamic port allocation if not set.`,
313314
},
314315
"nat_ip_allocate_option": {
315316
Type: schema.TypeString,

website/docs/r/compute_router_nat.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ The following arguments are supported:
307307

308308
* `min_ports_per_vm` -
309309
(Optional)
310-
Minimum number of ports allocated to a VM from this NAT.
310+
Minimum number of ports allocated to a VM from this NAT. Defaults to 64 for static port allocation and 32 dynamic port allocation if not set.
311311

312312
* `max_ports_per_vm` -
313313
(Optional)

0 commit comments

Comments
 (0)