forked from netascode/terraform-iosxe-nac-iosxe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiosxe_udld.tf
More file actions
9 lines (8 loc) · 754 Bytes
/
Copy pathiosxe_udld.tf
File metadata and controls
9 lines (8 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
resource "iosxe_udld" "udld" {
for_each = { for device in local.devices : device.name => device if try(local.device_config[device.name].udld, null) != null }
device = each.value.name
aggressive = try(local.device_config[each.value.name].udld.aggressive, local.defaults.iosxe.configuration.udld.aggressive, null)
enable = try(local.device_config[each.value.name].udld.enable, local.defaults.iosxe.configuration.udld.enable, null)
message_time = try(local.device_config[each.value.name].udld.message_time, local.defaults.iosxe.configuration.udld.message_time, null)
recovery_interval = try(local.device_config[each.value.name].udld.recovery_interval, local.defaults.iosxe.configuration.udld.recovery_interval, null)
}