Skip to content

Commit

Permalink
Add auto fec mode to link level policies
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed May 24, 2024
1 parent cc5cf52 commit c545dd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/terraform-aci-link-level-policy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module "aci_link_level_policy" {
| <a name="input_name"></a> [name](#input\_name) | Link level interface policy name. | `string` | n/a | yes |
| <a name="input_speed"></a> [speed](#input\_speed) | Interface speed. Choices: `inherit`, `auto`, `100M`, `1G`, `10G`, `25G`, `40G`, `100G`, `400G`. | `string` | `"inherit"` | no |
| <a name="input_auto"></a> [auto](#input\_auto) | Auto negotiation. | `bool` | `true` | no |
| <a name="input_fec_mode"></a> [fec\_mode](#input\_fec\_mode) | Forward error correction (FEC) mode. Choices: `inherit`, `cl91-rs-fec`, `cl74-fc-fec`, `ieee-rs-fec`, `cons16-rs-fec`, `disable-fec`. | `string` | `"inherit"` | no |
| <a name="input_fec_mode"></a> [fec\_mode](#input\_fec\_mode) | Forward error correction (FEC) mode. Choices: `inherit`, `cl91-rs-fec`, `cl74-fc-fec`, `ieee-rs-fec`, `cons16-rs-fec`, `disable-fec`, `auto-fec`. | `string` | `"inherit"` | no |
| <a name="input_physical_media_type"></a> [physical\_media\_type](#input\_physical\_media\_type) | Physical Media Type. Choices: `auto`, `sfp-10g-tx`. | `string` | `null` | no |

## Outputs
Expand Down
6 changes: 3 additions & 3 deletions modules/terraform-aci-link-level-policy/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ variable "auto" {
}

variable "fec_mode" {
description = "Forward error correction (FEC) mode. Choices: `inherit`, `cl91-rs-fec`, `cl74-fc-fec`, `ieee-rs-fec`, `cons16-rs-fec`, `disable-fec`."
description = "Forward error correction (FEC) mode. Choices: `inherit`, `cl91-rs-fec`, `cl74-fc-fec`, `ieee-rs-fec`, `cons16-rs-fec`, `disable-fec`, `auto-fec`."
type = string
default = "inherit"

validation {
condition = contains(["inherit", "cl91-rs-fec", "cl74-fc-fec", "ieee-rs-fec", "cons16-rs-fec", "disable-fec"], var.fec_mode)
error_message = "Allowed values: `inherit`, `cl91-rs-fec`, `cl74-fc-fec`, `ieee-rs-fec`, `cons16-rs-fec`, `disable-fec`."
condition = contains(["inherit", "cl91-rs-fec", "cl74-fc-fec", "ieee-rs-fec", "cons16-rs-fec", "disable-fec", "auto-fec"], var.fec_mode)
error_message = "Allowed values: `inherit`, `cl91-rs-fec`, `cl74-fc-fec`, `ieee-rs-fec`, `cons16-rs-fec`, `disable-fec`, `auto-fec`."
}
}

Expand Down

0 comments on commit c545dd6

Please sign in to comment.