Skip to content

Commit

Permalink
Merge pull request #625 from terraform-routeros/vaerh/issue619
Browse files Browse the repository at this point in the history
fix(wifi): Using `5ghz-an` for `routeros_wifi_channel` returns status code `400`
  • Loading branch information
vaerh authored Dec 30, 2024
2 parents bbd7216 + d603682 commit e17d606
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions routeros/resource_wifi_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ func ResourceWifiChannel() *schema.Resource {
Type: schema.TypeString,
Optional: true,
Description: "Frequency band and wireless standard that will be used by the AP. ",
ValidateFunc: validation.StringInSlice([]string{"2ghz-g", "2ghz-n", "2ghz-ax", "5ghz-a", "5ghz-ac", "5ghz-an", "5ghz-ax"}, false),
ValidateFunc: validation.StringInSlice([]string{"2ghz-g", "2ghz-n", "2ghz-ax", "5ghz-a", "5ghz-ac", "5ghz-ax",
"5ghz-an", "5ghz-n"}, false),
},
KeyComment: PropCommentRw,
KeyDisabled: PropDisabledRw,
Expand All @@ -40,15 +41,15 @@ func ResourceWifiChannel() *schema.Resource {
},
KeyName: PropName("Name of the channel."),
"reselect_interval": {
Type: schema.TypeString,
Optional: true,
Description: "An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.",
Type: schema.TypeString,
Optional: true,
Description: "An option that specifies when the interface should rescan channel availability and select the most appropriate one to use.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"secondary_frequency": {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Optional: true,
Description: "Specifies the second frequency that will be used for 80+80MHz configuration. " +
"Set it to `disabled` in order to disable 80+80MHz capability.",
},
Expand Down

0 comments on commit e17d606

Please sign in to comment.