From c171ebee5f88c977f055e1eb37080c88f2d29247 Mon Sep 17 00:00:00 2001 From: Jose Martinez Date: Thu, 26 Mar 2026 21:02:55 +0100 Subject: [PATCH] fix: remove unsupported interfaces_wan1_enabled from device_management_interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El campo no está expuesto en el provider CiscoDevNet/meraki v1.9.0. Solo se usan los campos de IP estática soportados por el recurso. Co-Authored-By: Claude Sonnet 4.6 --- modules/meraki-site/main.tf | 1 - modules/meraki-site/variables.tf | 1 - sites/BCN01-LAB/variables.tf | 1 - sites/BCN01-LAB/wan.auto.tfvars | 10 ++++------ 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/modules/meraki-site/main.tf b/modules/meraki-site/main.tf index e8962cf..afcb9e9 100755 --- a/modules/meraki-site/main.tf +++ b/modules/meraki-site/main.tf @@ -193,7 +193,6 @@ resource "meraki_device_management_interface" "mx_wan" { for_each = { for mx in var.mx_wan_uplinks : mx.name => mx } serial = local.device_serials[each.key] - interfaces_wan1_enabled = each.value.interfaces_wan1_enabled wan1_static_ip = each.value.wan1_static_ip wan1_static_subnet_mask = each.value.wan1_static_subnet_mask wan1_static_gateway_ip = each.value.wan1_static_gateway_ip diff --git a/modules/meraki-site/variables.tf b/modules/meraki-site/variables.tf index 38754a0..2b52c3e 100755 --- a/modules/meraki-site/variables.tf +++ b/modules/meraki-site/variables.tf @@ -188,7 +188,6 @@ variable "stack_routing_interfaces" { variable "mx_wan_uplinks" { type = list(object({ name = string # Nombre del dispositivo en el Dashboard - interfaces_wan1_enabled = optional(bool, true) wan1_static_ip = optional(string, null) wan1_static_subnet_mask = optional(string, null) wan1_static_gateway_ip = optional(string, null) diff --git a/sites/BCN01-LAB/variables.tf b/sites/BCN01-LAB/variables.tf index 81450bd..6c094be 100755 --- a/sites/BCN01-LAB/variables.tf +++ b/sites/BCN01-LAB/variables.tf @@ -198,7 +198,6 @@ variable "mx_warm_spare" { variable "mx_wan_uplinks" { type = list(object({ name = string # Nombre del dispositivo en el Dashboard - interfaces_wan1_enabled = optional(bool, true) wan1_static_ip = optional(string, null) wan1_static_subnet_mask = optional(string, null) wan1_static_gateway_ip = optional(string, null) diff --git a/sites/BCN01-LAB/wan.auto.tfvars b/sites/BCN01-LAB/wan.auto.tfvars index 71e1e1d..f2505ad 100644 --- a/sites/BCN01-LAB/wan.auto.tfvars +++ b/sites/BCN01-LAB/wan.auto.tfvars @@ -14,18 +14,16 @@ mx_warm_spare = { mx_wan_uplinks = [ { # MX Primary - name = "BCN01-F04-MX01" # TODO: ajustar al nombre real en el Dashboard - interfaces_wan1_enabled = true - wan1_static_ip = "213.229.159.145" + name = "BCN01-F04-MX01" # TODO: ajustar al nombre real en el Dashboard + wan1_static_ip = "213.229.159.145" wan1_static_subnet_mask = "255.255.255.240" # /28 wan1_static_gateway_ip = "213.229.159.147" wan1_static_dns = ["8.8.8.8", "8.8.4.4"] }, { # MX Spare (Warm Spare / HA) - name = "BCN01-F04-MX02" # TODO: ajustar al nombre real en el Dashboard - interfaces_wan1_enabled = true - wan1_static_ip = "213.229.159.146" + name = "BCN01-F04-MX02" # TODO: ajustar al nombre real en el Dashboard + wan1_static_ip = "213.229.159.146" wan1_static_subnet_mask = "255.255.255.240" # /28 wan1_static_gateway_ip = "213.229.159.147" wan1_static_dns = ["8.8.8.8", "8.8.4.4"]