-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitch_control.tf
32 lines (32 loc) · 1.36 KB
/
switch_control.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
27
28
29
30
31
32
#__________________________________________________________________
#
# Intersight Switch Control Policy
# GUI Location: Policies > Create Policy > Switch Control
#__________________________________________________________________
resource "intersight_fabric_switch_control_policy" "map" {
for_each = local.switch_control
description = coalesce(each.value.description, "${each.value.name} Switch Control Policy.")
ethernet_switching_mode = each.value.switching_mode_ethernet
fabric_pc_vhba_reset = each.value.fabric_port_channel_vhba_reset
fc_switching_mode = each.value.switching_mode_fc
name = each.value.name
reserved_vlan_start_id = each.value.reserved_vlan_start_id
#
vlan_port_optimization_enabled = each.value.vlan_port_count_optimization
mac_aging_settings {
mac_aging_option = each.value.mac_address_table_aging
mac_aging_time = each.value.mac_address_table_aging == "Custom" ? each.value.mac_aging_time : null
}
organization { moid = var.orgs[each.value.org] }
udld_settings {
message_interval = each.value.udld_global_settings.message_interval
recovery_action = each.value.udld_global_settings.recovery_action
}
dynamic "tags" {
for_each = { for v in each.value.tags : v.key => v }
content {
key = tags.value.key
value = tags.value.value
}
}
}