@@ -135,55 +135,55 @@ locals {
135
135
}
136
136
137
137
# ===================================
138
- # Global - CDP
138
+ # Merge - CDP
139
139
# ===================================
140
140
cdp_pre_built = local. pre_cfg . cdp_interface == true ? local. pre_built . cdp_interface : []
141
141
cdp_user = lookup (local. interface , " cdp_interface" , [])
142
142
cdp_policies = concat (local. cdp_pre_built , local. cdp_user )
143
143
# ===================================
144
- # Global - Fibre-Channel Interface
144
+ # Merge - Fibre-Channel Interface
145
145
# ===================================
146
146
fc_pre_built = local. pre_cfg . fibre_channel_interface == true ? local. pre_built . fibre_channel_interface : []
147
147
fc_user = lookup (local. interface , " fibre_channel_interface" , [])
148
148
fc_policies = concat (local. fc_pre_built , local. fc_user )
149
149
# ===================================
150
- # Global - L2 Interface
150
+ # Merge - L2 Interface
151
151
# ===================================
152
152
l2_pre_built = local. pre_cfg . l2_interface == true ? local. pre_built . l2_interface : []
153
153
l2_user = lookup (local. interface , " l2_interface" , [])
154
154
l2_policies = concat (local. l2_pre_built , local. l2_user )
155
155
# ===================================
156
- # Global - Link Level
156
+ # Merge - Link Level
157
157
# ===================================
158
158
ll_pre_built = local. pre_cfg . link_level == true ? local. pre_built . link_level : []
159
159
ll_user = lookup (local. interface , " link_level" , [])
160
160
ll_policies = concat (local. ll_pre_built , local. ll_user )
161
161
# ===================================
162
- # Global - LLDP
162
+ # Merge - LLDP
163
163
# ===================================
164
164
lldp_pre_built = local. pre_cfg . lldp_interface == true ? local. pre_built . lldp_interface : []
165
165
lldp_user = lookup (local. interface , " lldp_interface" , [])
166
166
lldp_policies = concat (local. lldp_pre_built , local. lldp_user )
167
167
# ===================================
168
- # Global - Mis-Cabling Protocol
168
+ # Merge - Mis-Cabling Protocol
169
169
# ===================================
170
170
mcp_pre_built = local. pre_cfg . mcp_interface == true ? local. pre_built . mcp_interface : []
171
171
mcp_user = lookup (local. interface , " mcp_interface" , [])
172
172
mcp_policies = concat (local. mcp_pre_built , local. mcp_user )
173
173
# ===================================
174
- # Global - Port-Channel
174
+ # Merge - Port-Channel
175
175
# ===================================
176
176
pc_pre_built = local. pre_cfg . port_channel == true ? local. pre_built . port_channel : []
177
177
pc_user = lookup (local. interface , " port_channel" , [])
178
178
pc_policies = concat (local. pc_pre_built , local. pc_user )
179
179
# ===================================
180
- # Global - Port Security
180
+ # Merge - Port Security
181
181
# ===================================
182
182
ps_pre_built = local. pre_cfg . port_security == true ? local. pre_built . port_security : []
183
183
ps_user = lookup (local. interface , " port_security" , [])
184
184
ps_policies = concat (local. ps_pre_built , local. ps_user )
185
185
# ===================================
186
- # Global - Spanning-tree Protocol
186
+ # Merge - Spanning-tree Protocol
187
187
# ===================================
188
188
stp_pre_built = local. pre_cfg . spanning_tree_interface == true ? local. pre_built . spanning_tree_interface : []
189
189
stp_user = lookup (local. interface , " spanning_tree_interface" , [])
@@ -193,9 +193,9 @@ locals {
193
193
# Interface Policies Variables
194
194
# __________________________________________________________
195
195
196
- # =========================
197
- # CDP Interface
198
- # =========================
196
+ # ===================================
197
+ # Global - CDP Interface
198
+ # ===================================
199
199
200
200
cdp_interface = {
201
201
for k , v in local . cdp_policies : v . name => {
@@ -206,9 +206,9 @@ locals {
206
206
}
207
207
}
208
208
209
- # =========================
210
- # Fibre-Channel Interface
211
- # =========================
209
+ # ===================================
210
+ # Global - Fibre-Channel Interface
211
+ # ===================================
212
212
213
213
fibre_channel_interface = {
214
214
for k , v in local . fc_policies : v . name => {
@@ -223,9 +223,9 @@ locals {
223
223
}
224
224
}
225
225
226
- # =========================
227
- # L2 Interface
228
- # =========================
226
+ # ===================================
227
+ # Global - L2 Interface
228
+ # ===================================
229
229
230
230
l2_interface = {
231
231
for k , v in local . l2_policies : v . name => {
@@ -237,9 +237,9 @@ locals {
237
237
}
238
238
}
239
239
240
- # =========================
241
- # Link-Level
242
- # =========================
240
+ # ===================================
241
+ # Global - Link-Level
242
+ # ===================================
243
243
244
244
link_level = {
245
245
for k , v in local . ll_policies : v . name => {
@@ -253,9 +253,9 @@ locals {
253
253
}
254
254
}
255
255
256
- # =========================
257
- # LLDP Interface
258
- # =========================
256
+ # ===================================
257
+ # Global - LLDP Interface
258
+ # ===================================
259
259
260
260
lldp_interface = {
261
261
for k , v in local . lldp_policies : v . name => {
@@ -267,9 +267,9 @@ locals {
267
267
}
268
268
}
269
269
270
- # =========================
271
- # MCP Interface
272
- # =========================
270
+ # ===================================
271
+ # Global - MCP Interface
272
+ # ===================================
273
273
274
274
mcp_interface = {
275
275
for k , v in local . mcp_policies : v . name => {
@@ -279,9 +279,9 @@ locals {
279
279
}
280
280
}
281
281
282
- # =========================
283
- # Port-Channel
284
- # =========================
282
+ # ===================================
283
+ # Global - Port-Channel
284
+ # ===================================
285
285
286
286
port_channel = {
287
287
for k , v in local . pc_policies : v . name => {
@@ -311,9 +311,9 @@ locals {
311
311
}
312
312
}
313
313
314
- # =========================
315
- # Port Security
316
- # =========================
314
+ # ===================================
315
+ # Global - Port Security
316
+ # ===================================
317
317
318
318
port_security = {
319
319
for k , v in local . ps_policies : v . name => {
@@ -324,9 +324,9 @@ locals {
324
324
}
325
325
}
326
326
327
- # =========================
328
- # Spanning-Tree Interface
329
- # =========================
327
+ # ===================================
328
+ # Global - Spanning-Tree Interface
329
+ # ===================================
330
330
331
331
spanning_tree_interface = {
332
332
for k , v in local . stp_policies : v . name => {
0 commit comments