Skip to content

Commit

Permalink
Minor centralized policies fixes (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrahimm authored Feb 1, 2024
1 parent 595a822 commit 0a224b4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions sdwan_centralized_policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ resource "sdwan_application_aware_routing_policy_definition" "application_aware_
}],
try(s.actions.backup_sla_preferred_colors, null) == null ? [] : [{
type = "backupSlaPreferredColor"
backup_sla_preferred_color = s.actions.backup_sla_preferred_colors
backup_sla_preferred_color = join(" ", [for p in try(s.actions.backup_sla_preferred_colors, []) : p])
}],
try(s.actions.sla_class_list, null) == null ? [] : [{
type = "slaClass"
Expand All @@ -650,7 +650,13 @@ resource "sdwan_application_aware_routing_policy_definition" "application_aware_
type = "preferredColorGroup"
preferred_color_group_list = sdwan_preferred_color_group_policy_object.preferred_color_group_policy_object[s.actions.sla_class_list.preferred_color_group].id
preferred_color_group_list_version = sdwan_preferred_color_group_policy_object.preferred_color_group_policy_object[s.actions.sla_class_list.preferred_color_group].version
}]
}],
try(s.actions.sla_class_list.when_sla_not_met, null) == "strict_drop" ? [{
type = "strict"
}] : [],
try(s.actions.sla_class_list.when_sla_not_met, null) == "fallback_to_best_path" ? [{
type = "fallbackToBestPath"
}] : []
])
}],
try(s.actions.cloud_sla, null) == null ? [] : [{
Expand Down

0 comments on commit 0a224b4

Please sign in to comment.