Skip to content

Commit

Permalink
Resolve schema issue
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Sep 11, 2024
1 parent 7977cfa commit 05a1bfe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/resources/transport_t1_e1_controller_feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ resource "sdwan_transport_t1_e1_controller_feature" "example" {
Optional:

- `cable_length` (String) Cable Config
- Choices: `short`, `long`
- `channel_groups` (Attributes List) Channel Group List (see [below for nested schema](#nestedatt--entries--channel_groups))
- `clock_source` (String) Clock Source
- Choices: `line`, `internal`, `loop-timed`, `network`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ attributes:
example: ami
- model_name: cableLength
data_path: [cable]
enum: [short, long]
enum_values: [short, long]
type: String
example: "long"
- model_name: lengthShort
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,11 @@ func (r *TransportT1E1ControllerProfileParcelResource) Schema(ctx context.Contex
Optional: true,
},
"cable_length": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("Cable Config").String,
MarkdownDescription: helpers.NewAttributeDescription("Cable Config").AddStringEnumDescription("short", "long").String,
Optional: true,
Validators: []validator.String{
stringvalidator.OneOf("short", "long"),
},
},
"length_short": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("length").AddStringEnumDescription("110ft", "220ft", "330ft", "440ft", "550ft", "660ft").String,
Expand Down

0 comments on commit 05a1bfe

Please sign in to comment.