-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathethernet_qos.tf
31 lines (30 loc) · 1.17 KB
/
ethernet_qos.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
#__________________________________________________________________
#
# Intersight Ethernet QoS Policy
# GUI Location: Policies > Create Policy > Ethernet QoS
#__________________________________________________________________
resource "intersight_vnic_eth_qos_policy" "map" {
for_each = { for v in lookup(local.policies, "ethernet_qos", []) : v.name => merge(local.defaults.ethernet_qos, v, {
name = "${local.name_prefix.ethernet_qos}${v.name}${local.name_suffix.ethernet_qos}"
tags = lookup(v, "tags", var.policies.global_settings.tags)
}) }
description = coalesce(each.value.description, "${each.value.name} Ethernet QoS Policy.")
burst = each.value.burst
cos = each.value.cos
mtu = each.value.mtu
name = each.value.name
priority = each.value.priority
rate_limit = each.value.rate_limit
trust_host_cos = each.value.enable_trust_host_cos
organization {
moid = local.orgs[local.organization]
object_type = "organization.Organization"
}
dynamic "tags" {
for_each = { for v in each.value.tags : v.key => v }
content {
key = tags.value.key
value = tags.value.value
}
}
}