@@ -320,6 +320,22 @@ resource "catalystcenter_fabric_device" "edge_device" {
320320 depends_on = [catalystcenter_device_role . role , catalystcenter_provision_devices . provision_devices , catalystcenter_provision_device . provision_device , catalystcenter_fabric_device . border_device ]
321321}
322322
323+ resource "catalystcenter_fabric_ewlc" "ewlc_device" {
324+ for_each = { for device in try (local. catalyst_center . inventory . devices , []) : device . name => device if strcontains (device. state , " PROVISION" ) && contains (try (device. fabric_roles , []), " EMBEDDED_WIRELESS_CONTROLLER_NODE" ) && contains (local. sites , try (device. fabric_site , " NONE" )) }
325+
326+ network_device_id = coalesce (
327+ try (lookup (local. device_name_to_id , each. value . name , null ), null ),
328+ try (lookup (local. device_name_to_id , each. value . fqdn_name , null ), null ),
329+ try (lookup (local. device_ip_to_id , each. value . device_ip , null ), null )
330+ )
331+ fabric_id = try (catalystcenter_fabric_zone. fabric_zone [each . value . fabric_zone ]. id , catalystcenter_fabric_site. fabric_site [each . value . fabric_site ]. id , null )
332+ enable_wireless = try (each. value . enable_wireless , local. defaults . catalyst_center . inventory . devices . enable_wireless , true )
333+ enable_rolling_ap_upgrade = try (each. value . enable_rolling_ap_upgrade , local. defaults . catalyst_center . inventory . devices . enable_rolling_ap_upgrade , false )
334+ ap_reboot_percentage = try (each. value . ap_reboot_percentage , local. defaults . catalyst_center . inventory . devices . ap_reboot_percentage , 25 )
335+
336+ depends_on = [catalystcenter_device_role . role , catalystcenter_provision_devices . provision_devices , catalystcenter_provision_device . provision_device , catalystcenter_fabric_device . border_device ]
337+ }
338+
323339resource "catalystcenter_fabric_vlan_to_ssid" "vlan_to_ssid" {
324340 for_each = local. wireless_controllers ? { for site in try (local. catalyst_center . fabric . fabric_sites , []) : site . name => site if length (keys (catalystcenter_fabric_device. wireless_controller )) > 0 && length (try (site. wireless_ssids , [])) != 0 } : {}
325341
0 commit comments