Skip to content

Commit

Permalink
fix: Fix the routeros_wifi_configuration resource to suppress prist…
Browse files Browse the repository at this point in the history
…ine inline parameters
  • Loading branch information
dokmic authored and vaerh committed Mar 18, 2024
1 parent 038fe7c commit 77d807c
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions routeros/resource_wifi_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ func ResourceWifiConfiguration() *schema.Resource {
"interworking": "interworking.config", "security": "security.config", "steering": "steering.config"`),

"aaa": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "AAA inline settings.",
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "AAA inline settings.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"antenna_gain": {
Type: schema.TypeInt,
Expand All @@ -69,10 +70,11 @@ func ResourceWifiConfiguration() *schema.Resource {
Description: "Radio chains to use for receiving signals.",
},
"channel": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Channel inline settings.",
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Channel inline settings.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
KeyComment: PropCommentRw,
"country": {
Expand All @@ -81,10 +83,11 @@ func ResourceWifiConfiguration() *schema.Resource {
Description: "An option determines which regulatory domain restrictions are applied to an interface.",
},
"datapath": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Datapath inline settings.",
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Datapath inline settings.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
KeyDisabled: PropDisabledRw,
"dtim_period": {
Expand All @@ -101,10 +104,11 @@ func ResourceWifiConfiguration() *schema.Resource {
"improve the security of the wireless network, because SSID is included in other frames sent by the AP.",
},
"interworking": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Interworking inline settings.",
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Interworking inline settings.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"manager": {
Type: schema.TypeString,
Expand Down Expand Up @@ -132,21 +136,23 @@ func ResourceWifiConfiguration() *schema.Resource {
ValidateFunc: validation.StringInSlice([]string{"dscp-high-3-bits", "priority"}, false),
},
"security": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Security inline settings.",
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Security inline settings.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"ssid": {
Type: schema.TypeString,
Optional: true,
Description: "SSID (service set identifier) is a name broadcast in the beacons that identifies wireless network.",
},
"steering": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Steering inline settings.",
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Description: "Steering inline settings.",
DiffSuppressFunc: AlwaysPresentNotUserProvided,
},
"tx_chains": {
Type: schema.TypeSet,
Expand Down

0 comments on commit 77d807c

Please sign in to comment.