Skip to content

Commit

Permalink
update set_path asn validation
Browse files Browse the repository at this point in the history
  • Loading branch information
juchowan committed Oct 29, 2024
1 parent 17970c8 commit c4d474b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules/terraform-aci-set-rule/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,6 @@ variable "set_as_paths" {
]]))
error_message = "`order` minimum value: `0`. Maximum value: `31`."
}

validation {
condition = alltrue(flatten([
for c in var.set_as_paths : [
for a in c.asns : try(a.asn_number >= 0 && a.asn_number <= 65535, false)
]]))
error_message = "`asn` minimum value: `0`. Maximum value: `65535`."
}
}

variable "next_hop_propagation" {
Expand Down

0 comments on commit c4d474b

Please sign in to comment.