-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
97 lines (88 loc) · 4.05 KB
/
outputs.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*_____________________________________________________________________________________________________________________
Fabric Inventory — Outputs
_______________________________________________________________________________________________________________________
*/
output "fabric_inventory" {
description = "Fabric Membership Identifiers: Fabric => Inventory => Fabric Membership"
value = {
fabric_membership = {
for v in sort(keys(aci_rest_managed.fabric_membership)
) : v => aci_rest_managed.fabric_membership[v].id
}
}
}
/*_____________________________________________________________________________________________________________________
Interface Selectors — Outputs
_______________________________________________________________________________________________________________________
*/
output "interface_selectors" {
description = <<EOF
Interface Profile Identifiers
interfaces:
Fabric => Access Policies => Interfaces => Leaf Interfaces => Profiles => Selectors
Fabric => Access Policies => Interfaces => Spine Interfaces => Profiles => Selectors
EOF
value = {
leaf_interface_selectors = {
for v in sort(keys(aci_access_port_selector.map)) : v => {
dn = aci_access_port_selector.map[v].id
policy_group = aci_access_port_selector.map[v].relation_infra_rs_acc_base_grp
}
}
spine_interface_selectors = {
for v in sort(keys(aci_rest_managed.spine_interface_policy_group)) : v => {
dn = aci_rest_managed.spine_interface_policy_group[v].id
policy_group = aci_rest_managed.spine_interface_policy_group[v].content.tDn
}
}
}
}
/*_____________________________________________________________________________________________________________________
Static Node Mgmt Addresses — Outputs
_______________________________________________________________________________________________________________________
*/
output "static_node_mgmt_address" {
description = "Static Node Management addresses: Tenants: {mgmt} => Node Management Addresses => Static Node Management Addresses"
value = { for v in sort(keys(aci_static_node_mgmt_address.map)) : v => aci_static_node_mgmt_address.map[v].id }
}
/*_____________________________________________________________________________________________________________________
Switch Profiles — Outputs
_______________________________________________________________________________________________________________________
*/
output "switches" {
description = <<EOF
Interface Profile Identifiers
interfaces:
leaf_interface_profiles: Fabric => Access Policies => Interfaces => Leaf Interfaces => Profiles
spine_interface_profiles: Fabric => Access Policies => Interfaces => Spine Interfaces => Profiles
Switch Identifiers
switches:
leaf_profiles: Fabric => Access Policies => Switches => Leaf Switches => Profiles
spine_profiles: Fabric => Access Policies => Switches => Spine Switches => Profiles
EOF
value = {
leaf_interface_profiles = {
for v in sort(keys(aci_leaf_interface_profile.map)) : v => aci_leaf_interface_profile.map[v].id
}
leaf_profiles = {
for v in sort(keys(aci_leaf_profile.map)) : v => aci_leaf_profile.map[v].id
}
spine_interface_profiles = {
for v in sort(keys(aci_spine_interface_profile.map)) : v => aci_spine_interface_profile.map[v].id
}
spine_profiles = {
for v in sort(keys(aci_spine_profile.map)) : v => aci_spine_profile.map[v].id
}
}
}
/*_____________________________________________________________________________________________________________________
VPC Domains — Outputs
_______________________________________________________________________________________________________________________
*/
output "vpc_domains" {
description = "VPC Domain Identifiers: Fabric => Access Policies => Policies => Switch => Virtual Port Channel default"
value = {
for v in sort(keys(aci_vpc_explicit_protection_group.vpc_domains)
) : v => aci_vpc_explicit_protection_group.vpc_domains[v].id
}
}