-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsdwan_feature_profiles.tf
35 lines (30 loc) · 1.52 KB
/
sdwan_feature_profiles.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
resource "sdwan_cli_feature_profile" "cli_feature_profile" {
for_each = { for t in try(local.feature_profiles.cli_profiles, {}) : t.name => t }
name = each.value.name
description = try(each.value.description, "")
}
resource "sdwan_other_feature_profile" "other_feature_profile" {
for_each = { for t in try(local.feature_profiles.other_profiles, {}) : t.name => t }
name = each.value.name
description = try(each.value.description, "")
}
resource "sdwan_service_feature_profile" "service_feature_profile" {
for_each = { for t in try(local.feature_profiles.service_profiles, {}) : t.name => t }
name = each.value.name
description = try(each.value.description, "")
}
resource "sdwan_system_feature_profile" "system_feature_profile" {
for_each = { for t in try(local.feature_profiles.system_profiles, {}) : t.name => t }
name = each.value.name
description = try(each.value.description, "")
}
resource "sdwan_transport_feature_profile" "transport_feature_profile" {
for_each = { for t in try(local.feature_profiles.transport_profiles, {}) : t.name => t }
name = each.value.name
description = try(each.value.description, "")
}
resource "sdwan_policy_object_feature_profile" "policy_object_feature_profile" {
count = contains(keys(local.feature_profiles), "policy_object_profile") ? 1 : 0
name = try(local.feature_profiles.policy_object_profile.name, "Policy_Profile_Global")
description = try(local.feature_profiles.policy_object_profile.description, "")
}