-
Notifications
You must be signed in to change notification settings - Fork 0
/
ethernet_network_control.tf
27 lines (27 loc) · 1.11 KB
/
ethernet_network_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
#__________________________________________________________________
#
# Intersight Ethernet Network Control Policy
# GUI Location: Policies > Create Policy > Ethernet Network Control
#__________________________________________________________________
resource "intersight_fabric_eth_network_control_policy" "map" {
for_each = local.ethernet_network_control
cdp_enabled = each.value.cdp_enable
description = coalesce(each.value.description, "${each.value.name} Ethernet Network Control Policy.")
forge_mac = each.value.mac_security_forge
name = each.value.name
mac_registration_mode = each.value.mac_register_mode
uplink_fail_action = each.value.action_on_uplink_fail
lldp_settings {
object_type = "fabric.LldpSettings"
receive_enabled = each.value.lldp_enable_receive
transmit_enabled = each.value.lldp_enable_transmit
}
organization { moid = var.orgs[each.value.org] }
dynamic "tags" {
for_each = { for v in each.value.tags : v.key => v }
content {
key = tags.value.key
value = tags.value.value
}
}
}