diff --git a/meraki_networks.tf b/meraki_networks.tf index 71404fc..5c893fb 100644 --- a/meraki_networks.tf +++ b/meraki_networks.tf @@ -19,47 +19,47 @@ resource "meraki_network_group_policy" "net_group_policies" { for_each = { for i, v in local.networks_group_policies : i => v } network_id = each.value.network_id - name = try(each.value.data.name, local.defaults.meraki.networks.group_policies.name, null) - scheduling_enabled = try(each.value.data.scheduling.enabled, local.defaults.meraki.networks.group_policies.scheduling.enabled, null) - scheduling_monday_active = try(each.value.data.scheduling.monday.active, local.defaults.meraki.networks.group_policies.scheduling.monday.active, null) - scheduling_monday_from = try(each.value.data.scheduling.monday.from, local.defaults.meraki.networks.group_policies.scheduling.monday.from, null) - scheduling_monday_to = try(each.value.data.scheduling.monday.to, local.defaults.meraki.networks.group_policies.scheduling.monday.to, null) - scheduling_tuesday_active = try(each.value.data.scheduling.tuesday.active, local.defaults.meraki.networks.group_policies.scheduling.tuesday.active, null) - scheduling_tuesday_from = try(each.value.data.scheduling.tuesday.from, local.defaults.meraki.networks.group_policies.scheduling.tuesday.from, null) - scheduling_tuesday_to = try(each.value.data.scheduling.tuesday.to, local.defaults.meraki.networks.group_policies.scheduling.tuesday.to, null) - scheduling_wednesday_active = try(each.value.data.scheduling.wednesday.active, local.defaults.meraki.networks.group_policies.scheduling.wednesday.active, null) - scheduling_wednesday_from = try(each.value.data.scheduling.wednesday.from, local.defaults.meraki.networks.group_policies.scheduling.wednesday.from, null) - scheduling_wednesday_to = try(each.value.data.scheduling.wednesday.to, local.defaults.meraki.networks.group_policies.scheduling.wednesday.to, null) - scheduling_thursday_active = try(each.value.data.scheduling.thursday.active, local.defaults.meraki.networks.group_policies.scheduling.thursday.active, null) - scheduling_thursday_from = try(each.value.data.scheduling.thursday.from, local.defaults.meraki.networks.group_policies.scheduling.thursday.from, null) - scheduling_thursday_to = try(each.value.data.scheduling.thursday.to, local.defaults.meraki.networks.group_policies.scheduling.thursday.to, null) - scheduling_friday_active = try(each.value.data.scheduling.friday.active, local.defaults.meraki.networks.group_policies.scheduling.friday.active, null) - scheduling_friday_from = try(each.value.data.scheduling.friday.from, local.defaults.meraki.networks.group_policies.scheduling.friday.from, null) - scheduling_friday_to = try(each.value.data.scheduling.friday.to, local.defaults.meraki.networks.group_policies.scheduling.friday.to, null) - scheduling_saturday_active = try(each.value.data.scheduling.saturday.active, local.defaults.meraki.networks.group_policies.scheduling.saturday.active, null) - scheduling_saturday_from = try(each.value.data.scheduling.saturday.from, local.defaults.meraki.networks.group_policies.scheduling.saturday.from, null) - scheduling_saturday_to = try(each.value.data.scheduling.saturday.to, local.defaults.meraki.networks.group_policies.scheduling.saturday.to, null) - scheduling_sunday_active = try(each.value.data.scheduling.sunday.active, local.defaults.meraki.networks.group_policies.scheduling.sunday.active, null) - scheduling_sunday_from = try(each.value.data.scheduling.sunday.from, local.defaults.meraki.networks.group_policies.scheduling.sunday.from, null) - scheduling_sunday_to = try(each.value.data.scheduling.sunday.to, local.defaults.meraki.networks.group_policies.scheduling.sunday.to, null) - bandwidth_settings = try(each.value.data.bandwidth.settings, local.defaults.meraki.networks.group_policies.bandwidth.settings, null) - bandwidth_limit_up = try(each.value.data.bandwidth.bandwidth_limits.limit_up, local.defaults.meraki.networks.group_policies.bandwidth.bandwidth_limits.limit_up, null) - bandwidth_limit_down = try(each.value.data.bandwidth.bandwidth_limits.limit_down, local.defaults.meraki.networks.group_policies.bandwidth.bandwidth_limits.limit_down, null) - firewall_and_traffic_shaping_settings = try(each.value.data.firewall_and_traffic_shaping.settings, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.settings, null) - traffic_shaping_rules = try(each.value.data.firewall_and_traffic_shaping.traffic_shaping_rules, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.traffic_shaping_rules, null) - l3_firewall_rules = try(each.value.data.firewall_and_traffic_shaping.l3_firewall_rules, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.l3_firewall_rules, null) - l7_firewall_rules = try(each.value.data.firewall_and_traffic_shaping.l7_firewall_rules, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.l7_firewall_rules, null) - content_filtering_allowed_url_patterns_settings = try(each.value.data.content_filtering.allowed_url_patterns.settings, local.defaults.meraki.networks.group_policies.content_filtering.allowed_url_patterns.settings, null) - content_filtering_allowed_url_patterns = try(each.value.data.content_filtering.allowed_url_patterns.patterns, local.defaults.meraki.networks.group_policies.content_filtering.allowed_url_patterns.patterns, null) - content_filtering_blocked_url_patterns_settings = try(each.value.data.content_filtering.blocked_url_patterns.settings, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_patterns.settings, null) - content_filtering_blocked_url_patterns = try(each.value.data.content_filtering.blocked_url_patterns.patterns, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_patterns.patterns, null) + name = try(each.value.data.name, local.defaults.meraki.networks.group_policies.name, null) + scheduling_enabled = try(each.value.data.scheduling.enabled, local.defaults.meraki.networks.group_policies.scheduling.enabled, null) + scheduling_monday_active = try(each.value.data.scheduling.monday.active, local.defaults.meraki.networks.group_policies.scheduling.monday.active, null) + scheduling_monday_from = try(each.value.data.scheduling.monday.from, local.defaults.meraki.networks.group_policies.scheduling.monday.from, null) + scheduling_monday_to = try(each.value.data.scheduling.monday.to, local.defaults.meraki.networks.group_policies.scheduling.monday.to, null) + scheduling_tuesday_active = try(each.value.data.scheduling.tuesday.active, local.defaults.meraki.networks.group_policies.scheduling.tuesday.active, null) + scheduling_tuesday_from = try(each.value.data.scheduling.tuesday.from, local.defaults.meraki.networks.group_policies.scheduling.tuesday.from, null) + scheduling_tuesday_to = try(each.value.data.scheduling.tuesday.to, local.defaults.meraki.networks.group_policies.scheduling.tuesday.to, null) + scheduling_wednesday_active = try(each.value.data.scheduling.wednesday.active, local.defaults.meraki.networks.group_policies.scheduling.wednesday.active, null) + scheduling_wednesday_from = try(each.value.data.scheduling.wednesday.from, local.defaults.meraki.networks.group_policies.scheduling.wednesday.from, null) + scheduling_wednesday_to = try(each.value.data.scheduling.wednesday.to, local.defaults.meraki.networks.group_policies.scheduling.wednesday.to, null) + scheduling_thursday_active = try(each.value.data.scheduling.thursday.active, local.defaults.meraki.networks.group_policies.scheduling.thursday.active, null) + scheduling_thursday_from = try(each.value.data.scheduling.thursday.from, local.defaults.meraki.networks.group_policies.scheduling.thursday.from, null) + scheduling_thursday_to = try(each.value.data.scheduling.thursday.to, local.defaults.meraki.networks.group_policies.scheduling.thursday.to, null) + scheduling_friday_active = try(each.value.data.scheduling.friday.active, local.defaults.meraki.networks.group_policies.scheduling.friday.active, null) + scheduling_friday_from = try(each.value.data.scheduling.friday.from, local.defaults.meraki.networks.group_policies.scheduling.friday.from, null) + scheduling_friday_to = try(each.value.data.scheduling.friday.to, local.defaults.meraki.networks.group_policies.scheduling.friday.to, null) + scheduling_saturday_active = try(each.value.data.scheduling.saturday.active, local.defaults.meraki.networks.group_policies.scheduling.saturday.active, null) + scheduling_saturday_from = try(each.value.data.scheduling.saturday.from, local.defaults.meraki.networks.group_policies.scheduling.saturday.from, null) + scheduling_saturday_to = try(each.value.data.scheduling.saturday.to, local.defaults.meraki.networks.group_policies.scheduling.saturday.to, null) + scheduling_sunday_active = try(each.value.data.scheduling.sunday.active, local.defaults.meraki.networks.group_policies.scheduling.sunday.active, null) + scheduling_sunday_from = try(each.value.data.scheduling.sunday.from, local.defaults.meraki.networks.group_policies.scheduling.sunday.from, null) + scheduling_sunday_to = try(each.value.data.scheduling.sunday.to, local.defaults.meraki.networks.group_policies.scheduling.sunday.to, null) + bandwidth_settings = try(each.value.data.bandwidth.settings, local.defaults.meraki.networks.group_policies.bandwidth.settings, null) + bandwidth_limit_up = try(each.value.data.bandwidth.bandwidth_limits.limit_up, local.defaults.meraki.networks.group_policies.bandwidth.bandwidth_limits.limit_up, null) + bandwidth_limit_down = try(each.value.data.bandwidth.bandwidth_limits.limit_down, local.defaults.meraki.networks.group_policies.bandwidth.bandwidth_limits.limit_down, null) + firewall_and_traffic_shaping_settings = try(each.value.data.firewall_and_traffic_shaping.settings, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.settings, null) + traffic_shaping_rules = try(each.value.data.firewall_and_traffic_shaping.traffic_shaping_rules, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.traffic_shaping_rules, null) + l3_firewall_rules = try(each.value.data.firewall_and_traffic_shaping.l3_firewall_rules, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.l3_firewall_rules, null) + l7_firewall_rules = try(each.value.data.firewall_and_traffic_shaping.l7_firewall_rules, local.defaults.meraki.networks.group_policies.firewall_and_traffic_shaping.l7_firewall_rules, null) + content_filtering_allowed_url_patterns_settings = try(each.value.data.content_filtering.allowed_url_patterns.settings, local.defaults.meraki.networks.group_policies.content_filtering.allowed_url_patterns.settings, null) + content_filtering_allowed_url_patterns = try(each.value.data.content_filtering.allowed_url_patterns.patterns, local.defaults.meraki.networks.group_policies.content_filtering.allowed_url_patterns.patterns, null) + content_filtering_blocked_url_patterns_settings = try(each.value.data.content_filtering.blocked_url_patterns.settings, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_patterns.settings, null) + content_filtering_blocked_url_patterns = try(each.value.data.content_filtering.blocked_url_patterns.patterns, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_patterns.patterns, null) content_filtering_blocked_url_categories_settings = try(each.value.data.content_filtering.blocked_url_categories.settings, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_categories.settings, null) - content_filtering_blocked_url_categories = try(each.value.data.content_filtering.blocked_url_categories.categories, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_categories.categories, null) - splash_auth_settings = try(each.value.data.splash_auth_settings, local.defaults.meraki.networks.group_policies.splash_auth_settings, null) - vlan_tagging_settings = try(each.value.data.vlan_tagging.settings, local.defaults.meraki.networks.group_policies.vlan_tagging.settings, null) - vlan_tagging_vlan_id = try(each.value.data.vlan_tagging.vlan_id, local.defaults.meraki.networks.group_policies.vlan_tagging.vlan_id, null) - bonjour_forwarding_settings = try(each.value.data.bonjour_forwarding.settings, local.defaults.meraki.networks.group_policies.bonjour_forwarding.settings, null) - bonjour_forwarding_rules = try(each.value.data.bonjour_forwarding.rules, local.defaults.meraki.networks.group_policies.bonjour_forwarding.rules, null) + content_filtering_blocked_url_categories = try(each.value.data.content_filtering.blocked_url_categories.categories, local.defaults.meraki.networks.group_policies.content_filtering.blocked_url_categories.categories, null) + splash_auth_settings = try(each.value.data.splash_auth_settings, local.defaults.meraki.networks.group_policies.splash_auth_settings, null) + vlan_tagging_settings = try(each.value.data.vlan_tagging.settings, local.defaults.meraki.networks.group_policies.vlan_tagging.settings, null) + vlan_tagging_vlan_id = try(each.value.data.vlan_tagging.vlan_id, local.defaults.meraki.networks.group_policies.vlan_tagging.vlan_id, null) + bonjour_forwarding_settings = try(each.value.data.bonjour_forwarding.settings, local.defaults.meraki.networks.group_policies.bonjour_forwarding.settings, null) + bonjour_forwarding_rules = try(each.value.data.bonjour_forwarding.rules, local.defaults.meraki.networks.group_policies.bonjour_forwarding.rules, null) } @@ -83,12 +83,12 @@ resource "meraki_network_settings" "net_settings" { for_each = { for i, v in local.networks_settings : i => v } network_id = each.value.network_id - local_status_page_enabled = try(each.value.data.local_status_page_enabled, local.defaults.meraki.networks.settings.local_status_page_enabled, null) - remote_status_page_enabled = try(each.value.data.remote_status_page_enabled, local.defaults.meraki.networks.settings.remote_status_page_enabled, null) - local_status_page_authentication_enabled = try(each.value.data.local_status_page.authentication.enabled, local.defaults.meraki.networks.settings.local_status_page.authentication.enabled, null) + local_status_page_enabled = try(each.value.data.local_status_page_enabled, local.defaults.meraki.networks.settings.local_status_page_enabled, null) + remote_status_page_enabled = try(each.value.data.remote_status_page_enabled, local.defaults.meraki.networks.settings.remote_status_page_enabled, null) + local_status_page_authentication_enabled = try(each.value.data.local_status_page.authentication.enabled, local.defaults.meraki.networks.settings.local_status_page.authentication.enabled, null) local_status_page_authentication_password = try(each.value.data.local_status_page.authentication.password, local.defaults.meraki.networks.settings.local_status_page.authentication.password, null) - secure_port_enabled = try(each.value.data.secure_port.enabled, local.defaults.meraki.networks.settings.secure_port.enabled, null) - named_vlans_enabled = try(each.value.data.named_vlans.enabled, local.defaults.meraki.networks.settings.named_vlans.enabled, null) + secure_port_enabled = try(each.value.data.secure_port.enabled, local.defaults.meraki.networks.settings.secure_port.enabled, null) + named_vlans_enabled = try(each.value.data.named_vlans.enabled, local.defaults.meraki.networks.settings.named_vlans.enabled, null) } @@ -111,9 +111,9 @@ resource "meraki_network_snmp" "net_snmp" { for_each = { for i, v in local.networks_snmp : i => v } network_id = each.value.network_id - access = try(each.value.data.access, local.defaults.meraki.networks.snmp.access, null) + access = try(each.value.data.access, local.defaults.meraki.networks.snmp.access, null) community_string = try(each.value.data.community_string, local.defaults.meraki.networks.snmp.community_string, null) - users = try(each.value.data.users, local.defaults.meraki.networks.snmp.users, null) + users = try(each.value.data.users, local.defaults.meraki.networks.snmp.users, null) } @@ -161,9 +161,9 @@ resource "meraki_network_vlan_profile" "net_vlan_profiles" { for_each = { for i, v in local.networks_vlan_profiles : i => v } network_id = each.value.network_id - iname = each.value.data.iname - name = try(each.value.data.name, local.defaults.meraki.networks.vlan_profiles.name, null) - vlan_names = try(each.value.data.vlan_names, local.defaults.meraki.networks.vlan_profiles.vlan_names, []) + iname = each.value.data.iname + name = try(each.value.data.name, local.defaults.meraki.networks.vlan_profiles.name, null) + vlan_names = try(each.value.data.vlan_names, local.defaults.meraki.networks.vlan_profiles.vlan_names, []) vlan_groups = try(each.value.data.vlan_groups, local.defaults.meraki.networks.vlan_profiles.vlan_groups, []) } diff --git a/meraki_switches.tf b/meraki_switches.tf index 63cac21..09a4b51 100644 --- a/meraki_switches.tf +++ b/meraki_switches.tf @@ -38,29 +38,29 @@ resource "meraki_switch_access_policy" "net_switch_access_policy" { for_each = { for i, v in local.networks_switch_access_policies : i => v } network_id = each.value.network_id - name = try(each.value.data.name, local.defaults.meraki.networks.switch_access_policies.name, null) - radius_servers = try(each.value.data.radius_servers, local.defaults.meraki.networks.switch_access_policies.radius_servers, null) - radius_critical_auth_data_vlan_id = try(each.value.data.radius.critical_auth.data_vlan_id, local.defaults.meraki.networks.switch_access_policies.radius.critical_auth.data_vlan_id, null) - radius_critical_auth_voice_vlan_id = try(each.value.data.radius.critical_auth.voice_vlan_id, local.defaults.meraki.networks.switch_access_policies.radius.critical_auth.voice_vlan_id, null) + name = try(each.value.data.name, local.defaults.meraki.networks.switch_access_policies.name, null) + radius_servers = try(each.value.data.radius_servers, local.defaults.meraki.networks.switch_access_policies.radius_servers, null) + radius_critical_auth_data_vlan_id = try(each.value.data.radius.critical_auth.data_vlan_id, local.defaults.meraki.networks.switch_access_policies.radius.critical_auth.data_vlan_id, null) + radius_critical_auth_voice_vlan_id = try(each.value.data.radius.critical_auth.voice_vlan_id, local.defaults.meraki.networks.switch_access_policies.radius.critical_auth.voice_vlan_id, null) radius_critical_auth_suspend_port_bounce = try(each.value.data.radius.critical_auth.suspend_port_bounce, local.defaults.meraki.networks.switch_access_policies.radius.critical_auth.suspend_port_bounce, null) - radius_failed_auth_vlan_id = try(each.value.data.radius.failed_auth_vlan_id, local.defaults.meraki.networks.switch_access_policies.radius.failed_auth_vlan_id, null) - radius_re_authentication_interval = try(each.value.data.radius.re_authentication_interval, local.defaults.meraki.networks.switch_access_policies.radius.re_authentication_interval, null) - radius_cache_enabled = try(each.value.data.radius.cache.enabled, local.defaults.meraki.networks.switch_access_policies.radius.cache.enabled, null) - radius_cache_timeout = try(each.value.data.radius.cache.timeout, local.defaults.meraki.networks.switch_access_policies.radius.cache.timeout, null) - guest_port_bouncing = try(each.value.data.guest_port_bouncing, local.defaults.meraki.networks.switch_access_policies.guest_port_bouncing, null) - radius_testing_enabled = try(each.value.data.radius_testing_enabled, local.defaults.meraki.networks.switch_access_policies.radius_testing_enabled, null) - radius_coa_support_enabled = try(each.value.data.radius_coa_support_enabled, local.defaults.meraki.networks.switch_access_policies.radius_coa_support_enabled, null) - radius_accounting_enabled = try(each.value.data.radius_accounting_enabled, local.defaults.meraki.networks.switch_access_policies.radius_accounting_enabled, null) - radius_accounting_servers = try(each.value.data.radius_accounting_servers, local.defaults.meraki.networks.switch_access_policies.radius_accounting_servers, null) - radius_group_attribute = try(each.value.data.radius_group_attribute, local.defaults.meraki.networks.switch_access_policies.radius_group_attribute, null) - host_mode = try(each.value.data.host_mode, local.defaults.meraki.networks.switch_access_policies.host_mode, null) - access_policy_type = try(each.value.data.access_policy_type, local.defaults.meraki.networks.switch_access_policies.access_policy_type, null) - increase_access_speed = try(each.value.data.increase_access_speed, local.defaults.meraki.networks.switch_access_policies.increase_access_speed, null) - guest_vlan_id = try(each.value.data.guest_vlan_id, local.defaults.meraki.networks.switch_access_policies.guest_vlan_id, null) - dot1x_control_direction = try(each.value.data.dot1x.control_direction, local.defaults.meraki.networks.switch_access_policies.dot1x.control_direction, null) - voice_vlan_clients = try(each.value.data.voice_vlan_clients, local.defaults.meraki.networks.switch_access_policies.voice_vlan_clients, null) - url_redirect_walled_garden_enabled = try(each.value.data.url_redirect_walled_garden_enabled, local.defaults.meraki.networks.switch_access_policies.url_redirect_walled_garden_enabled, null) - url_redirect_walled_garden_ranges = try(each.value.data.url_redirect_walled_garden_ranges, local.defaults.meraki.networks.switch_access_policies.url_redirect_walled_garden_ranges, null) + radius_failed_auth_vlan_id = try(each.value.data.radius.failed_auth_vlan_id, local.defaults.meraki.networks.switch_access_policies.radius.failed_auth_vlan_id, null) + radius_re_authentication_interval = try(each.value.data.radius.re_authentication_interval, local.defaults.meraki.networks.switch_access_policies.radius.re_authentication_interval, null) + radius_cache_enabled = try(each.value.data.radius.cache.enabled, local.defaults.meraki.networks.switch_access_policies.radius.cache.enabled, null) + radius_cache_timeout = try(each.value.data.radius.cache.timeout, local.defaults.meraki.networks.switch_access_policies.radius.cache.timeout, null) + guest_port_bouncing = try(each.value.data.guest_port_bouncing, local.defaults.meraki.networks.switch_access_policies.guest_port_bouncing, null) + radius_testing_enabled = try(each.value.data.radius_testing_enabled, local.defaults.meraki.networks.switch_access_policies.radius_testing_enabled, null) + radius_coa_support_enabled = try(each.value.data.radius_coa_support_enabled, local.defaults.meraki.networks.switch_access_policies.radius_coa_support_enabled, null) + radius_accounting_enabled = try(each.value.data.radius_accounting_enabled, local.defaults.meraki.networks.switch_access_policies.radius_accounting_enabled, null) + radius_accounting_servers = try(each.value.data.radius_accounting_servers, local.defaults.meraki.networks.switch_access_policies.radius_accounting_servers, null) + radius_group_attribute = try(each.value.data.radius_group_attribute, local.defaults.meraki.networks.switch_access_policies.radius_group_attribute, null) + host_mode = try(each.value.data.host_mode, local.defaults.meraki.networks.switch_access_policies.host_mode, null) + access_policy_type = try(each.value.data.access_policy_type, local.defaults.meraki.networks.switch_access_policies.access_policy_type, null) + increase_access_speed = try(each.value.data.increase_access_speed, local.defaults.meraki.networks.switch_access_policies.increase_access_speed, null) + guest_vlan_id = try(each.value.data.guest_vlan_id, local.defaults.meraki.networks.switch_access_policies.guest_vlan_id, null) + dot1x_control_direction = try(each.value.data.dot1x.control_direction, local.defaults.meraki.networks.switch_access_policies.dot1x.control_direction, null) + voice_vlan_clients = try(each.value.data.voice_vlan_clients, local.defaults.meraki.networks.switch_access_policies.voice_vlan_clients, null) + url_redirect_walled_garden_enabled = try(each.value.data.url_redirect_walled_garden_enabled, local.defaults.meraki.networks.switch_access_policies.url_redirect_walled_garden_enabled, null) + url_redirect_walled_garden_ranges = try(each.value.data.url_redirect_walled_garden_ranges, local.defaults.meraki.networks.switch_access_policies.url_redirect_walled_garden_ranges, null) } @@ -84,10 +84,10 @@ resource "meraki_switch_alternate_management_interface" "net_switch_alternate_ma for_each = { for i, v in local.networks_switch_alternate_management_interface : i => v } network_id = each.value.network_id - enabled = try(each.value.data.enabled, local.defaults.meraki.networks.switch_alternate_management_interface.enabled, null) - vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.switch_alternate_management_interface.vlan_id, null) + enabled = try(each.value.data.enabled, local.defaults.meraki.networks.switch_alternate_management_interface.enabled, null) + vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.switch_alternate_management_interface.vlan_id, null) protocols = try(each.value.data.protocols, local.defaults.meraki.networks.switch_alternate_management_interface.protocols, null) - switches = try(each.value.data.switches, local.defaults.meraki.networks.switch_alternate_management_interface.switches, null) + switches = try(each.value.data.switches, local.defaults.meraki.networks.switch_alternate_management_interface.switches, null) } @@ -110,10 +110,10 @@ resource "meraki_switch_dhcp_server_policy" "net_switch_dhcp_server_policy" { for_each = { for i, v in local.networks_switch_dhcp_server_policy : i => v } network_id = each.value.network_id - alerts_email_enabled = try(each.value.data.alerts.email.enabled, local.defaults.meraki.networks.switch_dhcp_server_policy.alerts.email.enabled, null) - default_policy = try(each.value.data.default_policy, local.defaults.meraki.networks.switch_dhcp_server_policy.default_policy, null) - allowed_servers = try(each.value.data.allowed_servers, local.defaults.meraki.networks.switch_dhcp_server_policy.allowed_servers, null) - blocked_servers = try(each.value.data.blocked_servers, local.defaults.meraki.networks.switch_dhcp_server_policy.blocked_servers, null) + alerts_email_enabled = try(each.value.data.alerts.email.enabled, local.defaults.meraki.networks.switch_dhcp_server_policy.alerts.email.enabled, null) + default_policy = try(each.value.data.default_policy, local.defaults.meraki.networks.switch_dhcp_server_policy.default_policy, null) + allowed_servers = try(each.value.data.allowed_servers, local.defaults.meraki.networks.switch_dhcp_server_policy.allowed_servers, null) + blocked_servers = try(each.value.data.blocked_servers, local.defaults.meraki.networks.switch_dhcp_server_policy.blocked_servers, null) arp_inspection_enabled = try(each.value.data.arp_inspection.enabled, local.defaults.meraki.networks.switch_dhcp_server_policy.arp_inspection.enabled, null) } @@ -138,10 +138,10 @@ resource "meraki_switch_dhcp_server_policy_arp_inspection_trusted_server" "net_s for_each = { for i, v in local.networks_switch_dhcp_server_policy_arp_inspection_trusted_servers : i => v } network_id = each.value.network_id - mac = try(each.value.data.mac, local.defaults.meraki.networks.switch_dhcp_server_policy_arp_inspection_trusted_servers.mac, null) - vlan = try(each.value.data.vlan, local.defaults.meraki.networks.switch_dhcp_server_policy_arp_inspection_trusted_servers.vlan, null) + mac = try(each.value.data.mac, local.defaults.meraki.networks.switch_dhcp_server_policy_arp_inspection_trusted_servers.mac, null) + vlan = try(each.value.data.vlan, local.defaults.meraki.networks.switch_dhcp_server_policy_arp_inspection_trusted_servers.vlan, null) ipv4_address = try(each.value.data.ipv4.address, local.defaults.meraki.networks.switch_dhcp_server_policy_arp_inspection_trusted_servers.ipv4.address, null) -//TODO @mcparaf missing Trusted Server name: Check with Marcin + //TODO @mcparaf missing Trusted Server name: Check with Marcin } locals { @@ -163,7 +163,7 @@ resource "meraki_switch_dscp_to_cos_mappings" "net_switch_dscp_to_cos_mappings" mappings = try(each.value.data.mappings, local.defaults.meraki.networks.switch_dscp_to_cos_mappings.mappings, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -189,10 +189,10 @@ resource "meraki_switch_link_aggregation" "net_switch_link_aggregation" { for_each = { for i, v in local.networks_switch_link_aggregations : i => v } network_id = each.value.network_id - switch_ports = try(each.value.data.switch_ports, local.defaults.meraki.networks.networks_switch_link_aggregations.switch_ports, null) + switch_ports = try(each.value.data.switch_ports, local.defaults.meraki.networks.networks_switch_link_aggregations.switch_ports, null) switch_profile_ports = try(each.value.data.switch_profile_ports, local.defaults.meraki.networks.networks_switch_link_aggregations.switch_profile_ports, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -217,9 +217,9 @@ resource "meraki_switch_mtu" "net_switch_mtu" { network_id = each.value.network_id default_mtu_size = try(each.value.data.default_mtu_size, local.defaults.meraki.networks.networks_switch_mtu.default_mtu_size, null) - overrides = try(each.value.data.overrides, local.defaults.meraki.networks.networks_switch_mtu.overrides, null) + overrides = try(each.value.data.overrides, local.defaults.meraki.networks.networks_switch_mtu.overrides, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -246,30 +246,30 @@ resource "meraki_switch_port_schedule" "net_switch_port_schedules" { for_each = { for i, v in local.networks_switch_port_schedules : i => v } network_id = each.value.network_id - name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_port_schedules.name, null) - port_schedule_monday_active = try(each.value.data.port_schedule.monday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.monday.active, null) - port_schedule_monday_from = try(each.value.data.port_schedule.monday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.monday.from, null) - port_schedule_monday_to = try(each.value.data.port_schedule.monday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.monday.to, null) - port_schedule_tuesday_active = try(each.value.data.port_schedule.tuesday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.tuesday.active, null) - port_schedule_tuesday_from = try(each.value.data.port_schedule.tuesday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.tuesday.from, null) - port_schedule_tuesday_to = try(each.value.data.port_schedule.tuesday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.tuesday.to, null) + name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_port_schedules.name, null) + port_schedule_monday_active = try(each.value.data.port_schedule.monday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.monday.active, null) + port_schedule_monday_from = try(each.value.data.port_schedule.monday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.monday.from, null) + port_schedule_monday_to = try(each.value.data.port_schedule.monday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.monday.to, null) + port_schedule_tuesday_active = try(each.value.data.port_schedule.tuesday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.tuesday.active, null) + port_schedule_tuesday_from = try(each.value.data.port_schedule.tuesday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.tuesday.from, null) + port_schedule_tuesday_to = try(each.value.data.port_schedule.tuesday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.tuesday.to, null) port_schedule_wednesday_active = try(each.value.data.port_schedule.wednesday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.wednesday.active, null) - port_schedule_wednesday_from = try(each.value.data.port_schedule.wednesday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.wednesday.from, null) - port_schedule_wednesday_to = try(each.value.data.port_schedule.wednesday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.wednesday.to, null) - port_schedule_thursday_active = try(each.value.data.port_schedule.thursday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.thursday.active, null) - port_schedule_thursday_from = try(each.value.data.port_schedule.thursday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.thursday.from, null) - port_schedule_thursday_to = try(each.value.data.port_schedule.thursday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.thursday.to, null) - port_schedule_friday_active = try(each.value.data.port_schedule.friday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.friday.active, null) - port_schedule_friday_from = try(each.value.data.port_schedule.friday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.friday.from, null) - port_schedule_friday_to = try(each.value.data.port_schedule.friday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.friday.to, null) - port_schedule_saturday_active = try(each.value.data.port_schedule.saturday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.saturday.active, null) - port_schedule_saturday_from = try(each.value.data.port_schedule.saturday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.saturday.from, null) - port_schedule_saturday_to = try(each.value.data.port_schedule.saturday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.saturday.to, null) - port_schedule_sunday_active = try(each.value.data.port_schedule.sunday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.sunday.active, null) - port_schedule_sunday_from = try(each.value.data.port_schedule.sunday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.sunday.from, null) - port_schedule_sunday_to = try(each.value.data.port_schedule.sunday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.sunday.to, null) + port_schedule_wednesday_from = try(each.value.data.port_schedule.wednesday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.wednesday.from, null) + port_schedule_wednesday_to = try(each.value.data.port_schedule.wednesday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.wednesday.to, null) + port_schedule_thursday_active = try(each.value.data.port_schedule.thursday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.thursday.active, null) + port_schedule_thursday_from = try(each.value.data.port_schedule.thursday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.thursday.from, null) + port_schedule_thursday_to = try(each.value.data.port_schedule.thursday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.thursday.to, null) + port_schedule_friday_active = try(each.value.data.port_schedule.friday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.friday.active, null) + port_schedule_friday_from = try(each.value.data.port_schedule.friday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.friday.from, null) + port_schedule_friday_to = try(each.value.data.port_schedule.friday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.friday.to, null) + port_schedule_saturday_active = try(each.value.data.port_schedule.saturday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.saturday.active, null) + port_schedule_saturday_from = try(each.value.data.port_schedule.saturday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.saturday.from, null) + port_schedule_saturday_to = try(each.value.data.port_schedule.saturday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.saturday.to, null) + port_schedule_sunday_active = try(each.value.data.port_schedule.sunday.active, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.sunday.active, null) + port_schedule_sunday_from = try(each.value.data.port_schedule.sunday.from, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.sunday.from, null) + port_schedule_sunday_to = try(each.value.data.port_schedule.sunday.to, local.defaults.meraki.networks.networks_switch_port_schedules.port_schedule.sunday.to, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -295,15 +295,15 @@ resource "meraki_switch_qos_rule" "net_switch_qos_rule" { for_each = { for i, v in local.networks_switch_qos_rules : i => v } network_id = each.value.network_id - vlan = try(each.value.data.vlan, local.defaults.meraki.networks.networks_switch_qos_rules.vlan, null) - protocol = try(each.value.data.protocol, local.defaults.meraki.networks.networks_switch_qos_rules.protocol, null) - src_port = try(each.value.data.src_port, local.defaults.meraki.networks.networks_switch_qos_rules.src_port, null) + vlan = try(each.value.data.vlan, local.defaults.meraki.networks.networks_switch_qos_rules.vlan, null) + protocol = try(each.value.data.protocol, local.defaults.meraki.networks.networks_switch_qos_rules.protocol, null) + src_port = try(each.value.data.src_port, local.defaults.meraki.networks.networks_switch_qos_rules.src_port, null) src_port_range = try(each.value.data.src_port_range, local.defaults.meraki.networks.networks_switch_qos_rules.src_port_range, null) - dst_port = try(each.value.data.dst_port, local.defaults.meraki.networks.networks_switch_qos_rules.dst_port, null) + dst_port = try(each.value.data.dst_port, local.defaults.meraki.networks.networks_switch_qos_rules.dst_port, null) dst_port_range = try(each.value.data.dst_port_range, local.defaults.meraki.networks.networks_switch_qos_rules.dst_port_range, null) - dscp = try(each.value.data.dscp, local.defaults.meraki.networks.networks_switch_qos_rules.dscp, null) + dscp = try(each.value.data.dscp, local.defaults.meraki.networks.networks_switch_qos_rules.dscp, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -327,11 +327,11 @@ resource "meraki_switch_routing_multicast" "net_switch_routing_multicast" { for_each = { for i, v in local.networks_switch_routing_multicast : i => v } network_id = each.value.network_id - default_settings_igmp_snooping_enabled = try(each.value.data.default_settings.igmp_snooping_enabled, local.defaults.meraki.networks.networks_switch_routing_multicast.default_settings.igmp_snooping_enabled, null) + default_settings_igmp_snooping_enabled = try(each.value.data.default_settings.igmp_snooping_enabled, local.defaults.meraki.networks.networks_switch_routing_multicast.default_settings.igmp_snooping_enabled, null) default_settings_flood_unknown_multicast_traffic_enabled = try(each.value.data.default_settings.flood_unknown_multicast_traffic_enabled, local.defaults.meraki.networks.networks_switch_routing_multicast.default_settings.flood_unknown_multicast_traffic_enabled, null) - overrides = try(each.value.data.overrides, local.defaults.meraki.networks.networks_switch_routing_multicast.overrides, null) + overrides = try(each.value.data.overrides, local.defaults.meraki.networks.networks_switch_routing_multicast.overrides, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -356,10 +356,10 @@ resource "meraki_switch_routing_multicast_rendezvous_point" "net_switch_routing_ for_each = { for i, v in local.networks_switch_routing_multicast_rendezvous_points : i => v } network_id = each.value.network_id - interface_ip = try(each.value.data.interface_ip, local.defaults.meraki.networks.networks_switch_routing_multicast_rendezvous_points.interface_ip, null) + interface_ip = try(each.value.data.interface_ip, local.defaults.meraki.networks.networks_switch_routing_multicast_rendezvous_points.interface_ip, null) multicast_group = try(each.value.data.multicast_group, local.defaults.meraki.networks.networks_switch_routing_multicast_rendezvous_points.multicast_group, null) - depends_on = [ meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first ] + depends_on = [meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first] # when add devices switch routing interface logic will need an additional depends on if possible to have multiple } @@ -382,19 +382,19 @@ resource "meraki_switch_routing_ospf" "net_switch_routing_ospf" { for_each = { for i, v in local.networks_switch_routing_ospf : i => v } network_id = each.value.network_id - enabled = try(each.value.data.enabled, local.defaults.meraki.networks.networks_switch_routing_ospf.enabled, null) - hello_timer_in_seconds = try(each.value.data.hello_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.hello_timer_in_seconds, null) - dead_timer_in_seconds = try(each.value.data.dead_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.dead_timer_in_seconds, null) - areas = try(each.value.data.areas, local.defaults.meraki.networks.networks_switch_routing_ospf.areas, null) - v3_enabled = try(each.value.data.v3.enabled, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.enabled, null) - v3_hello_timer_in_seconds = try(each.value.data.v3.hello_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.hello_timer_in_seconds, null) - v3_dead_timer_in_seconds = try(each.value.data.v3.dead_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.dead_timer_in_seconds, null) - v3_areas = try(each.value.data.v3.areas, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.areas, null) - md5_authentication_enabled = try(each.value.data.md5_authentication_enabled, local.defaults.meraki.networks.networks_switch_routing_ospf.md5_authentication_enabled, null) - md5_authentication_key_id = try(each.value.data.md5_authentication_key.id, local.defaults.meraki.networks.networks_switch_routing_ospf.md5_authentication_key.id, null) + enabled = try(each.value.data.enabled, local.defaults.meraki.networks.networks_switch_routing_ospf.enabled, null) + hello_timer_in_seconds = try(each.value.data.hello_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.hello_timer_in_seconds, null) + dead_timer_in_seconds = try(each.value.data.dead_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.dead_timer_in_seconds, null) + areas = try(each.value.data.areas, local.defaults.meraki.networks.networks_switch_routing_ospf.areas, null) + v3_enabled = try(each.value.data.v3.enabled, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.enabled, null) + v3_hello_timer_in_seconds = try(each.value.data.v3.hello_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.hello_timer_in_seconds, null) + v3_dead_timer_in_seconds = try(each.value.data.v3.dead_timer_in_seconds, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.dead_timer_in_seconds, null) + v3_areas = try(each.value.data.v3.areas, local.defaults.meraki.networks.networks_switch_routing_ospf.v3.areas, null) + md5_authentication_enabled = try(each.value.data.md5_authentication_enabled, local.defaults.meraki.networks.networks_switch_routing_ospf.md5_authentication_enabled, null) + md5_authentication_key_id = try(each.value.data.md5_authentication_key.id, local.defaults.meraki.networks.networks_switch_routing_ospf.md5_authentication_key.id, null) md5_authentication_key_passphrase = try(each.value.data.md5_authentication_key.passphrase, local.defaults.meraki.networks.networks_switch_routing_ospf.md5_authentication_key.passphrase, null) - depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } locals { @@ -416,13 +416,13 @@ resource "meraki_switch_settings" "net_switch_settings" { for_each = { for i, v in local.networks_switch_settings : i => v } network_id = each.value.network_id - vlan = try(each.value.data.vlan, local.defaults.meraki.networks.networks_switch_settings.vlan, null) - use_combined_power = try(each.value.data.use_combined_power, local.defaults.meraki.networks.networks_switch_settings.use_combined_power, null) - power_exceptions = try(each.value.data.power_exceptions, local.defaults.meraki.networks.networks_switch_settings.power_exceptions, null) + vlan = try(each.value.data.vlan, local.defaults.meraki.networks.networks_switch_settings.vlan, null) + use_combined_power = try(each.value.data.use_combined_power, local.defaults.meraki.networks.networks_switch_settings.use_combined_power, null) + power_exceptions = try(each.value.data.power_exceptions, local.defaults.meraki.networks.networks_switch_settings.power_exceptions, null) uplink_client_sampling_enabled = try(each.value.data.uplink_client_sampling.enabled, local.defaults.meraki.networks.networks_switch_settings.uplink_client_sampling.enabled, null) - mac_blocklist_enabled = try(each.value.data.mac_blocklist.enabled, local.defaults.meraki.networks.networks_switch_settings.mac_blocklist.enabled, null) + mac_blocklist_enabled = try(each.value.data.mac_blocklist.enabled, local.defaults.meraki.networks.networks_switch_settings.mac_blocklist.enabled, null) - depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } locals { networks_switch_storm_control = flatten([ @@ -443,11 +443,11 @@ resource "meraki_switch_storm_control" "net_switch_storm_control" { for_each = { for i, v in local.networks_switch_storm_control : i => v } network_id = each.value.network_id - broadcast_threshold = try(each.value.data.broadcast_threshold, local.defaults.meraki.networks.networks_switch_storm_control.broadcast_threshold, null) - multicast_threshold = try(each.value.data.multicast_threshold, local.defaults.meraki.networks.networks_switch_storm_control.multicast_threshold, null) + broadcast_threshold = try(each.value.data.broadcast_threshold, local.defaults.meraki.networks.networks_switch_storm_control.broadcast_threshold, null) + multicast_threshold = try(each.value.data.multicast_threshold, local.defaults.meraki.networks.networks_switch_storm_control.multicast_threshold, null) unknown_unicast_threshold = try(each.value.data.unknown_unicast_threshold, local.defaults.meraki.networks.networks_switch_storm_control.unknown_unicast_threshold, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -467,12 +467,12 @@ locals { stp_bridge_priority = [for p in network.switch_stp.stp_bridge_priority : { switches = try(p.switches, null) stp_priority = try(p.stp_priority, null) - stacks = length(try(p.stacks, [])) > 0 ? [ - for s in p.stacks : try( - local.switch_stack_map["${domain.name}/${org.name}/${network.name}/switch_stacks/${s}"], - null - ) - ] : null + stacks = length(try(p.stacks, [])) > 0 ? [ + for s in p.stacks : try( + local.switch_stack_map["${domain.name}/${org.name}/${network.name}/switch_stacks/${s}"], + null + ) + ] : null }] } if try(network.switch_stp, null) != null ] @@ -486,8 +486,8 @@ resource "meraki_switch_stp" "net_switch_stp" { network_id = each.value.network_id rstp_enabled = try(each.value.data.rstp_enabled, local.defaults.meraki.networks.switch_stp.rstp_enabled, null) stp_bridge_priority = try(each.value.stp_bridge_priority, []) - - depends_on = [ meraki_network_device_claim.net_device_claim ] + + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -498,11 +498,11 @@ locals { for organization in try(domain.organizations, []) : [ for network in try(organization.networks, []) : [ for switch_stack in try(network.switch_stacks, []) : { - network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id - stack_key = format("%s/%s/%s/switch_stacks/%s", domain.name, organization.name, network.name, switch_stack.name) - data = switch_stack - } if try(network.switch_stacks, null) != null - ] if try(organization.networks, null) != null + network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id + stack_key = format("%s/%s/%s/switch_stacks/%s", domain.name, organization.name, network.name, switch_stack.name) + data = switch_stack + } if try(network.switch_stacks, null) != null + ] if try(organization.networks, null) != null ] if try(domain.organizations, null) != null ] if try(local.meraki.domains, null) != null ]) @@ -512,10 +512,10 @@ resource "meraki_switch_stack" "net_switch_stacks" { for_each = { for s in local.networks_switch_stacks : s.stack_key => s } network_id = each.value.network_id - name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks.name, null) + name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks.name, null) serials = try(each.value.data.serials, local.defaults.meraki.networks.networks_switch_stacks.serials, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } @@ -527,10 +527,10 @@ locals { for network in try(organization.networks, []) : [ for switch_stack in try(network.switch_stacks, []) : [ for routing_interface in try(switch_stack.routing_interfaces, []) : { - network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id - interface_key = format("%s/%s/%s/switch_stacks/%s/routing_interfaces/%s", domain.name, organization.name, network.name, switch_stack.name, routing_interface.name) + network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id + interface_key = format("%s/%s/%s/switch_stacks/%s/routing_interfaces/%s", domain.name, organization.name, network.name, switch_stack.name, routing_interface.name) switch_stack_id = meraki_switch_stack.net_switch_stacks["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id - data = try(routing_interface, null) + data = try(routing_interface, null) } if try(routing_interface.default_gateway, null) != null ] if try(network.switch_stacks, null) != null ] if try(organization.networks, null) != null @@ -544,10 +544,10 @@ locals { for network in try(organization.networks, []) : [ for switch_stack in try(network.switch_stacks, []) : [ for routing_interface in try(switch_stack.routing_interfaces, []) : { - network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id - interface_key = format("%s/%s/%s/switch_stacks/%s/routing_interfaces/%s", domain.name, organization.name, network.name, switch_stack.name, routing_interface.name) + network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id + interface_key = format("%s/%s/%s/switch_stacks/%s/routing_interfaces/%s", domain.name, organization.name, network.name, switch_stack.name, routing_interface.name) switch_stack_id = meraki_switch_stack.net_switch_stacks["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id - data = try(routing_interface, null) + data = try(routing_interface, null) } if try(routing_interface.default_gateway, null) == null ] if try(network.switch_stacks, null) != null ] if try(organization.networks, null) != null @@ -557,47 +557,47 @@ locals { } resource "meraki_switch_stack_routing_interface" "net_switch_stack_routing_interface_first" { - for_each = { for i in local.networks_switch_stacks_routing_interfaces_first : i.interface_key => i } - network_id = each.value.network_id + for_each = { for i in local.networks_switch_stacks_routing_interfaces_first : i.interface_key => i } + network_id = each.value.network_id switch_stack_id = each.value.switch_stack_id - name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.name, null) - subnet = try(each.value.data.subnet, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.subnet, null) - interface_ip = try(each.value.data.interface_ip, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.interface_ip, null) - multicast_routing = try(each.value.data.multicast_routing, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.multicast_routing, null) - vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.vlan_id, null) - default_gateway = try(each.value.data.default_gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.default_gateway, null) - ospf_settings_area = try(each.value.data.ospf_settings.area, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.area, null) - ospf_settings_cost = try(each.value.data.ospf_settings.cost, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.cost, null) + name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.name, null) + subnet = try(each.value.data.subnet, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.subnet, null) + interface_ip = try(each.value.data.interface_ip, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.interface_ip, null) + multicast_routing = try(each.value.data.multicast_routing, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.multicast_routing, null) + vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.vlan_id, null) + default_gateway = try(each.value.data.default_gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.default_gateway, null) + ospf_settings_area = try(each.value.data.ospf_settings.area, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.area, null) + ospf_settings_cost = try(each.value.data.ospf_settings.cost, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.cost, null) ospf_settings_is_passive_enabled = try(each.value.data.ospf_settings.is_passive_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.is_passive_enabled, null) - ipv6_assignment_mode = try(each.value.data.ipv6.assignment_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.assignment_mode, null) - ipv6_prefix = try(each.value.data.ipv6.prefix, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.prefix, null) - ipv6_address = try(each.value.data.ipv6.address, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.address, null) - ipv6_gateway = try(each.value.data.ipv6.gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.gateway, null) + ipv6_assignment_mode = try(each.value.data.ipv6.assignment_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.assignment_mode, null) + ipv6_prefix = try(each.value.data.ipv6.prefix, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.prefix, null) + ipv6_address = try(each.value.data.ipv6.address, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.address, null) + ipv6_gateway = try(each.value.data.ipv6.gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.gateway, null) -depends_on = [ meraki_network_device_claim.net_device_claim ] + depends_on = [meraki_network_device_claim.net_device_claim] } resource "meraki_switch_stack_routing_interface" "net_switch_stack_routing_interface_not_first" { - for_each = { for i in local.networks_switch_stacks_routing_interfaces_not_first : i.interface_key => i } - network_id = each.value.network_id + for_each = { for i in local.networks_switch_stacks_routing_interfaces_not_first : i.interface_key => i } + network_id = each.value.network_id switch_stack_id = each.value.switch_stack_id - name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.name, null) - subnet = try(each.value.data.subnet, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.subnet, null) - interface_ip = try(each.value.data.interface_ip, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.interface_ip, null) - multicast_routing = try(each.value.data.multicast_routing, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.multicast_routing, null) - vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.vlan_id, null) - default_gateway = try(each.value.data.default_gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.default_gateway, null) - ospf_settings_area = try(each.value.data.ospf_settings.area, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.area, null) - ospf_settings_cost = try(each.value.data.ospf_settings.cost, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.cost, null) + name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.name, null) + subnet = try(each.value.data.subnet, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.subnet, null) + interface_ip = try(each.value.data.interface_ip, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.interface_ip, null) + multicast_routing = try(each.value.data.multicast_routing, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.multicast_routing, null) + vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.vlan_id, null) + default_gateway = try(each.value.data.default_gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.default_gateway, null) + ospf_settings_area = try(each.value.data.ospf_settings.area, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.area, null) + ospf_settings_cost = try(each.value.data.ospf_settings.cost, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.cost, null) ospf_settings_is_passive_enabled = try(each.value.data.ospf_settings.is_passive_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ospf_settings.is_passive_enabled, null) - ipv6_assignment_mode = try(each.value.data.ipv6.assignment_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.assignment_mode, null) - ipv6_prefix = try(each.value.data.ipv6.prefix, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.prefix, null) - ipv6_address = try(each.value.data.ipv6.address, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.address, null) - ipv6_gateway = try(each.value.data.ipv6.gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.gateway, null) + ipv6_assignment_mode = try(each.value.data.ipv6.assignment_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.assignment_mode, null) + ipv6_prefix = try(each.value.data.ipv6.prefix, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.prefix, null) + ipv6_address = try(each.value.data.ipv6.address, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.address, null) + ipv6_gateway = try(each.value.data.ipv6.gateway, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces.ipv6.gateway, null) - depends_on = [ meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first ] + depends_on = [meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first] } locals { @@ -608,10 +608,10 @@ locals { for network in try(organization.networks, []) : [ for switch_stack in try(network.switch_stacks, []) : [ for routing_interface in try(switch_stack.routing_interfaces, []) : { - network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id + network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id switch_stack_id = meraki_switch_stack.net_switch_stacks["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id - interface_id = meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}/routing_interfaces/${routing_interface.name}"].id - data = routing_interface.dhcp + interface_id = meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}/routing_interfaces/${routing_interface.name}"].id + data = routing_interface.dhcp } if try(routing_interface.default_gateway, null) != null ] if try(network.switch_stacks, null) != null ] if try(organization.networks, null) != null @@ -621,24 +621,24 @@ locals { } resource "meraki_switch_stack_routing_interface_dhcp" "net_switch_stacks_routing_interfaces_dhcp_first" { - for_each = { for i, v in local.networks_switch_stacks_routing_interfaces_dhcp_first : i => v } - network_id = each.value.network_id + for_each = { for i, v in local.networks_switch_stacks_routing_interfaces_dhcp_first : i => v } + network_id = each.value.network_id switch_stack_id = each.value.switch_stack_id - interface_id = each.value.interface_id + interface_id = each.value.interface_id - dhcp_mode = try(each.value.data.dhcp_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_mode, null) - dhcp_relay_server_ips = try(each.value.data.dhcp_relay_server_ips, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_relay_server_ips, null) - dhcp_lease_time = try(each.value.data.dhcp_lease_time, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_lease_time, null) + dhcp_mode = try(each.value.data.dhcp_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_mode, null) + dhcp_relay_server_ips = try(each.value.data.dhcp_relay_server_ips, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_relay_server_ips, null) + dhcp_lease_time = try(each.value.data.dhcp_lease_time, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_lease_time, null) dns_nameservers_option = try(each.value.data.dns_nameservers_option, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dns_nameservers_option, null) dns_custom_nameservers = try(each.value.data.dns_custom_nameservers, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dns_custom_nameservers, null) - boot_options_enabled = try(each.value.data.boot_options_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_options_enabled, null) - boot_next_server = try(each.value.data.boot_next_server, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_next_server, null) - boot_file_name = try(each.value.data.boot_file_name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_file_name, null) - dhcp_options = try(each.value.data.dhcp_options, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_options, null) - reserved_ip_ranges = try(each.value.data.reserved_ip_ranges, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.reserved_ip_ranges, null) - fixed_ip_assignments = try(each.value.data.fixed_ip_assignments, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.fixed_ip_assignments, null) + boot_options_enabled = try(each.value.data.boot_options_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_options_enabled, null) + boot_next_server = try(each.value.data.boot_next_server, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_next_server, null) + boot_file_name = try(each.value.data.boot_file_name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_file_name, null) + dhcp_options = try(each.value.data.dhcp_options, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_options, null) + reserved_ip_ranges = try(each.value.data.reserved_ip_ranges, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.reserved_ip_ranges, null) + fixed_ip_assignments = try(each.value.data.fixed_ip_assignments, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.fixed_ip_assignments, null) - depends_on = [ meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first ] + depends_on = [meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first] } @@ -650,10 +650,10 @@ locals { for network in try(organization.networks, []) : [ for switch_stack in try(network.switch_stacks, []) : [ for routing_interface in try(switch_stack.routing_interfaces, []) : { - network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id + network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id switch_stack_id = meraki_switch_stack.net_switch_stacks["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id - interface_id = meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}/routing_interfaces/${routing_interface.name}"].id - data = routing_interface.dhcp + interface_id = meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}/routing_interfaces/${routing_interface.name}"].id + data = routing_interface.dhcp } if try(routing_interface.default_gateway, null) == null ] if try(network.switch_stacks, null) != null ] if try(organization.networks, null) != null @@ -663,24 +663,24 @@ locals { } resource "meraki_switch_stack_routing_interface_dhcp" "net_switch_stacks_routing_interfaces_dhcp_not_first" { - for_each = { for i, v in local.networks_switch_stacks_routing_interfaces_dhcp_not_first : i => v } - network_id = each.value.network_id + for_each = { for i, v in local.networks_switch_stacks_routing_interfaces_dhcp_not_first : i => v } + network_id = each.value.network_id switch_stack_id = each.value.switch_stack_id - interface_id = each.value.interface_id + interface_id = each.value.interface_id - dhcp_mode = try(each.value.data.dhcp_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_mode, null) - dhcp_relay_server_ips = try(each.value.data.dhcp_relay_server_ips, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_relay_server_ips, null) - dhcp_lease_time = try(each.value.data.dhcp_lease_time, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_lease_time, null) + dhcp_mode = try(each.value.data.dhcp_mode, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_mode, null) + dhcp_relay_server_ips = try(each.value.data.dhcp_relay_server_ips, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_relay_server_ips, null) + dhcp_lease_time = try(each.value.data.dhcp_lease_time, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_lease_time, null) dns_nameservers_option = try(each.value.data.dns_nameservers_option, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dns_nameservers_option, null) dns_custom_nameservers = try(each.value.data.dns_custom_nameservers, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dns_custom_nameservers, null) - boot_options_enabled = try(each.value.data.boot_options_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_options_enabled, null) - boot_next_server = try(each.value.data.boot_next_server, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_next_server, null) - boot_file_name = try(each.value.data.boot_file_name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_file_name, null) - dhcp_options = try(each.value.data.dhcp_options, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_options, null) - reserved_ip_ranges = try(each.value.data.reserved_ip_ranges, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.reserved_ip_ranges, null) - fixed_ip_assignments = try(each.value.data.fixed_ip_assignments, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.fixed_ip_assignments, null) + boot_options_enabled = try(each.value.data.boot_options_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_options_enabled, null) + boot_next_server = try(each.value.data.boot_next_server, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_next_server, null) + boot_file_name = try(each.value.data.boot_file_name, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.boot_file_name, null) + dhcp_options = try(each.value.data.dhcp_options, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.dhcp_options, null) + reserved_ip_ranges = try(each.value.data.reserved_ip_ranges, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.reserved_ip_ranges, null) + fixed_ip_assignments = try(each.value.data.fixed_ip_assignments, local.defaults.meraki.networks.networks_switch_stacks_routing_interfaces_dhcp.fixed_ip_assignments, null) - depends_on = [ meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first ] + depends_on = [meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first] } @@ -691,9 +691,9 @@ locals { for network in try(organization.networks, []) : [ for switch_stack in try(network.switch_stacks, []) : [ for routing_static_route in try(switch_stack.routing_static_routes, []) : { - network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id + network_id = meraki_network.network["${domain.name}/${organization.name}/${network.name}"].id switch_stack_id = meraki_switch_stack.net_switch_stacks["${domain.name}/${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id - data = try(routing_static_route, null) + data = try(routing_static_route, null) } if try(switch_stack.routing_static_routes, null) != null ] if try(network.switch_stacks, null) != null ] if try(organization.networks, null) != null @@ -703,16 +703,16 @@ locals { } resource "meraki_switch_stack_routing_static_route" "net_switch_stacks_routing_static_route" { - for_each = { for i, v in local.networks_switch_stacks_routing_static_routes : i => v } - network_id = each.value.network_id + for_each = { for i, v in local.networks_switch_stacks_routing_static_routes : i => v } + network_id = each.value.network_id switch_stack_id = each.value.switch_stack_id - name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.name, null) - subnet = try(each.value.data.subnet, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.subnet, null) - next_hop_ip = try(each.value.data.next_hop_ip, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.next_hop_ip, null) - advertise_via_ospf_enabled = try(each.value.data.advertise_via_ospf_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.advertise_via_ospf_enabled, null) + name = try(each.value.data.name, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.name, null) + subnet = try(each.value.data.subnet, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.subnet, null) + next_hop_ip = try(each.value.data.next_hop_ip, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.next_hop_ip, null) + advertise_via_ospf_enabled = try(each.value.data.advertise_via_ospf_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.advertise_via_ospf_enabled, null) prefer_over_ospf_routes_enabled = try(each.value.data.prefer_over_ospf_routes_enabled, local.defaults.meraki.networks.networks_switch_stacks_routing_static_routes.prefer_over_ospf_routes_enabled, null) - depends_on = [ meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first ] + depends_on = [meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first] } diff --git a/meraki_wireless.tf b/meraki_wireless.tf index f73405b..9ee06be 100644 --- a/meraki_wireless.tf +++ b/meraki_wireless.tf @@ -22,93 +22,93 @@ resource "meraki_wireless_rf_profile" "net_wireless_rf_profiles" { for_each = { for i, v in local.networks_networks_wireless_rf_profiles : i => v } network_id = each.value.network_id - name = try(each.value.data.name, local.defaults.meraki.networks.networks_wireless_rf_profiles.name, null) - client_balancing_enabled = try(each.value.data.client_balancing_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.client_balancing_enabled, null) - min_bitrate_type = try(each.value.data.min_bitrate_type, local.defaults.meraki.networks.networks_wireless_rf_profiles.min_bitrate_type, null) - band_selection_type = try(each.value.data.band_selection_type, local.defaults.meraki.networks.networks_wireless_rf_profiles.band_selection_type, null) - ap_band_settings_band_operation_mode = try(each.value.data.ap_band_settings.band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.ap_band_settings.band_operation_mode, null) - ap_band_settings_bands_enabled = try(each.value.data.ap_band_settings.bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.ap_band_settings.bands.enabled, null) - ap_band_settings_band_steering_enabled = try(each.value.data.ap_band_settings.band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.ap_band_settings.band_steering_enabled, null) - two_four_ghz_settings_max_power = try(each.value.data.two_four_ghz_settings.max_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.max_power, null) - two_four_ghz_settings_min_power = try(each.value.data.two_four_ghz_settings.min_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.min_power, null) - two_four_ghz_settings_min_bitrate = try(each.value.data.two_four_ghz_settings.min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.min_bitrate, null) - two_four_ghz_settings_valid_auto_channels = try(each.value.data.two_four_ghz_settings.valid_auto_channels, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.valid_auto_channels, null) - two_four_ghz_settings_ax_enabled = try(each.value.data.two_four_ghz_settings.ax_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.ax_enabled, null) - two_four_ghz_settings_rxsop = try(each.value.data.two_four_ghz_settings.rxsop, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.rxsop, null) - five_ghz_settings_max_power = try(each.value.data.five_ghz_settings.max_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.max_power, null) - five_ghz_settings_min_power = try(each.value.data.five_ghz_settings.min_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.min_power, null) - five_ghz_settings_min_bitrate = try(each.value.data.five_ghz_settings.min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.min_bitrate, null) - five_ghz_settings_valid_auto_channels = try(each.value.data.five_ghz_settings.valid_auto_channels, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.valid_auto_channels, null) - five_ghz_settings_channel_width = try(each.value.data.five_ghz_settings.channel_width, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.channel_width, null) - five_ghz_settings_rxsop = try(each.value.data.five_ghz_settings.rxsop, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.rxsop, null) - six_ghz_settings_max_power = try(each.value.data.six_ghz_settings.max_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.max_power, null) - six_ghz_settings_min_power = try(each.value.data.six_ghz_settings.min_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.min_power, null) - six_ghz_settings_min_bitrate = try(each.value.data.six_ghz_settings.min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.min_bitrate, null) - six_ghz_settings_valid_auto_channels = try(each.value.data.six_ghz_settings.valid_auto_channels, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.valid_auto_channels, null) - six_ghz_settings_channel_width = try(each.value.data.six_ghz_settings.channel_width, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.channel_width, null) - six_ghz_settings_rxsop = try(each.value.data.six_ghz_settings.rxsop, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.rxsop, null) - transmission_enabled = try(each.value.data.transmission.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.transmission.enabled, null) - per_ssid_settings_0_min_bitrate = try(each.value.data.per_ssid_settings[0].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].min_bitrate, null) - per_ssid_settings_0_band_operation_mode = try(each.value.data.per_ssid_settings[0].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].band_operation_mode, null) - per_ssid_settings_0_bands_enabled = try(each.value.data.per_ssid_settings[0].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].bands.enabled, null) - per_ssid_settings_0_band_steering_enabled = try(each.value.data.per_ssid_settings[0].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].band_steering_enabled, null) - per_ssid_settings_1_min_bitrate = try(each.value.data.per_ssid_settings[1].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].min_bitrate, null) - per_ssid_settings_1_band_operation_mode = try(each.value.data.per_ssid_settings[1].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].band_operation_mode, null) - per_ssid_settings_1_bands_enabled = try(each.value.data.per_ssid_settings[1].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].bands.enabled, null) - per_ssid_settings_1_band_steering_enabled = try(each.value.data.per_ssid_settings[1].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].band_steering_enabled, null) - per_ssid_settings_2_min_bitrate = try(each.value.data.per_ssid_settings[2].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].min_bitrate, null) - per_ssid_settings_2_band_operation_mode = try(each.value.data.per_ssid_settings[2].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].band_operation_mode, null) - per_ssid_settings_2_bands_enabled = try(each.value.data.per_ssid_settings[2].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].bands.enabled, null) - per_ssid_settings_2_band_steering_enabled = try(each.value.data.per_ssid_settings[2].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].band_steering_enabled, null) - per_ssid_settings_3_min_bitrate = try(each.value.data.per_ssid_settings[3].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].min_bitrate, null) - per_ssid_settings_3_band_operation_mode = try(each.value.data.per_ssid_settings[3].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].band_operation_mode, null) - per_ssid_settings_3_bands_enabled = try(each.value.data.per_ssid_settings[3].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].bands.enabled, null) - per_ssid_settings_3_band_steering_enabled = try(each.value.data.per_ssid_settings[3].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].band_steering_enabled, null) - per_ssid_settings_4_min_bitrate = try(each.value.data.per_ssid_settings[4].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].min_bitrate, null) - per_ssid_settings_4_band_operation_mode = try(each.value.data.per_ssid_settings[4].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].band_operation_mode, null) - per_ssid_settings_4_bands_enabled = try(each.value.data.per_ssid_settings[4].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].bands.enabled, null) - per_ssid_settings_4_band_steering_enabled = try(each.value.data.per_ssid_settings[4].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].band_steering_enabled, null) - per_ssid_settings_5_min_bitrate = try(each.value.data.per_ssid_settings[5].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].min_bitrate, null) - per_ssid_settings_5_band_operation_mode = try(each.value.data.per_ssid_settings[5].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].band_operation_mode, null) - per_ssid_settings_5_bands_enabled = try(each.value.data.per_ssid_settings[5].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].bands.enabled, null) - per_ssid_settings_5_band_steering_enabled = try(each.value.data.per_ssid_settings[5].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].band_steering_enabled, null) - per_ssid_settings_6_min_bitrate = try(each.value.data.per_ssid_settings[6].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].min_bitrate, null) - per_ssid_settings_6_band_operation_mode = try(each.value.data.per_ssid_settings[6].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].band_operation_mode, null) - per_ssid_settings_6_bands_enabled = try(each.value.data.per_ssid_settings[6].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].bands.enabled, null) - per_ssid_settings_6_band_steering_enabled = try(each.value.data.per_ssid_settings[6].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].band_steering_enabled, null) - per_ssid_settings_7_min_bitrate = try(each.value.data.per_ssid_settings[7].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].min_bitrate, null) - per_ssid_settings_7_band_operation_mode = try(each.value.data.per_ssid_settings[7].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].band_operation_mode, null) - per_ssid_settings_7_bands_enabled = try(each.value.data.per_ssid_settings[7].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].bands.enabled, null) - per_ssid_settings_7_band_steering_enabled = try(each.value.data.per_ssid_settings[7].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].band_steering_enabled, null) - per_ssid_settings_8_min_bitrate = try(each.value.data.per_ssid_settings[8].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].min_bitrate, null) - per_ssid_settings_8_band_operation_mode = try(each.value.data.per_ssid_settings[8].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].band_operation_mode, null) - per_ssid_settings_8_bands_enabled = try(each.value.data.per_ssid_settings[8].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].bands.enabled, null) - per_ssid_settings_8_band_steering_enabled = try(each.value.data.per_ssid_settings[8].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].band_steering_enabled, null) - per_ssid_settings_9_min_bitrate = try(each.value.data.per_ssid_settings[9].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].min_bitrate, null) - per_ssid_settings_9_band_operation_mode = try(each.value.data.per_ssid_settings[9].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].band_operation_mode, null) - per_ssid_settings_9_bands_enabled = try(each.value.data.per_ssid_settings[9].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].bands.enabled, null) - per_ssid_settings_9_band_steering_enabled = try(each.value.data.per_ssid_settings[9].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].band_steering_enabled, null) - per_ssid_settings_10_min_bitrate = try(each.value.data.per_ssid_settings[10].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].min_bitrate, null) - per_ssid_settings_10_band_operation_mode = try(each.value.data.per_ssid_settings[10].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].band_operation_mode, null) - per_ssid_settings_10_bands_enabled = try(each.value.data.per_ssid_settings[10].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].bands.enabled, null) + name = try(each.value.data.name, local.defaults.meraki.networks.networks_wireless_rf_profiles.name, null) + client_balancing_enabled = try(each.value.data.client_balancing_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.client_balancing_enabled, null) + min_bitrate_type = try(each.value.data.min_bitrate_type, local.defaults.meraki.networks.networks_wireless_rf_profiles.min_bitrate_type, null) + band_selection_type = try(each.value.data.band_selection_type, local.defaults.meraki.networks.networks_wireless_rf_profiles.band_selection_type, null) + ap_band_settings_band_operation_mode = try(each.value.data.ap_band_settings.band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.ap_band_settings.band_operation_mode, null) + ap_band_settings_bands_enabled = try(each.value.data.ap_band_settings.bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.ap_band_settings.bands.enabled, null) + ap_band_settings_band_steering_enabled = try(each.value.data.ap_band_settings.band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.ap_band_settings.band_steering_enabled, null) + two_four_ghz_settings_max_power = try(each.value.data.two_four_ghz_settings.max_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.max_power, null) + two_four_ghz_settings_min_power = try(each.value.data.two_four_ghz_settings.min_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.min_power, null) + two_four_ghz_settings_min_bitrate = try(each.value.data.two_four_ghz_settings.min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.min_bitrate, null) + two_four_ghz_settings_valid_auto_channels = try(each.value.data.two_four_ghz_settings.valid_auto_channels, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.valid_auto_channels, null) + two_four_ghz_settings_ax_enabled = try(each.value.data.two_four_ghz_settings.ax_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.ax_enabled, null) + two_four_ghz_settings_rxsop = try(each.value.data.two_four_ghz_settings.rxsop, local.defaults.meraki.networks.networks_wireless_rf_profiles.two_four_ghz_settings.rxsop, null) + five_ghz_settings_max_power = try(each.value.data.five_ghz_settings.max_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.max_power, null) + five_ghz_settings_min_power = try(each.value.data.five_ghz_settings.min_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.min_power, null) + five_ghz_settings_min_bitrate = try(each.value.data.five_ghz_settings.min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.min_bitrate, null) + five_ghz_settings_valid_auto_channels = try(each.value.data.five_ghz_settings.valid_auto_channels, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.valid_auto_channels, null) + five_ghz_settings_channel_width = try(each.value.data.five_ghz_settings.channel_width, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.channel_width, null) + five_ghz_settings_rxsop = try(each.value.data.five_ghz_settings.rxsop, local.defaults.meraki.networks.networks_wireless_rf_profiles.five_ghz_settings.rxsop, null) + six_ghz_settings_max_power = try(each.value.data.six_ghz_settings.max_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.max_power, null) + six_ghz_settings_min_power = try(each.value.data.six_ghz_settings.min_power, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.min_power, null) + six_ghz_settings_min_bitrate = try(each.value.data.six_ghz_settings.min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.min_bitrate, null) + six_ghz_settings_valid_auto_channels = try(each.value.data.six_ghz_settings.valid_auto_channels, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.valid_auto_channels, null) + six_ghz_settings_channel_width = try(each.value.data.six_ghz_settings.channel_width, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.channel_width, null) + six_ghz_settings_rxsop = try(each.value.data.six_ghz_settings.rxsop, local.defaults.meraki.networks.networks_wireless_rf_profiles.six_ghz_settings.rxsop, null) + transmission_enabled = try(each.value.data.transmission.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.transmission.enabled, null) + per_ssid_settings_0_min_bitrate = try(each.value.data.per_ssid_settings[0].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].min_bitrate, null) + per_ssid_settings_0_band_operation_mode = try(each.value.data.per_ssid_settings[0].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].band_operation_mode, null) + per_ssid_settings_0_bands_enabled = try(each.value.data.per_ssid_settings[0].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].bands.enabled, null) + per_ssid_settings_0_band_steering_enabled = try(each.value.data.per_ssid_settings[0].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[0].band_steering_enabled, null) + per_ssid_settings_1_min_bitrate = try(each.value.data.per_ssid_settings[1].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].min_bitrate, null) + per_ssid_settings_1_band_operation_mode = try(each.value.data.per_ssid_settings[1].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].band_operation_mode, null) + per_ssid_settings_1_bands_enabled = try(each.value.data.per_ssid_settings[1].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].bands.enabled, null) + per_ssid_settings_1_band_steering_enabled = try(each.value.data.per_ssid_settings[1].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[1].band_steering_enabled, null) + per_ssid_settings_2_min_bitrate = try(each.value.data.per_ssid_settings[2].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].min_bitrate, null) + per_ssid_settings_2_band_operation_mode = try(each.value.data.per_ssid_settings[2].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].band_operation_mode, null) + per_ssid_settings_2_bands_enabled = try(each.value.data.per_ssid_settings[2].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].bands.enabled, null) + per_ssid_settings_2_band_steering_enabled = try(each.value.data.per_ssid_settings[2].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[2].band_steering_enabled, null) + per_ssid_settings_3_min_bitrate = try(each.value.data.per_ssid_settings[3].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].min_bitrate, null) + per_ssid_settings_3_band_operation_mode = try(each.value.data.per_ssid_settings[3].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].band_operation_mode, null) + per_ssid_settings_3_bands_enabled = try(each.value.data.per_ssid_settings[3].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].bands.enabled, null) + per_ssid_settings_3_band_steering_enabled = try(each.value.data.per_ssid_settings[3].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[3].band_steering_enabled, null) + per_ssid_settings_4_min_bitrate = try(each.value.data.per_ssid_settings[4].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].min_bitrate, null) + per_ssid_settings_4_band_operation_mode = try(each.value.data.per_ssid_settings[4].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].band_operation_mode, null) + per_ssid_settings_4_bands_enabled = try(each.value.data.per_ssid_settings[4].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].bands.enabled, null) + per_ssid_settings_4_band_steering_enabled = try(each.value.data.per_ssid_settings[4].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[4].band_steering_enabled, null) + per_ssid_settings_5_min_bitrate = try(each.value.data.per_ssid_settings[5].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].min_bitrate, null) + per_ssid_settings_5_band_operation_mode = try(each.value.data.per_ssid_settings[5].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].band_operation_mode, null) + per_ssid_settings_5_bands_enabled = try(each.value.data.per_ssid_settings[5].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].bands.enabled, null) + per_ssid_settings_5_band_steering_enabled = try(each.value.data.per_ssid_settings[5].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[5].band_steering_enabled, null) + per_ssid_settings_6_min_bitrate = try(each.value.data.per_ssid_settings[6].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].min_bitrate, null) + per_ssid_settings_6_band_operation_mode = try(each.value.data.per_ssid_settings[6].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].band_operation_mode, null) + per_ssid_settings_6_bands_enabled = try(each.value.data.per_ssid_settings[6].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].bands.enabled, null) + per_ssid_settings_6_band_steering_enabled = try(each.value.data.per_ssid_settings[6].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[6].band_steering_enabled, null) + per_ssid_settings_7_min_bitrate = try(each.value.data.per_ssid_settings[7].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].min_bitrate, null) + per_ssid_settings_7_band_operation_mode = try(each.value.data.per_ssid_settings[7].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].band_operation_mode, null) + per_ssid_settings_7_bands_enabled = try(each.value.data.per_ssid_settings[7].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].bands.enabled, null) + per_ssid_settings_7_band_steering_enabled = try(each.value.data.per_ssid_settings[7].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[7].band_steering_enabled, null) + per_ssid_settings_8_min_bitrate = try(each.value.data.per_ssid_settings[8].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].min_bitrate, null) + per_ssid_settings_8_band_operation_mode = try(each.value.data.per_ssid_settings[8].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].band_operation_mode, null) + per_ssid_settings_8_bands_enabled = try(each.value.data.per_ssid_settings[8].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].bands.enabled, null) + per_ssid_settings_8_band_steering_enabled = try(each.value.data.per_ssid_settings[8].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[8].band_steering_enabled, null) + per_ssid_settings_9_min_bitrate = try(each.value.data.per_ssid_settings[9].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].min_bitrate, null) + per_ssid_settings_9_band_operation_mode = try(each.value.data.per_ssid_settings[9].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].band_operation_mode, null) + per_ssid_settings_9_bands_enabled = try(each.value.data.per_ssid_settings[9].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].bands.enabled, null) + per_ssid_settings_9_band_steering_enabled = try(each.value.data.per_ssid_settings[9].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[9].band_steering_enabled, null) + per_ssid_settings_10_min_bitrate = try(each.value.data.per_ssid_settings[10].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].min_bitrate, null) + per_ssid_settings_10_band_operation_mode = try(each.value.data.per_ssid_settings[10].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].band_operation_mode, null) + per_ssid_settings_10_bands_enabled = try(each.value.data.per_ssid_settings[10].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].bands.enabled, null) per_ssid_settings_10_band_steering_enabled = try(each.value.data.per_ssid_settings[10].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[10].band_steering_enabled, null) - per_ssid_settings_11_min_bitrate = try(each.value.data.per_ssid_settings[11].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].min_bitrate, null) - per_ssid_settings_11_band_operation_mode = try(each.value.data.per_ssid_settings[11].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].band_operation_mode, null) - per_ssid_settings_11_bands_enabled = try(each.value.data.per_ssid_settings[11].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].bands.enabled, null) + per_ssid_settings_11_min_bitrate = try(each.value.data.per_ssid_settings[11].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].min_bitrate, null) + per_ssid_settings_11_band_operation_mode = try(each.value.data.per_ssid_settings[11].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].band_operation_mode, null) + per_ssid_settings_11_bands_enabled = try(each.value.data.per_ssid_settings[11].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].bands.enabled, null) per_ssid_settings_11_band_steering_enabled = try(each.value.data.per_ssid_settings[11].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[11].band_steering_enabled, null) - per_ssid_settings_12_min_bitrate = try(each.value.data.per_ssid_settings[12].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].min_bitrate, null) - per_ssid_settings_12_band_operation_mode = try(each.value.data.per_ssid_settings[12].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].band_operation_mode, null) - per_ssid_settings_12_bands_enabled = try(each.value.data.per_ssid_settings[12].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].bands.enabled, null) + per_ssid_settings_12_min_bitrate = try(each.value.data.per_ssid_settings[12].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].min_bitrate, null) + per_ssid_settings_12_band_operation_mode = try(each.value.data.per_ssid_settings[12].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].band_operation_mode, null) + per_ssid_settings_12_bands_enabled = try(each.value.data.per_ssid_settings[12].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].bands.enabled, null) per_ssid_settings_12_band_steering_enabled = try(each.value.data.per_ssid_settings[12].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[12].band_steering_enabled, null) - per_ssid_settings_13_min_bitrate = try(each.value.data.per_ssid_settings[13].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].min_bitrate, null) - per_ssid_settings_13_band_operation_mode = try(each.value.data.per_ssid_settings[13].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].band_operation_mode, null) - per_ssid_settings_13_bands_enabled = try(each.value.data.per_ssid_settings[13].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].bands.enabled, null) + per_ssid_settings_13_min_bitrate = try(each.value.data.per_ssid_settings[13].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].min_bitrate, null) + per_ssid_settings_13_band_operation_mode = try(each.value.data.per_ssid_settings[13].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].band_operation_mode, null) + per_ssid_settings_13_bands_enabled = try(each.value.data.per_ssid_settings[13].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].bands.enabled, null) per_ssid_settings_13_band_steering_enabled = try(each.value.data.per_ssid_settings[13].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[13].band_steering_enabled, null) - per_ssid_settings_14_min_bitrate = try(each.value.data.per_ssid_settings[14].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].min_bitrate, null) - per_ssid_settings_14_band_operation_mode = try(each.value.data.per_ssid_settings[14].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].band_operation_mode, null) - per_ssid_settings_14_bands_enabled = try(each.value.data.per_ssid_settings[14].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].bands.enabled, null) + per_ssid_settings_14_min_bitrate = try(each.value.data.per_ssid_settings[14].min_bitrate, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].min_bitrate, null) + per_ssid_settings_14_band_operation_mode = try(each.value.data.per_ssid_settings[14].band_operation_mode, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].band_operation_mode, null) + per_ssid_settings_14_bands_enabled = try(each.value.data.per_ssid_settings[14].bands.enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].bands.enabled, null) per_ssid_settings_14_band_steering_enabled = try(each.value.data.per_ssid_settings[14].band_steering_enabled, local.defaults.meraki.networks.networks_wireless_rf_profiles.per_ssid_settings[14].band_steering_enabled, null) - flex_radios_by_model = try(each.value.data.flex_radios.by_model, local.defaults.meraki.networks.networks_wireless_rf_profiles.flex_radios.by_model, null) + flex_radios_by_model = try(each.value.data.flex_radios.by_model, local.defaults.meraki.networks.networks_wireless_rf_profiles.flex_radios.by_model, null) } locals { @@ -130,12 +130,12 @@ resource "meraki_wireless_settings" "net_wireless_settings" { for_each = { for i, v in local.networks_networks_wireless_settings : i => v } network_id = each.value.network_id - meshing_enabled = try(each.value.data.meshing_enabled, local.defaults.meraki.networks.networks_wireless_settings.meshing_enabled, null) - ipv6_bridge_enabled = try(each.value.data.ipv6_bridge_enabled, local.defaults.meraki.networks.networks_wireless_settings.ipv6_bridge_enabled, null) - location_analytics_enabled = try(each.value.data.location_analytics_enabled, local.defaults.meraki.networks.networks_wireless_settings.location_analytics_enabled, null) - upgrade_strategy = try(each.value.data.upgrade_strategy, local.defaults.meraki.networks.networks_wireless_settings.upgrade_strategy, null) - led_lights_on = try(each.value.data.led_lights_on, local.defaults.meraki.networks.networks_wireless_settings.led_lights_on, null) - named_vlans_pool_dhcp_monitoring_enabled = try(each.value.data.named_vlans.pool_dhcp_monitoring.enabled, local.defaults.meraki.networks.networks_wireless_settings.named_vlans.pool_dhcp_monitoring.enabled, null) + meshing_enabled = try(each.value.data.meshing_enabled, local.defaults.meraki.networks.networks_wireless_settings.meshing_enabled, null) + ipv6_bridge_enabled = try(each.value.data.ipv6_bridge_enabled, local.defaults.meraki.networks.networks_wireless_settings.ipv6_bridge_enabled, null) + location_analytics_enabled = try(each.value.data.location_analytics_enabled, local.defaults.meraki.networks.networks_wireless_settings.location_analytics_enabled, null) + upgrade_strategy = try(each.value.data.upgrade_strategy, local.defaults.meraki.networks.networks_wireless_settings.upgrade_strategy, null) + led_lights_on = try(each.value.data.led_lights_on, local.defaults.meraki.networks.networks_wireless_settings.led_lights_on, null) + named_vlans_pool_dhcp_monitoring_enabled = try(each.value.data.named_vlans.pool_dhcp_monitoring.enabled, local.defaults.meraki.networks.networks_wireless_settings.named_vlans.pool_dhcp_monitoring.enabled, null) named_vlans_pool_dhcp_monitoring_duration = try(each.value.data.named_vlans.pool_dhcp_monitoring.duration, local.defaults.meraki.networks.networks_wireless_settings.named_vlans.pool_dhcp_monitoring.duration, null) } @@ -160,86 +160,86 @@ locals { resource "meraki_wireless_ssid" "net_wireless_ssids" { for_each = { for i, v in local.networks_networks_wireless_ssids : i => v } network_id = each.value.network_id - number = each.key - - name = try(each.value.data.name, local.defaults.meraki.networks.networks_wireless_ssids.name, null) - enabled = try(each.value.data.enabled, local.defaults.meraki.networks.networks_wireless_ssids.enabled, null) - auth_mode = try(each.value.data.auth_mode, local.defaults.meraki.networks.networks_wireless_ssids.auth_mode, null) - enterprise_admin_access = try(each.value.data.enterprise_admin_access, local.defaults.meraki.networks.networks_wireless_ssids.enterprise_admin_access, null) - encryption_mode = try(each.value.data.encryption_mode, local.defaults.meraki.networks.networks_wireless_ssids.encryption_mode, null) - psk = try(each.value.data.psk, local.defaults.meraki.networks.networks_wireless_ssids.psk, null) - wpa_encryption_mode = try(each.value.data.wpa_encryption_mode, local.defaults.meraki.networks.networks_wireless_ssids.wpa_encryption_mode, null) - dot11w_enabled = try(each.value.data.dot11w.enabled, local.defaults.meraki.networks.networks_wireless_ssids.dot11w.enabled, null) - dot11w_required = try(each.value.data.dot11w.required, local.defaults.meraki.networks.networks_wireless_ssids.dot11w.required, null) - dot11r_enabled = try(each.value.data.dot11r.enabled, local.defaults.meraki.networks.networks_wireless_ssids.dot11r.enabled, null) - dot11r_adaptive = try(each.value.data.dot11r.adaptive, local.defaults.meraki.networks.networks_wireless_ssids.dot11r.adaptive, null) - splash_page = try(each.value.data.splash_page, local.defaults.meraki.networks.networks_wireless_ssids.splash_page, null) - splash_guest_sponsor_domains = try(each.value.data.splash_guest_sponsor_domains, local.defaults.meraki.networks.networks_wireless_ssids.splash_guest_sponsor_domains, null) - oauth_allowed_domains = try(each.value.data.oauth.allowed_domains, local.defaults.meraki.networks.networks_wireless_ssids.oauth.allowed_domains, null) - local_radius_cache_timeout = try(each.value.data.local_radius.cache_timeout, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.cache_timeout, null) - local_radius_password_authentication_enabled = try(each.value.data.local_radius.password_authentication.enabled, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.password_authentication.enabled, null) - local_radius_certificate_authentication_enabled = try(each.value.data.local_radius.certificate_authentication.enabled, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.enabled, null) - local_radius_certificate_authentication_use_ldap = try(each.value.data.local_radius.certificate_authentication.use_ldap, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.use_ldap, null) - local_radius_certificate_authentication_use_ocsp = try(each.value.data.local_radius.certificate_authentication.use_ocsp, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.use_ocsp, null) - local_radius_certificate_authentication_ocsp_responder_url = try(each.value.data.local_radius.certificate_authentication.ocsp_responder_url, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.ocsp_responder_url, null) + number = each.key + + name = try(each.value.data.name, local.defaults.meraki.networks.networks_wireless_ssids.name, null) + enabled = try(each.value.data.enabled, local.defaults.meraki.networks.networks_wireless_ssids.enabled, null) + auth_mode = try(each.value.data.auth_mode, local.defaults.meraki.networks.networks_wireless_ssids.auth_mode, null) + enterprise_admin_access = try(each.value.data.enterprise_admin_access, local.defaults.meraki.networks.networks_wireless_ssids.enterprise_admin_access, null) + encryption_mode = try(each.value.data.encryption_mode, local.defaults.meraki.networks.networks_wireless_ssids.encryption_mode, null) + psk = try(each.value.data.psk, local.defaults.meraki.networks.networks_wireless_ssids.psk, null) + wpa_encryption_mode = try(each.value.data.wpa_encryption_mode, local.defaults.meraki.networks.networks_wireless_ssids.wpa_encryption_mode, null) + dot11w_enabled = try(each.value.data.dot11w.enabled, local.defaults.meraki.networks.networks_wireless_ssids.dot11w.enabled, null) + dot11w_required = try(each.value.data.dot11w.required, local.defaults.meraki.networks.networks_wireless_ssids.dot11w.required, null) + dot11r_enabled = try(each.value.data.dot11r.enabled, local.defaults.meraki.networks.networks_wireless_ssids.dot11r.enabled, null) + dot11r_adaptive = try(each.value.data.dot11r.adaptive, local.defaults.meraki.networks.networks_wireless_ssids.dot11r.adaptive, null) + splash_page = try(each.value.data.splash_page, local.defaults.meraki.networks.networks_wireless_ssids.splash_page, null) + splash_guest_sponsor_domains = try(each.value.data.splash_guest_sponsor_domains, local.defaults.meraki.networks.networks_wireless_ssids.splash_guest_sponsor_domains, null) + oauth_allowed_domains = try(each.value.data.oauth.allowed_domains, local.defaults.meraki.networks.networks_wireless_ssids.oauth.allowed_domains, null) + local_radius_cache_timeout = try(each.value.data.local_radius.cache_timeout, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.cache_timeout, null) + local_radius_password_authentication_enabled = try(each.value.data.local_radius.password_authentication.enabled, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.password_authentication.enabled, null) + local_radius_certificate_authentication_enabled = try(each.value.data.local_radius.certificate_authentication.enabled, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.enabled, null) + local_radius_certificate_authentication_use_ldap = try(each.value.data.local_radius.certificate_authentication.use_ldap, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.use_ldap, null) + local_radius_certificate_authentication_use_ocsp = try(each.value.data.local_radius.certificate_authentication.use_ocsp, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.use_ocsp, null) + local_radius_certificate_authentication_ocsp_responder_url = try(each.value.data.local_radius.certificate_authentication.ocsp_responder_url, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.ocsp_responder_url, null) local_radius_certificate_authentication_client_root_ca_certificate_contents = try(each.value.data.local_radius.certificate_authentication.client_root_ca_certificate.contents, local.defaults.meraki.networks.networks_wireless_ssids.local_radius.certificate_authentication.client_root_ca_certificate.contents, null) - ldap_servers = try(each.value.data.ldap.servers, local.defaults.meraki.networks.networks_wireless_ssids.ldap.servers, null) - ldap_credentials_distinguished_name = try(each.value.data.ldap.credentials.distinguished_name, local.defaults.meraki.networks.networks_wireless_ssids.ldap.credentials.distinguished_name, null) - ldap_credentials_password = try(each.value.data.ldap.credentials.password, local.defaults.meraki.networks.networks_wireless_ssids.ldap.credentials.password, null) - ldap_base_distinguished_name = try(each.value.data.ldap.base_distinguished_name, local.defaults.meraki.networks.networks_wireless_ssids.ldap.base_distinguished_name, null) - ldap_server_ca_certificate_contents = try(each.value.data.ldap.server_ca_certificate.contents, local.defaults.meraki.networks.networks_wireless_ssids.ldap.server_ca_certificate.contents, null) - active_directory_servers = try(each.value.data.active_directory.servers, local.defaults.meraki.networks.networks_wireless_ssids.active_directory.servers, null) - active_directory_credentials_logon_name = try(each.value.data.active_directory.credentials.logon_name, local.defaults.meraki.networks.networks_wireless_ssids.active_directory.credentials.logon_name, null) - active_directory_credentials_password = try(each.value.data.active_directory.credentials.password, local.defaults.meraki.networks.networks_wireless_ssids.active_directory.credentials.password, null) - radius_servers = try(each.value.data.radius_servers, local.defaults.meraki.networks.networks_wireless_ssids.radius_servers, null) - radius_proxy_enabled = try(each.value.data.radius_proxy_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_proxy_enabled, null) - radius_testing_enabled = try(each.value.data.radius_testing_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_testing_enabled, null) - radius_called_station_id = try(each.value.data.radius_called_station_id, local.defaults.meraki.networks.networks_wireless_ssids.radius_called_station_id, null) - radius_authentication_nas_id = try(each.value.data.radius_authentication_nas_id, local.defaults.meraki.networks.networks_wireless_ssids.radius_authentication_nas_id, null) - radius_server_timeout = try(each.value.data.radius_server_timeout, local.defaults.meraki.networks.networks_wireless_ssids.radius_server_timeout, null) - radius_server_attempts_limit = try(each.value.data.radius_server_attempts_limit, local.defaults.meraki.networks.networks_wireless_ssids.radius_server_attempts_limit, null) - radius_fallback_enabled = try(each.value.data.radius_fallback_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_fallback_enabled, null) - radius_coa_enabled = try(each.value.data.radius_coa_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_coa_enabled, null) - radius_failover_policy = try(each.value.data.radius_failover_policy, local.defaults.meraki.networks.networks_wireless_ssids.radius_failover_policy, null) - radius_load_balancing_policy = try(each.value.data.radius_load_balancing_policy, local.defaults.meraki.networks.networks_wireless_ssids.radius_load_balancing_policy, null) - radius_accounting_enabled = try(each.value.data.radius_accounting_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_accounting_enabled, null) - radius_accounting_servers = try(each.value.data.radius_accounting_servers, local.defaults.meraki.networks.networks_wireless_ssids.radius_accounting_servers, null) - radius_accounting_interim_interval = try(each.value.data.radius_accounting_interim_interval, local.defaults.meraki.networks.networks_wireless_ssids.radius_accounting_interim_interval, null) - radius_attribute_for_group_policies = try(each.value.data.radius_attribute_for_group_policies, local.defaults.meraki.networks.networks_wireless_ssids.radius_attribute_for_group_policies, null) - ip_assignment_mode = try(each.value.data.ip_assignment_mode, local.defaults.meraki.networks.networks_wireless_ssids.ip_assignment_mode, null) - use_vlan_tagging = try(each.value.data.use_vlan_tagging, local.defaults.meraki.networks.networks_wireless_ssids.use_vlan_tagging, null) - concentrator_network_id = try(each.value.data.concentrator_network_id, local.defaults.meraki.networks.networks_wireless_ssids.concentrator_network_id, null) - secondary_concentrator_network_id = try(each.value.data.secondary_concentrator_network_id, local.defaults.meraki.networks.networks_wireless_ssids.secondary_concentrator_network_id, null) - disassociate_clients_on_vpn_failover = try(each.value.data.disassociate_clients_on_vpn_failover, local.defaults.meraki.networks.networks_wireless_ssids.disassociate_clients_on_vpn_failover, null) - vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.networks_wireless_ssids.vlan_id, null) - default_vlan_id = try(each.value.data.default_vlan_id, local.defaults.meraki.networks.networks_wireless_ssids.default_vlan_id, null) - ap_tags_and_vlan_ids = try(each.value.data.ap_tags_and_vlan_ids, local.defaults.meraki.networks.networks_wireless_ssids.ap_tags_and_vlan_ids, null) - walled_garden_enabled = try(each.value.data.walled_garden_enabled, local.defaults.meraki.networks.networks_wireless_ssids.walled_garden_enabled, null) - walled_garden_ranges = try(each.value.data.walled_garden_ranges, local.defaults.meraki.networks.networks_wireless_ssids.walled_garden_ranges, null) - gre_concentrator_host = try(each.value.data.gre.concentrator.host, local.defaults.meraki.networks.networks_wireless_ssids.gre.concentrator.host, null) - gre_key = try(each.value.data.gre.key, local.defaults.meraki.networks.networks_wireless_ssids.gre.key, null) - radius_override = try(each.value.data.radius_override, local.defaults.meraki.networks.networks_wireless_ssids.radius_override, null) - radius_guest_vlan_enabled = try(each.value.data.radius_guest_vlan_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_guest_vlan_enabled, null) - radius_guest_vlan_id = try(each.value.data.radius_guest_vlan_id, local.defaults.meraki.networks.networks_wireless_ssids.radius_guest_vlan_id, null) - min_bitrate = try(each.value.data.min_bitrate, local.defaults.meraki.networks.networks_wireless_ssids.min_bitrate, null) - band_selection = try(each.value.data.band_selection, local.defaults.meraki.networks.networks_wireless_ssids.band_selection, null) - per_client_bandwidth_limit_up = try(each.value.data.per_client_bandwidth_limit_up, local.defaults.meraki.networks.networks_wireless_ssids.per_client_bandwidth_limit_up, null) - per_client_bandwidth_limit_down = try(each.value.data.per_client_bandwidth_limit_down, local.defaults.meraki.networks.networks_wireless_ssids.per_client_bandwidth_limit_down, null) - per_ssid_bandwidth_limit_up = try(each.value.data.per_ssid_bandwidth_limit_up, local.defaults.meraki.networks.networks_wireless_ssids.per_ssid_bandwidth_limit_up, null) - per_ssid_bandwidth_limit_down = try(each.value.data.per_ssid_bandwidth_limit_down, local.defaults.meraki.networks.networks_wireless_ssids.per_ssid_bandwidth_limit_down, null) - lan_isolation_enabled = try(each.value.data.lan_isolation_enabled, local.defaults.meraki.networks.networks_wireless_ssids.lan_isolation_enabled, null) - visible = try(each.value.data.visible, local.defaults.meraki.networks.networks_wireless_ssids.visible, null) - available_on_all_aps = try(each.value.data.available_on_all_aps, local.defaults.meraki.networks.networks_wireless_ssids.available_on_all_aps, null) - availability_tags = try(each.value.data.availability_tags, local.defaults.meraki.networks.networks_wireless_ssids.availability_tags, null) - mandatory_dhcp_enabled = try(each.value.data.mandatory_dhcp_enabled, local.defaults.meraki.networks.networks_wireless_ssids.mandatory_dhcp_enabled, null) - adult_content_filtering_enabled = try(each.value.data.adult_content_filtering_enabled, local.defaults.meraki.networks.networks_wireless_ssids.adult_content_filtering_enabled, null) - dns_rewrite_enabled = try(each.value.data.dns_rewrite.enabled, local.defaults.meraki.networks.networks_wireless_ssids.dns_rewrite.enabled, null) - dns_rewrite_dns_custom_nameservers = try(each.value.data.dns_rewrite.dns_custom_nameservers, local.defaults.meraki.networks.networks_wireless_ssids.dns_rewrite.dns_custom_nameservers, null) - speed_burst_enabled = try(each.value.data.speed_burst.enabled, local.defaults.meraki.networks.networks_wireless_ssids.speed_burst.enabled, null) - named_vlans_tagging_enabled = try(each.value.data.named_vlans.tagging.enabled, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.tagging.enabled, null) - named_vlans_tagging_default_vlan_name = try(each.value.data.named_vlans.tagging.default_vlan_name, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.tagging.default_vlan_name, null) - named_vlans_tagging_by_ap_tags = try(each.value.data.named_vlans.tagging.by_ap_tags, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.tagging.by_ap_tags, null) - named_vlans_radius_guest_vlan_enabled = try(each.value.data.named_vlans.radius.guest_vlan.enabled, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.radius.guest_vlan.enabled, null) - named_vlans_radius_guest_vlan_name = try(each.value.data.named_vlans.radius.guest_vlan.name, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.radius.guest_vlan.name, null) + ldap_servers = try(each.value.data.ldap.servers, local.defaults.meraki.networks.networks_wireless_ssids.ldap.servers, null) + ldap_credentials_distinguished_name = try(each.value.data.ldap.credentials.distinguished_name, local.defaults.meraki.networks.networks_wireless_ssids.ldap.credentials.distinguished_name, null) + ldap_credentials_password = try(each.value.data.ldap.credentials.password, local.defaults.meraki.networks.networks_wireless_ssids.ldap.credentials.password, null) + ldap_base_distinguished_name = try(each.value.data.ldap.base_distinguished_name, local.defaults.meraki.networks.networks_wireless_ssids.ldap.base_distinguished_name, null) + ldap_server_ca_certificate_contents = try(each.value.data.ldap.server_ca_certificate.contents, local.defaults.meraki.networks.networks_wireless_ssids.ldap.server_ca_certificate.contents, null) + active_directory_servers = try(each.value.data.active_directory.servers, local.defaults.meraki.networks.networks_wireless_ssids.active_directory.servers, null) + active_directory_credentials_logon_name = try(each.value.data.active_directory.credentials.logon_name, local.defaults.meraki.networks.networks_wireless_ssids.active_directory.credentials.logon_name, null) + active_directory_credentials_password = try(each.value.data.active_directory.credentials.password, local.defaults.meraki.networks.networks_wireless_ssids.active_directory.credentials.password, null) + radius_servers = try(each.value.data.radius_servers, local.defaults.meraki.networks.networks_wireless_ssids.radius_servers, null) + radius_proxy_enabled = try(each.value.data.radius_proxy_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_proxy_enabled, null) + radius_testing_enabled = try(each.value.data.radius_testing_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_testing_enabled, null) + radius_called_station_id = try(each.value.data.radius_called_station_id, local.defaults.meraki.networks.networks_wireless_ssids.radius_called_station_id, null) + radius_authentication_nas_id = try(each.value.data.radius_authentication_nas_id, local.defaults.meraki.networks.networks_wireless_ssids.radius_authentication_nas_id, null) + radius_server_timeout = try(each.value.data.radius_server_timeout, local.defaults.meraki.networks.networks_wireless_ssids.radius_server_timeout, null) + radius_server_attempts_limit = try(each.value.data.radius_server_attempts_limit, local.defaults.meraki.networks.networks_wireless_ssids.radius_server_attempts_limit, null) + radius_fallback_enabled = try(each.value.data.radius_fallback_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_fallback_enabled, null) + radius_coa_enabled = try(each.value.data.radius_coa_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_coa_enabled, null) + radius_failover_policy = try(each.value.data.radius_failover_policy, local.defaults.meraki.networks.networks_wireless_ssids.radius_failover_policy, null) + radius_load_balancing_policy = try(each.value.data.radius_load_balancing_policy, local.defaults.meraki.networks.networks_wireless_ssids.radius_load_balancing_policy, null) + radius_accounting_enabled = try(each.value.data.radius_accounting_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_accounting_enabled, null) + radius_accounting_servers = try(each.value.data.radius_accounting_servers, local.defaults.meraki.networks.networks_wireless_ssids.radius_accounting_servers, null) + radius_accounting_interim_interval = try(each.value.data.radius_accounting_interim_interval, local.defaults.meraki.networks.networks_wireless_ssids.radius_accounting_interim_interval, null) + radius_attribute_for_group_policies = try(each.value.data.radius_attribute_for_group_policies, local.defaults.meraki.networks.networks_wireless_ssids.radius_attribute_for_group_policies, null) + ip_assignment_mode = try(each.value.data.ip_assignment_mode, local.defaults.meraki.networks.networks_wireless_ssids.ip_assignment_mode, null) + use_vlan_tagging = try(each.value.data.use_vlan_tagging, local.defaults.meraki.networks.networks_wireless_ssids.use_vlan_tagging, null) + concentrator_network_id = try(each.value.data.concentrator_network_id, local.defaults.meraki.networks.networks_wireless_ssids.concentrator_network_id, null) + secondary_concentrator_network_id = try(each.value.data.secondary_concentrator_network_id, local.defaults.meraki.networks.networks_wireless_ssids.secondary_concentrator_network_id, null) + disassociate_clients_on_vpn_failover = try(each.value.data.disassociate_clients_on_vpn_failover, local.defaults.meraki.networks.networks_wireless_ssids.disassociate_clients_on_vpn_failover, null) + vlan_id = try(each.value.data.vlan_id, local.defaults.meraki.networks.networks_wireless_ssids.vlan_id, null) + default_vlan_id = try(each.value.data.default_vlan_id, local.defaults.meraki.networks.networks_wireless_ssids.default_vlan_id, null) + ap_tags_and_vlan_ids = try(each.value.data.ap_tags_and_vlan_ids, local.defaults.meraki.networks.networks_wireless_ssids.ap_tags_and_vlan_ids, null) + walled_garden_enabled = try(each.value.data.walled_garden_enabled, local.defaults.meraki.networks.networks_wireless_ssids.walled_garden_enabled, null) + walled_garden_ranges = try(each.value.data.walled_garden_ranges, local.defaults.meraki.networks.networks_wireless_ssids.walled_garden_ranges, null) + gre_concentrator_host = try(each.value.data.gre.concentrator.host, local.defaults.meraki.networks.networks_wireless_ssids.gre.concentrator.host, null) + gre_key = try(each.value.data.gre.key, local.defaults.meraki.networks.networks_wireless_ssids.gre.key, null) + radius_override = try(each.value.data.radius_override, local.defaults.meraki.networks.networks_wireless_ssids.radius_override, null) + radius_guest_vlan_enabled = try(each.value.data.radius_guest_vlan_enabled, local.defaults.meraki.networks.networks_wireless_ssids.radius_guest_vlan_enabled, null) + radius_guest_vlan_id = try(each.value.data.radius_guest_vlan_id, local.defaults.meraki.networks.networks_wireless_ssids.radius_guest_vlan_id, null) + min_bitrate = try(each.value.data.min_bitrate, local.defaults.meraki.networks.networks_wireless_ssids.min_bitrate, null) + band_selection = try(each.value.data.band_selection, local.defaults.meraki.networks.networks_wireless_ssids.band_selection, null) + per_client_bandwidth_limit_up = try(each.value.data.per_client_bandwidth_limit_up, local.defaults.meraki.networks.networks_wireless_ssids.per_client_bandwidth_limit_up, null) + per_client_bandwidth_limit_down = try(each.value.data.per_client_bandwidth_limit_down, local.defaults.meraki.networks.networks_wireless_ssids.per_client_bandwidth_limit_down, null) + per_ssid_bandwidth_limit_up = try(each.value.data.per_ssid_bandwidth_limit_up, local.defaults.meraki.networks.networks_wireless_ssids.per_ssid_bandwidth_limit_up, null) + per_ssid_bandwidth_limit_down = try(each.value.data.per_ssid_bandwidth_limit_down, local.defaults.meraki.networks.networks_wireless_ssids.per_ssid_bandwidth_limit_down, null) + lan_isolation_enabled = try(each.value.data.lan_isolation_enabled, local.defaults.meraki.networks.networks_wireless_ssids.lan_isolation_enabled, null) + visible = try(each.value.data.visible, local.defaults.meraki.networks.networks_wireless_ssids.visible, null) + available_on_all_aps = try(each.value.data.available_on_all_aps, local.defaults.meraki.networks.networks_wireless_ssids.available_on_all_aps, null) + availability_tags = try(each.value.data.availability_tags, local.defaults.meraki.networks.networks_wireless_ssids.availability_tags, null) + mandatory_dhcp_enabled = try(each.value.data.mandatory_dhcp_enabled, local.defaults.meraki.networks.networks_wireless_ssids.mandatory_dhcp_enabled, null) + adult_content_filtering_enabled = try(each.value.data.adult_content_filtering_enabled, local.defaults.meraki.networks.networks_wireless_ssids.adult_content_filtering_enabled, null) + dns_rewrite_enabled = try(each.value.data.dns_rewrite.enabled, local.defaults.meraki.networks.networks_wireless_ssids.dns_rewrite.enabled, null) + dns_rewrite_dns_custom_nameservers = try(each.value.data.dns_rewrite.dns_custom_nameservers, local.defaults.meraki.networks.networks_wireless_ssids.dns_rewrite.dns_custom_nameservers, null) + speed_burst_enabled = try(each.value.data.speed_burst.enabled, local.defaults.meraki.networks.networks_wireless_ssids.speed_burst.enabled, null) + named_vlans_tagging_enabled = try(each.value.data.named_vlans.tagging.enabled, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.tagging.enabled, null) + named_vlans_tagging_default_vlan_name = try(each.value.data.named_vlans.tagging.default_vlan_name, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.tagging.default_vlan_name, null) + named_vlans_tagging_by_ap_tags = try(each.value.data.named_vlans.tagging.by_ap_tags, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.tagging.by_ap_tags, null) + named_vlans_radius_guest_vlan_enabled = try(each.value.data.named_vlans.radius.guest_vlan.enabled, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.radius.guest_vlan.enabled, null) + named_vlans_radius_guest_vlan_name = try(each.value.data.named_vlans.radius.guest_vlan.name, local.defaults.meraki.networks.networks_wireless_ssids.named_vlans.radius.guest_vlan.name, null) } diff --git a/versions.tf b/versions.tf index 6f6a922..e7705c1 100644 --- a/versions.tf +++ b/versions.tf @@ -3,8 +3,8 @@ terraform { required_providers { meraki = { - source = "CiscoDevNet/meraki" - version = "0.1.2" + source = "CiscoDevNet/meraki" + version = "0.1.2" } utils = {