Skip to content

Commit 2234ff3

Browse files
feat: Add ability to specify MTU for vlan_attachment submodule. (#29)
* Add ability to specify MTU for vlan_attachment submodule. * Updated Docs to include new mtu variable
1 parent 906d982 commit 2234ff3

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

modules/interconnect_attachment/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| description | An optional description of this resource | `string` | `null` | no |
1010
| interconnect | URL of the underlying Interconnect object that this attachment's traffic will traverse through. | `string` | n/a | yes |
1111
| interface | Interface to deploy for this attachment. | `any` | n/a | yes |
12+
| mtu | Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. Currently, only 1440 and 1500 are allowed. If not specified, the value will default to 1440. | `string` | `null` | no |
1213
| name | The name of the interconnect attachment | `string` | n/a | yes |
1314
| peer | BGP Peer for this attachment. | `any` | n/a | yes |
1415
| project | The project ID to deploy to | `string` | n/a | yes |

modules/interconnect_attachment/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ resource "google_compute_interconnect_attachment" "attachment" {
2424
type = var.type
2525
description = var.description
2626
bandwidth = var.bandwidth
27+
mtu = var.mtu
2728
candidate_subnets = var.candidate_subnets
2829
vlan_tag8021q = var.vlan_tag8021q
2930
}

modules/interconnect_attachment/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ variable "bandwidth" {
5757
default = "BPS_10G"
5858
}
5959

60+
variable "mtu" {
61+
type = string
62+
description = "Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. Currently, only 1440 and 1500 are allowed. If not specified, the value will default to 1440."
63+
default = null
64+
}
65+
6066
variable "description" {
6167
type = string
6268
description = "An optional description of this resource"

0 commit comments

Comments
 (0)