Skip to content

Commit

Permalink
fix for static endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
juchowan committed Jan 13, 2025
1 parent f6143d9 commit ba0222b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/terraform-aci-endpoint-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ resource "aci_rest_managed" "fvRsStCEpToPathEp_port" {
}

resource "aci_rest_managed" "fvRsStCEpToPathEp_channel" {
for_each = { for sp_ep in var.static_endpoints : sp_ep.name => sp_ep if sp_ep.channel != null }
for_each = { for sp_ep in var.static_endpoints : (sp_ep.name != "" ? sp_ep.name : sp_ep.mac) => sp_ep if sp_ep.channel != null }
dn = "${aci_rest_managed.fvStCEp[(each.value.name != "" ? each.value.name : each.value.mac)].dn}/rsstCEpToPathEp-[${format(each.value.node2_id != null ? "topology/pod-%s/protpaths-%s-%s/pathep-[%s]" : "topology/pod-%s/paths-%s/pathep-[%[4]s]", each.value.pod_id, each.value.node_id, each.value.node2_id, each.value.channel)}]"
class_name = "fvRsStCEpToPathEp"
content = {
Expand Down

0 comments on commit ba0222b

Please sign in to comment.