Skip to content

Commit 26507ba

Browse files
authored
fix: By default, accept standard API MTU configuration of 1460 (#226)
1 parent 355bd8b commit 26507ba

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Then perform the following commands on the root folder:
9797
| auto\_create\_subnetworks | When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources. | `bool` | `false` | no |
9898
| delete\_default\_internet\_gateway\_routes | If set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted | `bool` | `false` | no |
9999
| description | An optional description of this resource. The resource must be recreated to modify this field. | `string` | `""` | no |
100-
| mtu | The network MTU (default '1460'). Must be a value between 1460 and 1500 inclusive. | `number` | `1460` | no |
100+
| mtu | The network MTU. Must be a value between 1460 and 1500 inclusive. If set to 0 (meaning MTU is unset), the network will default to 1460 automatically. | `number` | `0` | no |
101101
| network\_name | The name of the network being created | `any` | n/a | yes |
102102
| project\_id | The ID of the project where this VPC will be created | `any` | n/a | yes |
103103
| routes | List of routes being created in this VPC | `list(map(string))` | `[]` | no |

modules/vpc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module "vpc" {
3131
| auto\_create\_subnetworks | When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources. | `bool` | `false` | no |
3232
| delete\_default\_internet\_gateway\_routes | If set, ensure that all routes within the network specified whose names begin with 'default-route' and with a next hop of 'default-internet-gateway' are deleted | `bool` | `false` | no |
3333
| description | An optional description of this resource. The resource must be recreated to modify this field. | `string` | `""` | no |
34-
| mtu | The network MTU (default '1460'). Must be a value between 1460 and 1500 inclusive. | `number` | `1460` | no |
34+
| mtu | The network MTU. Must be a value between 1460 and 1500 inclusive. If set to 0 (meaning MTU is unset), the network will default to 1460 automatically. | `number` | `0` | no |
3535
| network\_name | The name of the network being created | `any` | n/a | yes |
3636
| project\_id | The ID of the project where this VPC will be created | `any` | n/a | yes |
3737
| routing\_mode | The network routing mode (default 'GLOBAL') | `string` | `"GLOBAL"` | no |

modules/vpc/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ variable "delete_default_internet_gateway_routes" {
5454

5555
variable "mtu" {
5656
type = number
57-
description = "The network MTU (default '1460'). Must be a value between 1460 and 1500 inclusive."
58-
default = 1460
57+
description = "The network MTU. Must be a value between 1460 and 1500 inclusive. If set to 0 (meaning MTU is unset), the network will default to 1460 automatically."
58+
default = 0
5959
}

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ variable "auto_create_subnetworks" {
7272

7373
variable "mtu" {
7474
type = number
75-
description = "The network MTU (default '1460'). Must be a value between 1460 and 1500 inclusive."
76-
default = 1460
75+
description = "The network MTU. Must be a value between 1460 and 1500 inclusive. If set to 0 (meaning MTU is unset), the network will default to 1460 automatically."
76+
default = 0
7777
}

0 commit comments

Comments
 (0)