-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcc_lan_automation.tf
26 lines (23 loc) · 3.14 KB
/
cc_lan_automation.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
resource "catalystcenter_lan_automation" "lanauto_link" {
for_each = { for lanauto in try(local.catalyst_center.lan_automation, []) : lanauto.name => lanauto if lanauto.type == "link" && lanauto.status == "START" }
discovered_device_site_name_hierarchy = try(each.value.discovered_device_site_name_hierarchy, local.defaults.catalyst_center.lan_automation.discovered_device_site_name_hierarchy, null)
primary_device_management_ip_address = try(each.value.primary_device_management_ip_address, local.defaults.catalyst_center.lan_automation.primary_device_management_ip_address, null)
peer_device_management_ip_address = try(each.value.peer_device_management_ip_address, local.defaults.catalyst_center.lan_automation.peer_device_management_ip_address, null)
primary_device_interface_names = try(each.value.primary_device_interface_names, local.defaults.catalyst_center.lan_automation.primary_device_interface_names, null)
ip_pools = try(each.value.ip_pools, local.defaults.catalyst_center.lan_automation.ip_pools, null)
multicast_enabled = try(each.value.multicast_enabled, local.defaults.catalyst_center.lan_automation.multicast_enabled, null)
redistribute_isis_to_bgp = try(each.value.redistribute_isis_to_bgp, local.defaults.catalyst_center.lan_automation.redistribute_isis_to_bgp, null)
isis_domain_password = try(each.value.isis_domain_password, local.defaults.catalyst_center.lan_automation.isis_domain_password, null)
}
resource "catalystcenter_lan_automation" "lanauto_edge" {
for_each = { for lanauto in try(local.catalyst_center.lan_automation, []) : lanauto.name => lanauto if lanauto.type == "devices" && lanauto.status == "START" }
discovered_device_site_name_hierarchy = try(each.value.discovered_device_site_name_hierarchy, local.defaults.catalyst_center.lan_automation.discovered_device_site_name_hierarchy, null)
primary_device_management_ip_address = try(each.value.primary_device_management_ip_address, local.defaults.catalyst_center.lan_automation.primary_device_management_ip_address, null)
peer_device_management_ip_address = try(each.value.peer_device_management_ip_address, local.defaults.catalyst_center.lan_automation.peer_device_management_ip_address, null)
primary_device_interface_names = try(each.value.primary_device_interface_names, local.defaults.catalyst_center.lan_automation.primary_device_interface_names, null)
ip_pools = try(each.value.ip_pools, local.defaults.catalyst_center.lan_automation.ip_pools, null)
multicast_enabled = try(each.value.multicast_enabled, local.defaults.catalyst_center.lan_automation.multicast_enabled, null)
redistribute_isis_to_bgp = try(each.value.redistribute_isis_to_bgp, local.defaults.catalyst_center.lan_automation.redistribute_isis_to_bgp, null)
isis_domain_password = try(each.value.isis_domain_password, local.defaults.catalyst_center.lan_automation.isis_domain_password, null)
host_name_prefix = try(each.value.host_name_prefix, local.defaults.catalyst_center.lan_automation.host_name_prefix, null)
}