Skip to content

Commit

Permalink
fix(wireless): Delete required parameters
Browse files Browse the repository at this point in the history
Interaction with physical interfaces has been simplified. It is possible, for example, to enable/disable an interface without specifying unnecessary parameters.
resource “routeros_interface_wireless” ‘wlan-2ghz’ {
  name = “wlan1”
  disabled = var.wlan_2ghz_disabled
}
  • Loading branch information
vaerh committed Oct 7, 2024
1 parent 085896e commit 616049e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions routeros/resource_interface_wireless.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func ResourceInterfaceWireless() *schema.Resource {
Description: "Defines set of used data rates, channel frequencies and widths.",
ValidateFunc: validation.StringInSlice([]string{"2ghz-b", "2ghz-b/g", "2ghz-b/g/n", "2ghz-onlyg",
"2ghz-onlyn", "5ghz-a", "5ghz-a/n", "5ghz-onlyn", "5ghz-a/n/ac", "5ghz-onlyac", "5ghz-n/ac"}, false),
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"basic_rates_ag": {
Type: schema.TypeSet,
Expand Down Expand Up @@ -483,7 +484,7 @@ func ResourceInterfaceWireless() *schema.Resource {
},
"mode": {
Type: schema.TypeString,
Required: true,
Optional: true,
Description: "Selection between different station and access point (AP) modes. **Station modes**: `station` - Basic " +
"station mode. Find and connect to acceptable AP. `station-wds` - Same as station, but create WDS link with " +
"AP, using proprietary extension. AP configuration has to allow WDS links with this device. Note that " +
Expand Down Expand Up @@ -727,9 +728,10 @@ func ResourceInterfaceWireless() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{"integer"}, false),
},
"ssid": {
Type: schema.TypeString,
Required: true,
Description: "SSID (service set identifier) is a name that identifies wireless network.",
Type: schema.TypeString,
Optional: true,
Description: "SSID (service set identifier) is a name that identifies wireless network.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"skip_dfs_channels": {
Type: schema.TypeString,
Expand Down

0 comments on commit 616049e

Please sign in to comment.