We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4189d7 commit 3505e87Copy full SHA for 3505e87
1 file changed
cc_fabric.tf
@@ -41,7 +41,7 @@ resource "catalystcenter_transit_network" "transit" {
41
routing_protocol_name = try(each.value.type, "") == "IP_BASED_TRANSIT" ? try(each.value.routing_protocol_name, local.defaults.catalyst_center.fabric.transits.routing_protocol_name, null) : null
42
autonomous_system_number = try(each.value.type, "") == "IP_BASED_TRANSIT" ? try(each.value.autonomous_system_number, local.defaults.catalyst_center.fabric.transits.autonomous_system_number, null) : null
43
is_multicast_over_transit_enabled = try(each.value.type, "") != "IP_BASED_TRANSIT" ? try(each.value.multicast_over_sda_transit, local.defaults.catalyst_center.fabric.transits.multicast_over_sda_transit, null) : null
44
- control_plane_network_device_ids = try(each.value.type, "") != "IP_BASED_TRANSIT" ? [for device in try(each.value.control_plane_devices, []) : lookup(local.device_name_to_id, device)] : null
+ control_plane_network_device_ids = try(each.value.type, "") != "IP_BASED_TRANSIT" ? [for device in try(each.value.control_plane_devices, []) : try(local.device_name_to_id[device], null)] : null
45
}
46
47
resource "catalystcenter_fabric_site" "fabric_site" {
0 commit comments