-
Notifications
You must be signed in to change notification settings - Fork 1
/
ise_network_access.tf
709 lines (644 loc) · 77.7 KB
/
ise_network_access.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
resource "ise_allowed_protocols" "allowed_protocols" {
for_each = { for protocol in try(local.ise.network_access.policy_elements.allowed_protocols, []) : protocol.name => protocol }
description = try(each.value.description, "")
name = each.key
process_host_lookup = try(each.value.process_host_lookup, local.defaults.ise.network_access.policy_elements.allowed_protocols.process_host_lookup, null)
allow_pap_ascii = try(each.value.allow_pap_ascii, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_pap_ascii, null)
allow_chap = try(each.value.allow_chap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_chap, null)
allow_ms_chap_v1 = try(each.value.allow_ms_chap_v1, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_ms_chap_v1, null)
allow_ms_chap_v2 = try(each.value.allow_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_ms_chap_v2, null)
allow_eap_md5 = try(each.value.allow_eap_md5, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_md5, null)
allow_leap = try(each.value.allow_leap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_leap, null)
allow_eap_tls = try(each.value.allow_eap_tls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_tls, null)
allow_eap_ttls = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, null)
allow_eap_fast = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, null)
allow_peap = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, null)
allow_teap = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, null)
allow_5g = try(each.value.five_g, local.defaults.ise.network_access.policy_elements.allowed_protocols.five_g, null)
allow_preferred_eap_protocol = try(each.value.allow_preferred_eap_protocol, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_preferred_eap_protocol, null)
eap_tls_l_bit = try(each.value.eap_tls_l_bit, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls_l_bit, null)
allow_weak_ciphers_for_eap = try(each.value.allow_weak_ciphers_for_eap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_weak_ciphers_for_eap, null)
require_message_auth = try(each.value.require_message_auth, local.defaults.ise.network_access.policy_elements.allowed_protocols.require_message_auth, null)
eap_tls_allow_auth_of_expired_certs = try(each.value.allow_eap_tls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_tls, false) ? try(each.value.eap_tls.auth_of_expired_certs, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.auth_of_expired_certs, null) : null
eap_tls_enable_stateless_session_resume = try(each.value.allow_eap_tls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_tls, false) ? try(each.value.eap_tls.enable_stateless_session_resume, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.enable_stateless_session_resume, null) : null
eap_tls_session_ticket_ttl = try(each.value.eap_tls.enable_stateless_session_resume, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.enable_stateless_session_resume, false) ? try(each.value.eap_tls.session_ticket_ttl, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.session_ticket_ttl, null) : null
eap_tls_session_ticket_ttl_unit = try(each.value.eap_tls.enable_stateless_session_resume, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.enable_stateless_session_resume, false) ? try(each.value.eap_tls.session_ticket_ttl_unit, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.session_ticket_ttl_unit, null) : null
eap_tls_session_ticket_percentage = try(each.value.eap_tls.enable_stateless_session_resume, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.enable_stateless_session_resume, false) ? try(each.value.eap_tls.session_ticket_percentage, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_tls.session_ticket_percentage, null) : null
peap_allow_peap_eap_ms_chap_v2 = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) ? try(each.value.peap.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_ms_chap_v2, null) : null
peap_allow_peap_eap_ms_chap_v2_pwd_change = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) && try(each.value.peap.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_ms_chap_v2, false) ? try(each.value.peap.eap_ms_chap_v2_pwd_change, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_ms_chap_v2_pwd_change, null) : null
peap_allow_peap_eap_ms_chap_v2_pwd_change_retries = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) && try(each.value.peap.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_ms_chap_v2, false) ? try(each.value.peap.eap_ms_chap_v2_pwd_change_retries, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_ms_chap_v2_pwd_change_retries, null) : null
peap_allow_peap_eap_gtc = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) ? try(each.value.peap.eap_gtc, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_gtc, null) : null
peap_allow_peap_eap_gtc_pwd_change = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) && try(each.value.peap.eap_gtc, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_gtc, false) ? try(each.value.peap.eap_gtc_pwd_change, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_gtc_pwd_change, null) : null
peap_allow_peap_eap_gtc_pwd_change_retries = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) && try(each.value.peap.eap_gtc, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_gtc, false) ? try(each.value.peap.eap_gtc_pwd_change_retries, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_gtc_pwd_change_retries, null) : null
peap_allow_peap_eap_tls = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) ? try(each.value.peap.eap_tls, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_tls, null) : null
peap_allow_peap_eap_tls_auth_of_expired_certs = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) ? try(each.value.peap.eap_tls_auth_of_expired_certs, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.eap_tls_auth_of_expired_certs, null) : null
require_cryptobinding = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) ? try(each.value.peap.require_cryptobinding, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.require_cryptobinding, null) : null
peap_peap_v0 = try(each.value.allow_peap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_peap, false) ? try(each.value.peap.peap_v0, local.defaults.ise.network_access.policy_elements.allowed_protocols.peap.peap_v0, null) : null
eap_ttls_pap_ascii = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) ? try(each.value.eap_ttls.pap_ascii, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.pap_ascii, null) : null
eap_ttls_chap = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) ? try(each.value.eap_ttls.chap, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.chap, null) : null
eap_ttls_ms_chap_v1 = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) ? try(each.value.eap_ttls.ms_chap_v1, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.ms_chap_v1, null) : null
eap_ttls_ms_chap_v2 = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) ? try(each.value.eap_ttls.ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.ms_chap_v2, null) : null
eap_ttls_eap_md5 = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) ? try(each.value.eap_ttls.eap_md5, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.eap_md5, null) : null
eap_ttls_eap_ms_chap_v2 = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) ? try(each.value.eap_ttls.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.eap_ms_chap_v2, null) : null
eap_ttls_eap_ms_chap_v2_pwd_change = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) && try(each.value.eap_ttls.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.eap_ms_chap_v2, false) ? try(each.value.eap_ttls.eap_ms_chap_v2_pwd_change, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.eap_ms_chap_v2_pwd_change, null) : null
eap_ttls_eap_ms_chap_v2_pwd_change_retries = try(each.value.allow_eap_ttls, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_ttls, false) && try(each.value.eap_ttls.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.eap_ms_chap_v2, false) ? try(each.value.eap_ttls.eap_ms_chap_v2_pwd_change_retries, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_ttls.eap_ms_chap_v2_pwd_change_retries, null) : null
eap_fast_eap_ms_chap_v2 = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_ms_chap_v2, null) : null
eap_fast_eap_ms_chap_v2_pwd_change = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_ms_chap_v2, false) ? try(each.value.eap_fast.eap_ms_chap_v2_pwd_change, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_ms_chap_v2_pwd_change, null) : null
eap_fast_eap_ms_chap_v2_pwd_change_retries = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_ms_chap_v2, false) ? try(each.value.eap_fast.eap_ms_chap_v2_pwd_change_retries, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_ms_chap_v2_pwd_change_retries, null) : null
eap_fast_eap_gtc = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.eap_gtc, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_gtc, null) : null
eap_fast_eap_gtc_pwd_change = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.eap_gtc, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_gtc, false) ? try(each.value.eap_fast.eap_gtc_pwd_change, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_gtc_pwd_change, null) : null
eap_fast_eap_gtc_pwd_change_retries = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.eap_gtc, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_gtc, false) ? try(each.value.eap_fast.eap_gtc_pwd_change_retries, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_gtc_pwd_change_retries, null) : null
eap_fast_eap_tls = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.eap_tls, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_tls, null) : null
eap_fast_eap_tls_auth_of_expired_certs = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.eap_tls_auth_of_expired_certs, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.eap_tls_auth_of_expired_certs, null) : null
eap_fast_use_pacs = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs, null) : null
eap_fast_pacs_tunnel_pac_ttl = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_tunnel_pac_ttl, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_tunnel_pac_ttl, null) : null
eap_fast_pacs_tunnel_pac_ttl_unit = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_tunnel_pac_ttl_units, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_tunnel_pac_ttl_units, null) : null
eap_fast_pacs_use_proactive_pac_update_percentage = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_use_proactive_pac_update_precentage, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_use_proactive_pac_update_precentage, null) : null
eap_fast_pacs_allow_anonymous_provisioning = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_allow_anonym_provisioning, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_anonym_provisioning, null) : null
eap_fast_pacs_allow_authenticated_provisioning = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_allow_authen_provisioning, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_authen_provisioning, null) : null
eap_fast_pacs_allow_client_cert = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.use_pacs_allow_authen_provisioning, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_authen_provisioning) ? try(each.value.eap_fast.use_pacs_accept_client_cert, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_accept_client_cert, null) : null
eap_fast_pacs_server_returns = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.use_pacs_allow_authen_provisioning, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_authen_provisioning) ? try(each.value.eap_fast.use_pacs_server_returns, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_server_returns, null) : null
eap_fast_pacs_allow_machine_authentication = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_allow_machine_authentication, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_machine_authentication, null) : null
eap_fast_pacs_machine_pac_ttl = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.use_pacs_allow_machine_authentication, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_machine_authentication, false) ? try(each.value.eap_fast.use_pacs_machine_pac_ttl, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_machine_pac_ttl, null) : null
eap_fast_pacs_machine_pac_ttl_unit = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) && try(each.value.eap_fast.use_pacs_allow_machine_authentication, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_allow_machine_authentication, false) ? try(each.value.eap_fast.use_pacs_machine_pac_ttl_units, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_machine_pac_ttl_units, null) : null
eap_fast_pacs_stateless_session_resume = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_stateless_session_resume, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_stateless_session_resume, null) : null
eap_fast_pacs_authorization_pac_ttl = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_authorization_pac_ttl, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_authorization_pac_ttl, null) : null
eap_fast_pacs_authorization_pac_ttl_unit = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.use_pacs_authorization_pac_ttl_units, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.use_pacs_authorization_pac_ttl_units, null) : null
eap_fast_enable_eap_chaining = try(each.value.allow_eap_fast, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_eap_fast, false) ? try(each.value.eap_fast.enable_eap_chaining, local.defaults.ise.network_access.policy_elements.allowed_protocols.eap_fast.enable_eap_chaining, null) : null
teap_eap_ms_chap_v2 = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) ? try(each.value.teap.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_ms_chap_v2, null) : null
teap_eap_ms_chap_v2_pwd_change = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) && try(each.value.teap.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_ms_chap_v2, false) ? try(each.value.teap.eap_ms_chap_v2_pwd_change, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_ms_chap_v2_pwd_change, null) : null
teap_eap_ms_chap_v2_pwd_change_retries = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) && try(each.value.teap.eap_ms_chap_v2, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_ms_chap_v2, false) ? try(each.value.teap.eap_ms_chap_v2_pwd_change_retries, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_ms_chap_v2_pwd_change_retries, null) : null
teap_eap_tls = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) ? try(each.value.teap.eap_tls, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_tls, null) : null
teap_eap_tls_auth_of_expired_certs = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) ? try(each.value.teap.eap_tls_auth_of_expired_certs, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.eap_tls_auth_of_expired_certs, null) : null
teap_eap_accept_client_cert_during_tunnel_est = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) ? try(each.value.teap.accept_client_cert_during_tunnel_est, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.accept_client_cert_during_tunnel_est, null) : null
teap_eap_chaining = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) ? try(each.value.teap.enable_eap_chaining, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.enable_eap_chaining, null) : null
teap_downgrade_msk = try(each.value.allow_teap, local.defaults.ise.network_access.policy_elements.allowed_protocols.allow_teap, false) ? try(each.value.teap.allow_downgrade_msk, local.defaults.ise.network_access.policy_elements.allowed_protocols.teap.allow_downgrade_msk, null) : null
preferred_eap_protocol = try(each.value.preferred_eap_protocol, local.defaults.ise.network_access.policy_elements.allowed_protocols.preferred_eap_protocol, null)
}
resource "ise_authorization_profile" "authorization_profile" {
for_each = { for profile in try(local.ise.network_access.policy_elements.authorization_profiles, []) : profile.name => profile }
name = each.key
description = try(each.value.description, local.defaults.ise.network_access.policy_elements.authorization_profiles.description, null)
vlan_name_id = try(each.value.vlan_name_id, local.defaults.ise.network_access.policy_elements.authorization_profiles.vlan_name_id, null)
vlan_tag_id = try(each.value.vlan_tag_id, local.defaults.ise.network_access.policy_elements.authorization_profiles.vlan_tag_id, null)
web_redirection_type = try(each.value.web_redirection.type, local.defaults.ise.network_access.policy_elements.authorization_profiles.web_redirection.type, null)
web_redirection_acl = try(each.value.web_redirection.acl, local.defaults.ise.network_access.policy_elements.authorization_profiles.web_redirection.acl, null)
web_redirection_portal_name = try(each.value.web_redirection.portal_name, local.defaults.ise.network_access.policy_elements.authorization_profiles.web_redirection.portal_name, null)
web_redirection_static_ip_host_name_fqdn = try(each.value.web_redirection.static_ip_host_name_fqdn, local.defaults.ise.network_access.policy_elements.authorization_profiles.web_redirection.static_ip_host_name_fqdn, null)
web_redirection_display_certificates_renewal_messages = try(each.value.web_redirection.display_certificates_renewal_messages, local.defaults.ise.network_access.policy_elements.authorization_profiles.web_redirection.display_certificates_renewal_messages, null)
agentless_posture = try(each.value.agentless_posture, local.defaults.ise.network_access.policy_elements.authorization_profiles.agentless_posture, null)
access_type = try(each.value.access_type, local.defaults.ise.network_access.policy_elements.authorization_profiles.access_type, null)
profile_name = try(each.value.profile_name, local.defaults.ise.network_access.policy_elements.authorization_profiles.profile_name, null)
airespace_acl = try(each.value.airespace_acl, local.defaults.ise.network_access.policy_elements.authorization_profiles.airespace_acl, null)
acl = try(each.value.acl, local.defaults.ise.network_access.policy_elements.authorization_profiles.acl, null)
dacl_name = try(each.value.dacl_name, local.defaults.ise.network_access.policy_elements.authorization_profiles.dacl_name, null)
ipv6_dacl_name = try(each.value.ipv6_dacl_name, local.defaults.ise.network_access.policy_elements.authorization_profiles.ipv6_dacl_name, null)
auto_smart_port = try(each.value.auto_smart_port, local.defaults.ise.network_access.policy_elements.authorization_profiles.auto_smart_port, null)
interface_template = try(each.value.interface_template, local.defaults.ise.network_access.policy_elements.authorization_profiles.interface_template, null)
ipv6_acl_filter = try(each.value.ipv6_acl_filter, local.defaults.ise.network_access.policy_elements.authorization_profiles.ipv6_acl_filter, null)
avc_profile = try(each.value.avc_profile, local.defaults.ise.network_access.policy_elements.authorization_profiles.avc_profile, null)
asa_vpn = try(each.value.asa_vpn, local.defaults.ise.network_access.policy_elements.authorization_profiles.asa_vpn, null)
unique_identifier = try(each.value.unique_identifier, local.defaults.ise.network_access.policy_elements.authorization_profiles.unique_identifier, null)
track_movement = try(each.value.track_movement, local.defaults.ise.network_access.policy_elements.authorization_profiles.track_movement, null)
service_template = try(each.value.service_template, local.defaults.ise.network_access.policy_elements.authorization_profiles.service_template, null)
easywired_session_candidate = try(each.value.easywired_session_candidate, local.defaults.ise.network_access.policy_elements.authorization_profiles.easywired_session_candidate, null)
voice_domain_permission = try(each.value.voice_domain_permission, local.defaults.ise.network_access.policy_elements.authorization_profiles.voice_domain_permission, null)
neat = try(each.value.neat, local.defaults.ise.network_access.policy_elements.authorization_profiles.neat, null)
web_auth = try(each.value.web_auth, local.defaults.ise.network_access.policy_elements.authorization_profiles.web_auth, null)
mac_sec_policy = try(each.value.mac_sec_policy, local.defaults.ise.network_access.policy_elements.authorization_profiles.mac_sec_policy, null)
reauthentication_connectivity = try(each.value.reauthentication_connectivity, local.defaults.ise.network_access.policy_elements.authorization_profiles.reauthentication_connectivity, null)
reauthentication_timer = try(each.value.reauthentication_timer, local.defaults.ise.network_access.policy_elements.authorization_profiles.reauthentication_timer, null)
airespace_ipv6_acl = try(each.value.airespace_ipv6_acl, local.defaults.ise.network_access.policy_elements.authorization_profiles.airespace_ipv6_acl, null)
advanced_attributes = try([for i in each.value.advanced_attributes : {
attribute_left_dictionary_name = try(split(":", i.name)[0], null)
attribute_left_name = try(split(":", i.name)[1], null)
attribute_right_value_type = try(split(":", i.value)[1], null) != null ? "AdvancedDictionaryAttribute" : "AttributeValue"
attribute_right_dictionary_name = try(split(":", i.value)[1], null) != null ? split(":", i.value)[0] : null
attribute_right_name = try(split(":", i.value)[1], null) != null ? split(":", i.value)[1] : null
attribute_right_value = try(split(":", i.value)[1], null) != null ? null : i.attribute_value
}], null)
lifecycle {
create_before_destroy = true
}
depends_on = [ise_downloadable_acl.downloadable_acl, ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
locals {
network_access_conditions_circular_names = distinct(flatten([
for v in try(local.ise.network_access.policy_elements.conditions, []) : [
for v2 in try(v.children, []) : try(v2.type, null) == "ConditionReference" ? [[v2.name]] : [
for v3 in try(v2.children, []) : try(v3.type, null) == "ConditionReference" ? [v3.name] : []
]
]
]))
}
data "ise_network_access_condition" "network_access_condition_circular" {
for_each = toset(local.network_access_conditions_circular_names)
name = each.value
}
resource "ise_network_access_condition" "network_access_condition" {
for_each = { for condition in try(local.ise.network_access.policy_elements.conditions, []) : condition.name => condition }
condition_type = try(each.value.type, local.defaults.ise.network_access.policy_elements.conditions.type, null)
is_negate = try(each.value.is_negate, local.defaults.ise.network_access.policy_elements.conditions.is_negate, null)
attribute_name = try(each.value.attribute_name, local.defaults.ise.network_access.policy_elements.conditions.attribute_name, null)
attribute_value = try(each.value.attribute_value, local.defaults.ise.network_access.policy_elements.conditions.attribute_value, null)
dictionary_name = try(each.value.dictionary_name, local.defaults.ise.network_access.policy_elements.conditions.dictionary_name, null)
dictionary_value = try(each.value.dictionary_value, local.defaults.ise.network_access.policy_elements.conditions.dictionary_value, null)
operator = try(each.value.operator, local.defaults.ise.network_access.policy_elements.conditions.operator, null)
description = try(each.value.description, local.defaults.ise.network_access.policy_elements.conditions.description, null)
name = each.key
children = length(try(each.value.children, [])) == 0 ? null : [for c in try(each.value.children, []) : {
description = try(c.description, local.defaults.ise.network_access.policy_elements.conditions.description, null)
attribute_name = try(c.attribute_name, local.defaults.ise.network_access.policy_elements.conditions.attribute_name, null)
attribute_value = try(c.attribute_value, local.defaults.ise.network_access.policy_elements.conditions.attribute_value, null)
dictionary_name = try(c.dictionary_name, local.defaults.ise.network_access.policy_elements.conditions.dictionary_name, null)
dictionary_value = try(c.dictionary_value, local.defaults.ise.network_access.policy_elements.conditions.dictionary_value, null)
condition_type = try(c.type, local.defaults.ise.network_access.policy_elements.conditions.type, null)
is_negate = try(c.is_negate, local.defaults.ise.network_access.policy_elements.conditions.is_negate, null)
operator = try(c.operator, local.defaults.ise.network_access.policy_elements.conditions.operator, null)
name = try(c.name, null)
id = try(c.type, local.defaults.ise.network_access.policy_elements.conditions.type, null) == "ConditionReference" ? data.ise_network_access_condition.network_access_condition_circular[c.name].id : null
children = length(try(c.children, [])) == 0 ? null : [for c2 in try(c.children, []) : {
description = try(c2.description, local.defaults.ise.network_access.policy_elements.conditions.description, null)
attribute_name = try(c2.attribute_name, local.defaults.ise.network_access.policy_elements.conditions.attribute_name, null)
attribute_value = try(c2.attribute_value, local.defaults.ise.network_access.policy_elements.conditions.attribute_value, null)
dictionary_name = try(c2.dictionary_name, local.defaults.ise.network_access.policy_elements.conditions.dictionary_name, null)
dictionary_value = try(c2.dictionary_value, local.defaults.ise.network_access.policy_elements.conditions.dictionary_value, null)
condition_type = try(c2.type, local.defaults.ise.network_access.policy_elements.conditions.type, null)
is_negate = try(c2.is_negate, local.defaults.ise.network_access.policy_elements.conditions.is_negate, null)
operator = try(c2.operator, local.defaults.ise.network_access.policy_elements.conditions.operator, null)
name = try(c2.name, null)
id = try(c2.type, local.defaults.ise.network_access.policy_elements.conditions.type, null) == "ConditionReference" ? data.ise_network_access_condition.network_access_condition_circular[c2.name].id : null
}]
}]
depends_on = [ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
resource "ise_downloadable_acl" "downloadable_acl" {
for_each = { for dacl in try(local.ise.network_access.policy_elements.downloadable_acls, []) : dacl.name => dacl }
name = each.key
description = try(each.value.description, local.defaults.ise.network_access.policy_elements.downloadable_acls.description, null)
dacl = try(each.value.dacl_content, local.defaults.ise.network_access.policy_elements.downloadable_acls.dacl_content, null)
dacl_type = try(each.value.dacl_type, local.defaults.ise.network_access.policy_elements.downloadable_acls.dacl_type, null)
}
resource "ise_network_access_dictionary" "network_access_dictionary" {
for_each = { for d in try(local.ise.network_access.policy_elements.dictionaries, []) : d.name => d }
name = each.key
description = try(each.value.description, local.defaults.ise.network_access.policy_elements.dictionaries.description, null)
version = try(each.value.version, local.defaults.ise.network_access.policy_elements.dictionaries.version, null)
dictionary_attr_type = try(each.value.attribute_type, local.defaults.ise.network_access.policy_elements.dictionaries.attribute_type, null)
}
resource "ise_network_access_time_and_date_condition" "network_access_time_and_date_condition" {
for_each = { for c in try(local.ise.network_access.policy_elements.time_date_conditions, []) : c.name => c }
name = each.key
description = try(each.value.description, local.defaults.ise.network_access.policy_elements.time_date_conditions.description, null)
is_negate = try(each.value.is_negate, local.defaults.ise.network_access.policy_elements.time_date_conditions.is_negate, null)
week_days = try(each.value.week_days, local.defaults.ise.network_access.policy_elements.time_date_conditions.week_days, null)
week_days_exception = try(each.value.week_days_exception, local.defaults.ise.network_access.policy_elements.time_date_conditions.week_days_exception, null)
start_date = try(each.value.start_date, local.defaults.ise.network_access.policy_elements.time_date_conditions.start_date, null)
end_date = try(each.value.end_date, local.defaults.ise.network_access.policy_elements.time_date_conditions.end_date, null)
exception_start_date = try(each.value.exception_start_date, local.defaults.ise.network_access.policy_elements.time_date_conditions.exception_start_date, null)
exception_end_date = try(each.value.exception_end_date, local.defaults.ise.network_access.policy_elements.time_date_conditions.exception_end_date, null)
start_time = try(each.value.start_time, local.defaults.ise.network_access.policy_elements.time_date_conditions.start_time, null)
end_time = try(each.value.end_time, local.defaults.ise.network_access.policy_elements.time_date_conditions.end_time, null)
exception_start_time = try(each.value.exception_start_time, local.defaults.ise.network_access.policy_elements.time_date_conditions.exception_start_time, null)
exception_end_time = try(each.value.exception_end_time, local.defaults.ise.network_access.policy_elements.time_date_conditions.exception_end_time, null)
}
locals {
conditions_network_access_policy_sets = flatten([
for v in try(local.ise.network_access.policy_sets, []) : try(v.condition.type, null) == "ConditionReference" ? [[[v.condition.name]]] : [
for v2 in try(v.condition.children, []) : try(v2.type, null) == "ConditionReference" ? [[v2.name]] : [
for v3 in try(v2.children, []) : try(v3.type, null) == "ConditionReference" ? [v3.name] : []
]
]
])
conditions_network_access_policy_set_authentication_rules = flatten([
for v in try(local.ise.network_access.policy_sets, []) : [
for r in try(v.authentication_rules, []) : try(r.condition.type, null) == "ConditionReference" ? [[[r.condition.name]]] : [
for v2 in try(r.condition.children, []) : try(v2.type, null) == "ConditionReference" ? [[v2.name]] : [
for v3 in try(v2.children, []) : try(v3.type, null) == "ConditionReference" ? [v3.name] : []
]
]
]
])
conditions_network_access_policy_set_authorization_rules = flatten([
for v in try(local.ise.network_access.policy_sets, []) : [
for r in try(v.authorization_rules, []) : try(r.condition.type, null) == "ConditionReference" ? [[[r.condition.name]]] : [
for v2 in try(r.condition.children, []) : try(v2.type, null) == "ConditionReference" ? [[v2.name]] : [
for v3 in try(v2.children, []) : try(v3.type, null) == "ConditionReference" ? [v3.name] : []
]
]
]
])
conditions_network_access_policy_set_authorization_exception_rules = flatten([
for v in try(local.ise.network_access.policy_sets, []) : [
for r in try(v.authorization_exception_rules, []) : try(r.condition.type, null) == "ConditionReference" ? [[[r.condition.name]]] : [
for v2 in try(r.condition.children, []) : try(v2.type, null) == "ConditionReference" ? [[v2.name]] : [
for v3 in try(v2.children, []) : try(v3.type, null) == "ConditionReference" ? [v3.name] : []
]
]
]
])
conditions_network_access_authorization_global_exception_rules = flatten([
for v in try(local.ise.network_access.authorization_global_exception_rules, []) : try(v.condition.type, null) == "ConditionReference" ? [[[v.condition.name]]] : [
for v2 in try(v.condition.children, []) : try(v2.type, null) == "ConditionReference" ? [[v2.name]] : [
for v3 in try(v2.children, []) : try(v3.type, null) == "ConditionReference" ? [v3.name] : []
]
]
])
unique_conditions_network_access = distinct(concat(local.conditions_network_access_policy_sets, local.conditions_network_access_policy_set_authentication_rules, local.conditions_network_access_policy_set_authorization_rules, local.conditions_network_access_policy_set_authorization_exception_rules, local.conditions_network_access_authorization_global_exception_rules))
known_conditions_network_access = [for condition in try(local.ise.network_access.policy_elements.conditions, []) : condition.name]
unknown_conditions_network_access = setsubtract(local.unique_conditions_network_access, local.known_conditions_network_access)
}
data "ise_network_access_condition" "network_access_condition" {
for_each = toset(local.unknown_conditions_network_access)
name = each.value
}
locals {
network_access_policy_sets = [
for ps in try(local.ise.network_access.policy_sets, []) : {
condition_type = ps.name == "Default" ? null : try(ps.condition.type, local.defaults.ise.network_access.policy_sets.condition.type, null)
condition_is_negate = ps.name == "Default" ? null : try(ps.condition.is_negate, local.defaults.ise.network_access.policy_sets.condition.is_negate, null)
condition_attribute_name = ps.name == "Default" ? null : try(ps.condition.attribute_name, local.defaults.ise.network_access.policy_sets.condition.attribute_name, null)
condition_attribute_value = ps.name == "Default" ? null : try(ps.condition.attribute_value, local.defaults.ise.network_access.policy_sets.condition.attribute_value, null)
condition_dictionary_name = ps.name == "Default" ? null : try(ps.condition.dictionary_name, local.defaults.ise.network_access.policy_sets.condition.dictionary_name, null)
condition_dictionary_value = ps.name == "Default" ? null : try(ps.condition.dictionary_value, local.defaults.ise.network_access.policy_sets.condition.dictionary_value, null)
condition_id = contains(local.known_conditions_network_access, try(ps.condition.name, "")) ? ise_network_access_condition.network_access_condition[ps.condition.name].id : try(data.ise_network_access_condition.network_access_condition[ps.condition.name].id, null)
condition_operator = ps.name == "Default" ? null : try(ps.condition.operator, local.defaults.ise.network_access.policy_sets.condition.operator, null)
description = try(ps.description, local.defaults.ise.network_access.policy_sets.description, null)
is_proxy = try(ps.is_proxy, local.defaults.ise.network_access.policy_sets.is_proxy)
name = ps.name
service_name = try(ps.service_name, local.defaults.ise.network_access.policy_sets.service_name)
state = try(ps.state, local.defaults.ise.network_access.policy_sets.state)
default = ps.name == "Default" ? true : false
rank = try(ps.rank, local.defaults.ise.network_access.policy_sets.rank, null)
children = try([for i in ps.condition.children : {
attribute_name = try(i.attribute_name, local.defaults.ise.network_access.policy_sets.condition.attribute_name, null),
attribute_value = try(i.attribute_value, local.defaults.ise.network_access.policy_sets.condition.attribute_value, null)
dictionary_name = try(i.dictionary_name, local.defaults.ise.network_access.policy_sets.condition.dictionary_name, null)
dictionary_value = try(i.dictionary_value, local.defaults.ise.network_access.policy_sets.condition.dictionary_value, null)
condition_type = try(i.type, local.defaults.ise.network_access.policy_sets.condition.type, null)
is_negate = try(i.is_negate, local.defaults.ise.network_access.policy_sets.condition.is_negate, null)
operator = try(i.operator, local.defaults.ise.network_access.policy_sets.condition.operator, null)
id = contains(local.known_conditions_network_access, try(i.name, "")) ? ise_network_access_condition.network_access_condition[i.name].id : try(data.ise_network_access_condition.network_access_condition[i.name].id, null)
children = try([for j in i.children : {
attribute_name = try(j.attribute_name, local.defaults.ise.network_access.policy_sets.condition.attribute_name, null)
attribute_value = try(j.attribute_value, local.defaults.ise.network_access.policy_sets.condition.attribute_value, null)
dictionary_name = try(j.dictionary_name, local.defaults.ise.network_access.policy_sets.condition.dictionary_name, null)
dictionary_value = try(j.dictionary_value, local.defaults.ise.network_access.policy_sets.condition.dictionary_value, null)
condition_type = try(j.type, local.defaults.ise.network_access.policy_sets.condition.type, null)
is_negate = try(j.is_negate, local.defaults.ise.network_access.policy_sets.condition.is_negate, null)
operator = try(j.operator, local.defaults.ise.network_access.policy_sets.condition.operator, null)
id = contains(local.known_conditions_network_access, try(j.name, "")) ? ise_network_access_condition.network_access_condition[j.name].id : try(data.ise_network_access_condition.network_access_condition[j.name].id, null)
}], null)
}], null)
}
]
network_access_policy_sets_with_ranks = [
for idx, ps in local.network_access_policy_sets : merge(ps, {
generated_rank = idx
})
]
}
resource "ise_network_access_policy_set" "network_access_policy_set" {
for_each = { for ps in local.network_access_policy_sets : ps.name => ps if ps.name != "Default" }
condition_type = each.value.condition_type
condition_is_negate = each.value.condition_is_negate
condition_attribute_name = each.value.condition_attribute_name
condition_attribute_value = each.value.condition_attribute_value
condition_dictionary_name = each.value.condition_dictionary_name
condition_id = each.value.condition_id
condition_operator = each.value.condition_operator
description = each.value.description
is_proxy = each.value.is_proxy
name = each.value.name
service_name = each.value.service_name
state = each.value.state
default = each.value.default
children = each.value.children
depends_on = [ise_authorization_profile.authorization_profile, ise_allowed_protocols.allowed_protocols, ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
resource "ise_network_access_policy_set" "default_network_access_policy_set" {
for_each = { for ps in local.network_access_policy_sets : ps.name => ps if ps.name == "Default" }
is_proxy = each.value.is_proxy
name = each.value.name
service_name = each.value.service_name
state = each.value.state
default = true
depends_on = [ise_network_access_policy_set.network_access_policy_set]
}
resource "ise_network_access_policy_set_update_rank" "network_access_policy_set_update_rank" {
for_each = { for ps in local.network_access_policy_sets_with_ranks : ps.name => ps if ps.name != "Default" }
policy_set_id = ise_network_access_policy_set.network_access_policy_set[each.key].id
rank = each.value.generated_rank
}
locals {
network_access_policy_set_ids = merge(
{ for ps in local.network_access_policy_sets : ps.name => ise_network_access_policy_set.network_access_policy_set[ps.name].id if ps.name != "Default" },
{ for ps in local.network_access_policy_sets : ps.name => ise_network_access_policy_set.default_network_access_policy_set[ps.name].id if ps.name == "Default" }
)
network_access_authentication_rules = flatten([
for ps in try(local.ise.network_access.policy_sets, []) : [
for rule in try(ps.authentication_rules, []) : {
key = format("%s/%s", ps.name, rule.name)
policy_set_id = local.network_access_policy_set_ids[ps.name]
name = rule.name
rank = try(rule.rank, local.defaults.ise.network_access.policy_sets.authentication_rules.rank, null)
default = rule.name == "Default" ? true : false
state = try(rule.state, local.defaults.ise.network_access.policy_sets.authentication_rules.state, null)
condition_type = rule.name == "Default" ? null : try(rule.condition.type, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.type, null)
condition_id = contains(local.known_conditions_network_access, try(rule.condition.name, "")) ? ise_network_access_condition.network_access_condition[rule.condition.name].id : try(data.ise_network_access_condition.network_access_condition[rule.condition.name].id, null)
condition_is_negate = rule.name == "Default" ? null : try(rule.condition.is_negate, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.is_negate, null)
condition_attribute_name = rule.name == "Default" ? null : try(rule.condition.attribute_name, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.attribute_name, null)
condition_attribute_value = rule.name == "Default" ? null : try(rule.condition.attribute_value, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.attribute_value, null)
condition_dictionary_name = rule.name == "Default" ? null : try(rule.condition.dictionary_name, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.dictionary_name, null)
condition_dictionary_value = rule.name == "Default" ? null : try(rule.condition.dictionary_value, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.dictionary_value, null)
condition_operator = rule.name == "Default" ? null : try(rule.condition.operator, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.operator, null)
identity_source_name = try(rule.identity_source_name, local.defaults.ise.network_access.policy_sets.authentication_rules.identity_source_name, null)
if_auth_fail = try(rule.if_auth_fail, local.defaults.ise.network_access.policy_sets.authentication_rules.if_auth_fail, null)
if_process_fail = try(rule.if_process_fail, local.defaults.ise.network_access.policy_sets.authentication_rules.if_process_fail, null)
if_user_not_found = try(rule.if_user_not_found, local.defaults.ise.network_access.policy_sets.authentication_rules.if_user_not_found, null)
children = try([for i in rule.condition.children : {
attribute_name = try(i.attribute_name, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.attribute_name, null)
attribute_value = try(i.attribute_value, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.attribute_value, null)
dictionary_name = try(i.dictionary_name, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.dictionary_name, null)
dictionary_value = try(i.dictionary_value, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.dictionary_value, null)
condition_type = try(i.type, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.type, null)
is_negate = try(i.is_negate, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.is_negate, null)
operator = try(i.operator, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(i.name, "")) ? ise_network_access_condition.network_access_condition[i.name].id : try(data.ise_network_access_condition.network_access_condition[i.name].id, null)
children = try([for j in i.children : {
attribute_name = try(j.attribute_name, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.attribute_name, null)
attribute_value = try(j.attribute_value, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.attribute_value, null)
dictionary_name = try(j.dictionary_name, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.dictionary_name, null)
dictionary_value = try(j.dictionary_value, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.dictionary_value, null)
condition_type = try(j.type, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.type, null)
is_negate = try(j.is_negate, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.is_negate, null)
operator = try(j.operator, local.defaults.ise.network_access.policy_sets.authentication_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(j.name, "")) ? ise_network_access_condition.network_access_condition[j.name].id : try(data.ise_network_access_condition.network_access_condition[j.name].id, null)
}], null)
}], null)
}
]
])
network_access_authentication_rules_with_ranks = [
for idx, rule in local.network_access_authentication_rules : merge(rule, {
generated_rank = idx
})
]
}
resource "ise_network_access_authentication_rule" "network_access_authentication_rule" {
for_each = { for rule in local.network_access_authentication_rules : rule.key => rule if rule.name != "Default" }
policy_set_id = each.value.policy_set_id
name = each.value.name
default = each.value.default
state = each.value.state
condition_type = each.value.condition_type
condition_id = each.value.condition_id
condition_is_negate = each.value.condition_is_negate
condition_attribute_name = each.value.condition_attribute_name
condition_attribute_value = each.value.condition_attribute_value
condition_dictionary_name = each.value.condition_dictionary_name
condition_operator = each.value.condition_operator
identity_source_name = each.value.identity_source_name
if_auth_fail = each.value.if_auth_fail
if_process_fail = each.value.if_process_fail
if_user_not_found = each.value.if_user_not_found
children = each.value.children
depends_on = [ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
resource "ise_network_access_authentication_rule" "default_network_access_authentication_rule" {
for_each = { for rule in local.network_access_authentication_rules : rule.key => rule if rule.name == "Default" }
name = each.value.name
state = each.value.state
policy_set_id = each.value.policy_set_id
default = true
identity_source_name = each.value.identity_source_name
if_auth_fail = each.value.if_auth_fail
if_process_fail = each.value.if_process_fail
if_user_not_found = each.value.if_user_not_found
depends_on = [ise_network_access_authentication_rule.network_access_authentication_rule]
}
resource "ise_network_access_authentication_rule_update_rank" "network_access_authentication_rule_update_rank" {
for_each = { for rule in local.network_access_authentication_rules_with_ranks : rule.key => rule if rule.name != "Default" }
policy_set_id = each.value.policy_set_id
rule_id = ise_network_access_authentication_rule.network_access_authentication_rule[each.value.key].id
rank = each.value.generated_rank
}
locals {
network_access_authorization_rules = flatten([
for ps in try(local.ise.network_access.policy_sets, []) : [
for rule in try(ps.authorization_rules, []) : {
key = format("%s/%s", ps.name, rule.name)
policy_set_id = local.network_access_policy_set_ids[ps.name]
name = rule.name
rank = try(rule.rank, local.defaults.ise.network_access.policy_sets.authorization_rules.rank, null)
default = rule.name == "Default" ? true : false
state = try(rule.state, local.defaults.ise.network_access.policy_sets.authorization_rules.state, null)
condition_type = rule.name == "Default" ? null : try(rule.condition.type, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.type, null)
condition_id = contains(local.known_conditions_network_access, try(rule.condition.name, "")) ? ise_network_access_condition.network_access_condition[rule.condition.name].id : try(data.ise_network_access_condition.network_access_condition[rule.condition.name].id, null)
condition_is_negate = rule.name == "Default" ? null : try(rule.condition.is_negate, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.is_negate, null)
condition_attribute_name = rule.name == "Default" ? null : try(rule.condition.attribute_name, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.attribute_name, null)
condition_attribute_value = rule.name == "Default" ? null : try(rule.condition.attribute_value, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.attribute_value, null)
condition_dictionary_name = rule.name == "Default" ? null : try(rule.condition.dictionary_name, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.dictionary_name, null)
condition_dictionary_value = rule.name == "Default" ? null : try(rule.condition.dictionary_value, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.dictionary_value, null)
condition_operator = rule.name == "Default" ? null : try(rule.condition.operator, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.operator, null)
profiles = try(rule.profiles, local.defaults.ise.network_access.policy_sets.authorization_rules.profiles, null)
security_group = try(rule.security_group, local.defaults.ise.network_access.policy_sets.authorization_rules.security_group, null)
children = try([for i in rule.condition.children : {
attribute_name = try(i.attribute_name, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.attribute_name, null)
attribute_value = try(i.attribute_value, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.attribute_value, null)
dictionary_name = try(i.dictionary_name, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.dictionary_name, null)
dictionary_value = try(i.dictionary_value, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.dictionary_value, null)
condition_type = try(i.type, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.type, null)
is_negate = try(i.is_negate, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.is_negate, null)
operator = try(i.operator, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(i.name, "")) ? ise_network_access_condition.network_access_condition[i.name].id : try(data.ise_network_access_condition.network_access_condition[i.name].id, null)
children = try([for j in i.children : {
attribute_name = try(j.attribute_name, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.attribute_name, null)
attribute_value = try(j.attribute_value, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.attribute_value, null)
dictionary_name = try(j.dictionary_name, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.dictionary_name, null)
dictionary_value = try(j.dictionary_value, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.dictionary_value, null)
condition_type = try(j.type, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.type, null)
is_negate = try(j.is_negate, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.is_negate, null)
operator = try(j.operator, local.defaults.ise.network_access.policy_sets.authorization_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(j.name, "")) ? ise_network_access_condition.network_access_condition[j.name].id : try(data.ise_network_access_condition.network_access_condition[j.name].id, null)
}], null)
}], null)
}
]
])
network_access_authorization_rules_with_ranks = [
for idx, rule in local.network_access_authorization_rules : merge(rule, {
generated_rank = idx
})
]
}
resource "ise_network_access_authorization_rule" "network_access_authorization_rule" {
for_each = { for rule in local.network_access_authorization_rules : rule.key => rule if rule.name != "Default" }
policy_set_id = each.value.policy_set_id
name = each.value.name
default = each.value.default
state = each.value.state
condition_type = each.value.condition_type
condition_id = each.value.condition_id
condition_is_negate = each.value.condition_is_negate
condition_attribute_name = each.value.condition_attribute_name
condition_attribute_value = each.value.condition_attribute_value
condition_dictionary_name = each.value.condition_dictionary_name
condition_operator = each.value.condition_operator
profiles = each.value.profiles
security_group = each.value.security_group
children = each.value.children
depends_on = [ise_authorization_profile.authorization_profile, ise_trustsec_security_group.trustsec_security_group, time_sleep.sgt_wait, ise_endpoint_identity_group.endpoint_identity_group_0, ise_user_identity_group.user_identity_group_5, ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
resource "ise_network_access_authorization_rule" "default_network_access_authorization_rule" {
for_each = { for rule in local.network_access_authorization_rules : rule.key => rule if rule.name == "Default" }
name = each.value.name
state = each.value.state
policy_set_id = each.value.policy_set_id
default = true
profiles = each.value.profiles
security_group = each.value.security_group
depends_on = [ise_network_access_authorization_rule.network_access_authorization_rule]
}
resource "ise_network_access_authorization_rule_update_rank" "network_access_authorization_rule_update_rank" {
for_each = { for rule in local.network_access_authorization_rules_with_ranks : rule.key => rule if rule.name != "Default" }
policy_set_id = each.value.policy_set_id
rule_id = ise_network_access_authorization_rule.network_access_authorization_rule[each.value.key].id
rank = each.value.generated_rank
}
locals {
network_access_authorization_exception_rules = flatten([
for ps in try(local.ise.network_access.policy_sets, []) : [
for rule in try(ps.authorization_exception_rules, []) : {
key = format("%s/%s", ps.name, rule.name)
policy_set_id = local.network_access_policy_set_ids[ps.name]
name = rule.name
rank = try(rule.rank, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.rank, null)
state = try(rule.state, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.state, null)
condition_type = try(rule.condition.type, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.type, null)
condition_id = contains(local.known_conditions_network_access, try(rule.condition.name, "")) ? ise_network_access_condition.network_access_condition[rule.condition.name].id : try(data.ise_network_access_condition.network_access_condition[rule.condition.name].id, null)
condition_is_negate = try(rule.condition.is_negate, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.is_negate, null)
condition_attribute_name = try(rule.condition.attribute_name, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.attribute_name, null)
condition_attribute_value = try(rule.condition.attribute_value, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.attribute_value, null)
condition_dictionary_name = try(rule.condition.dictionary_name, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.dictionary_name, null)
condition_dictionary_value = try(rule.condition.dictionary_value, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.dictionary_value, null)
condition_operator = try(rule.condition.operator, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.operator, null)
profiles = try(rule.profiles, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.profiles, null)
security_group = try(rule.security_group, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.security_group, null)
children = try([for i in rule.condition.children : {
attribute_name = try(i.attribute_name, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.attribute_name, null)
attribute_value = try(i.attribute_value, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.attribute_value, null)
dictionary_name = try(i.dictionary_name, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.dictionary_name, null)
dictionary_value = try(i.dictionary_value, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.dictionary_value, null)
condition_type = try(i.type, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.type, null)
is_negate = try(i.is_negate, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.is_negate, null)
operator = try(i.operator, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(i.name, "")) ? ise_network_access_condition.network_access_condition[i.name].id : try(data.ise_network_access_condition.network_access_condition[i.name].id, null)
children = try([for j in i.children : {
attribute_name = try(j.attribute_name, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.attribute_name, null)
attribute_value = try(j.attribute_value, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.attribute_value, null)
dictionary_name = try(j.dictionary_name, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.dictionary_name, null)
dictionary_value = try(j.dictionary_value, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.dictionary_value, null)
condition_type = try(j.type, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.type, null)
is_negate = try(j.is_negate, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.is_negate, null)
operator = try(j.operator, local.defaults.ise.network_access.policy_sets.authorization_exception_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(j.name, "")) ? ise_network_access_condition.network_access_condition[j.name].id : try(data.ise_network_access_condition.network_access_condition[j.name].id, null)
}], null)
}], null)
}
]
])
network_access_authorization_exception_rules_with_ranks = [
for idx, rule in local.network_access_authorization_exception_rules : merge(rule, {
generated_rank = idx
})
]
}
resource "ise_network_access_authorization_exception_rule" "network_access_authorization_exception_rule" {
for_each = { for rule in local.network_access_authorization_exception_rules : rule.key => rule }
policy_set_id = each.value.policy_set_id
name = each.value.name
state = each.value.state
condition_type = each.value.condition_type
condition_id = each.value.condition_id
condition_is_negate = each.value.condition_is_negate
condition_attribute_name = each.value.condition_attribute_name
condition_attribute_value = each.value.condition_attribute_value
condition_dictionary_name = each.value.condition_dictionary_name
condition_operator = each.value.condition_operator
profiles = each.value.profiles
security_group = each.value.security_group
children = each.value.children
depends_on = [ise_authorization_profile.authorization_profile, ise_trustsec_security_group.trustsec_security_group, time_sleep.sgt_wait, ise_endpoint_identity_group.endpoint_identity_group_0, ise_user_identity_group.user_identity_group_5, ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
resource "ise_network_access_authorization_exception_rule_update_rank" "network_access_authorization_exception_rule_update_rank" {
for_each = { for rule in local.network_access_authorization_exception_rules_with_ranks : rule.key => rule }
policy_set_id = each.value.policy_set_id
rule_id = ise_network_access_authorization_exception_rule.network_access_authorization_exception_rule[each.value.key].id
rank = each.value.generated_rank
}
locals {
network_access_authorization_global_exception_rules = [
for rule in try(local.ise.network_access.authorization_global_exception_rules, []) : {
name = rule.name
rank = try(rule.rank, local.defaults.ise.network_access.authorization_global_exception_rules.rank, null)
state = try(rule.state, local.defaults.ise.network_access.authorization_global_exception_rules.state, null)
condition_type = try(rule.condition.type, local.defaults.ise.network_access.authorization_global_exception_rules.condition.type, null)
condition_id = contains(local.known_conditions_network_access, try(rule.condition.name, "")) ? ise_network_access_condition.network_access_condition[rule.condition.name].id : try(data.ise_network_access_condition.network_access_condition[rule.condition.name].id, null)
condition_is_negate = try(rule.condition.is_negate, local.defaults.ise.network_access.authorization_global_exception_rules.condition.is_negate, null)
condition_attribute_name = try(rule.condition.attribute_name, local.defaults.ise.network_access.authorization_global_exception_rules.condition.attribute_name, null)
condition_attribute_value = try(rule.condition.attribute_value, local.defaults.ise.network_access.authorization_global_exception_rules.condition.attribute_value, null)
condition_dictionary_name = try(rule.condition.dictionary_name, local.defaults.ise.network_access.authorization_global_exception_rules.condition.dictionary_name, null)
condition_dictionary_value = try(rule.condition.dictionary_value, local.defaults.ise.network_access.authorization_global_exception_rules.condition.dictionary_value, null)
condition_operator = try(rule.condition.operator, local.defaults.ise.network_access.authorization_global_exception_rules.condition.operator, null)
profiles = try(rule.profiles, local.defaults.ise.network_access.authorization_global_exception_rules.profiles, null)
security_group = try(rule.security_group, local.defaults.ise.network_access.authorization_global_exception_rules.security_group, null)
children = try([for i in rule.condition.children : {
attribute_name = try(i.attribute_name, local.defaults.ise.network_access.authorization_global_exception_rules.condition.attribute_name, null)
attribute_value = try(i.attribute_value, local.defaults.ise.network_access.authorization_global_exception_rules.condition.attribute_value, null)
dictionary_name = try(i.dictionary_name, local.defaults.ise.network_access.authorization_global_exception_rules.condition.dictionary_name, null)
dictionary_value = try(i.dictionary_value, local.defaults.ise.network_access.authorization_global_exception_rules.condition.dictionary_value, null)
condition_type = try(i.type, local.defaults.ise.network_access.authorization_global_exception_rules.condition.type, null)
is_negate = try(i.is_negate, local.defaults.ise.network_access.authorization_global_exception_rules.condition.is_negate, null)
operator = try(i.operator, local.defaults.ise.network_access.authorization_global_exception_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(i.name, "")) ? ise_network_access_condition.network_access_condition[i.name].id : try(data.ise_network_access_condition.network_access_condition[i.name].id, null)
children = try([for j in i.children : {
attribute_name = try(j.attribute_name, local.defaults.ise.network_access.authorization_global_exception_rules.condition.attribute_name, null)
attribute_value = try(j.attribute_value, local.defaults.ise.network_access.authorization_global_exception_rules.condition.attribute_value, null)
dictionary_name = try(j.dictionary_name, local.defaults.ise.network_access.authorization_global_exception_rules.condition.dictionary_name, null)
dictionary_value = try(j.dictionary_value, local.defaults.ise.network_access.authorization_global_exception_rules.condition.dictionary_value, null)
condition_type = try(j.type, local.defaults.ise.network_access.authorization_global_exception_rules.condition.type, null)
is_negate = try(j.is_negate, local.defaults.ise.network_access.authorization_global_exception_rules.condition.is_negate, null)
operator = try(j.operator, local.defaults.ise.network_access.authorization_global_exception_rules.condition.operator, null)
id = contains(local.known_conditions_network_access, try(j.name, "")) ? ise_network_access_condition.network_access_condition[j.name].id : try(data.ise_network_access_condition.network_access_condition[j.name].id, null)
}], null)
}], null)
}
]
network_access_authorization_global_exception_rules_with_ranks = [
for idx, rule in local.network_access_authorization_global_exception_rules : merge(rule, {
generated_rank = idx
})
]
}
resource "ise_network_access_authorization_global_exception_rule" "network_access_authorization_global_exception_rule" {
for_each = { for rule in local.network_access_authorization_global_exception_rules : rule.name => rule }
name = each.value.name
state = each.value.state
condition_type = each.value.condition_type
condition_id = each.value.condition_id
condition_is_negate = each.value.condition_is_negate
condition_attribute_name = each.value.condition_attribute_name
condition_attribute_value = each.value.condition_attribute_value
condition_dictionary_name = each.value.condition_dictionary_name
condition_operator = each.value.condition_operator
profiles = each.value.profiles
security_group = each.value.security_group
children = each.value.children
depends_on = [ise_authorization_profile.authorization_profile, ise_trustsec_security_group.trustsec_security_group, time_sleep.sgt_wait, ise_endpoint_identity_group.endpoint_identity_group_0, ise_user_identity_group.user_identity_group_5, ise_network_device_group.network_device_group_5, ise_active_directory_add_groups.active_directory_groups]
}
resource "ise_network_access_authorization_global_exception_rule_update_rank" "network_access_authorization_global_exception_rule_update_rank" {
for_each = { for rule in local.network_access_authorization_global_exception_rules_with_ranks : rule.name => rule }
rule_id = ise_network_access_authorization_global_exception_rule.network_access_authorization_global_exception_rule[each.value.name].id
rank = each.value.generated_rank
}