File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,6 +202,14 @@ Type: `string`
202202
203203The following input variables are optional (have default values):
204204
205+ ### <a name =" input_accelerated_networking_enabled " ></a > [ accelerated\_ networking\_ enabled] ( #input\_ accelerated\_ networking\_ enabled )
206+
207+ Description: Enable accelerated networking on the network interface created by this module. Only applies when create\_ network\_ interface is true.
208+
209+ Type: ` bool `
210+
211+ Default: ` false `
212+
205213### <a name =" input_additional_capabilities " ></a > [ additional\_ capabilities] ( #input\_ additional\_ capabilities )
206214
207215Description: Enable additional capabilities.
@@ -603,6 +611,14 @@ object({
603611
604612Default: ` null `
605613
614+ ### <a name =" input_ip_forwarding_enabled " ></a > [ ip\_ forwarding\_ enabled] ( #input\_ ip\_ forwarding\_ enabled )
615+
616+ Description: Enable ip forwarding on the network interface created by this module. Only applies when create\_ network\_ interface is true.
617+
618+ Type: ` bool `
619+
620+ Default: ` false `
621+
606622### <a name =" input_key_vault_id " ></a > [ key\_ vault\_ id] ( #input\_ key\_ vault\_ id )
607623
608624Description: The resource ID of the Azure Key Vault where the generated admin password or SSH private key should be stored as a secret.
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ resource "azurerm_network_interface" "this" {
3232
3333 dns_servers = var. dns_servers
3434
35+ accelerated_networking_enabled = var. accelerated_networking_enabled
36+ ip_forwarding_enabled = var. ip_forwarding_enabled
37+
3538 ip_configuration {
3639 name = " ipconfig1"
3740 private_ip_address = var. private_ip_address
Original file line number Diff line number Diff line change @@ -188,6 +188,18 @@ variable "create_network_interface" {
188188 default = true
189189}
190190
191+ variable "accelerated_networking_enabled" {
192+ description = " Enable accelerated networking on the network interface created by this module. Only applies when create_network_interface is true."
193+ type = bool
194+ default = false
195+ }
196+
197+ variable "ip_forwarding_enabled" {
198+ description = " Enable ip forwarding on the network interface created by this module. Only applies when create_network_interface is true."
199+ type = bool
200+ default = false
201+ }
202+
191203variable "create_public_ip_address" {
192204 description = " If set to `true` a Azure public IP address will be created and assigned to the default network interface."
193205 default = false
You can’t perform that action at this time.
0 commit comments