Skip to content

Commit

Permalink
minor fix for aaep mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed Feb 24, 2024
1 parent eac2002 commit 164abb0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ locals {
vlan_list = length(regexall("(,|-)", jsonencode(v.allowed_vlans))) > 0 ? flatten([
for s in v.vlan_split : length(regexall("-", s)) > 0 ? [for v in range(tonumber(
element(split("-", s), 0)), (tonumber(element(split("-", s), 1)) + 1)) : tonumber(v)] : [tonumber(s)]
]) : tonumber(v.vlan_split)
]) : [for s in v.vlan_split : tonumber(s)]
})]
epg_to_aaeps = { for i in flatten([
for k, v in local.application_epgs : [
Expand Down
31 changes: 31 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*_____________________________________________________________________________________________________________________
Application Profile — Outputs
_______________________________________________________________________________________________________________________
*/
output "application_profiles" {
description = <<-EOT
Identifiers for Application Profiles:
Expand Down Expand Up @@ -55,6 +60,11 @@ output "application_profiles" {
}
}

/*_____________________________________________________________________________________________________________________
Contracts — Outputs
_______________________________________________________________________________________________________________________
*/
output "contracts" {
description = <<-EOT
Identifiers for Contracts:
Expand Down Expand Up @@ -86,6 +96,12 @@ output "contracts" {
} : {}
}
}

/*_____________________________________________________________________________________________________________________
Networking — Outputs
_______________________________________________________________________________________________________________________
*/
output "networking" {
description = <<-EOT
Identifiers for Tenant Networking:
Expand Down Expand Up @@ -162,6 +178,11 @@ output "networking" {
}
}

/*_____________________________________________________________________________________________________________________
Nexus Dashboard Orchestrator — Outputs
_______________________________________________________________________________________________________________________
*/
output "nd_orchestrator" {
description = <<-EOT
Identifiers for Nexus Dashboard Orchestrator:
Expand All @@ -180,6 +201,11 @@ output "nd_orchestrator" {
}
}

/*_____________________________________________________________________________________________________________________
Tenant Policies — Outputs
_______________________________________________________________________________________________________________________
*/
output "policies" {
description = <<-EOT
Identifiers for Tenant Policies:
Expand Down Expand Up @@ -248,6 +274,11 @@ output "policies" {
} }
}

/*_____________________________________________________________________________________________________________________
Tenant — Outputs
_______________________________________________________________________________________________________________________
*/
output "tenants" {
description = "Tenant Identifiers."
value = local.controller.type == "apic" ? { for v in sort(keys(aci_tenant.map)
Expand Down

0 comments on commit 164abb0

Please sign in to comment.