Skip to content

Commit 8699d9a

Browse files
fix typo
1 parent c196a4b commit 8699d9a

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

docs/resources/wireless_ssid.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ resource "catalystcenter_wireless_ssid" "example" {
4949
### Required
5050

5151
- `auth_type` (String) L2 Authentication Type. If authType is not open, then at least one RSN Cipher Suite and corresponding valid AKM must be enabled.
52+
- Choices: `WPA2_ENTERPRISE`, `WPA2_PERSONAL`, `OPEN`, `WPA3_ENTERPRISE`, `WPA3_PERSONAL`, `WPA2_WPA3_PERSONAL`, `WPA2_WPA3_ENTERPRISE`, `OPEN_SECURED`
5253
- `site_id` (String) Site ID - only site level Global is supported
5354
- `ssid` (String) Name of the SSID
5455
- `wlan_type` (String) Wlan Type
56+
- Choices: `Enterprise`, `Guest`
5557

5658
### Optional
5759

@@ -72,6 +74,7 @@ resource "catalystcenter_wireless_ssid" "example" {
7274
- `auth_key_suite_b1921x` (Boolean) When set to true, the SuiteB192-1x authentication key feature is enabled
7375
- `auth_key_suite_b1x` (Boolean) When activated by setting it to true, the SuiteB-1x authentication key feature is engaged
7476
- `auth_server` (String) Authentication Server, Mandatory for Guest SSIDs with wlanType=Guest and l3AuthType=web_auth
77+
- Choices: `auth_ise`, `auth_external`, `auth_internal`
7578
- `auth_servers` (Set of String) List of Authentication/Authorization server IpAddresses
7679
- `basic_service_set_client_idle_timeout` (Number) This refers to the duration of inactivity, measured in seconds, before a client connected to the Basic Service Set is considered idle and timed out
7780
- Range: `15`-`100000`
@@ -88,6 +91,7 @@ resource "catalystcenter_wireless_ssid" "example" {
8891
- `coverage_hole_detection` (Boolean) Coverage Hole Detection Enable
8992
- `directed_multicast_service` (Boolean) The Directed Multicast Service feature becomes operational when it is set to true
9093
- `egress_qos` (String) Egress QOS
94+
- Choices: `PLATINUM`, `SILVER`, `GOLD`, `BRONZE`
9195
- `enabled` (Boolean) Set SSID's admin status as 'Enabled' when set to true
9296
- `external_auth_ip_address` (String) External WebAuth URL (Mandatory for Guest SSIDs with wlanType = Guest, l3AuthType = web_auth and authServer = auth_external)
9397
- `fast_lane` (Boolean) True if FastLane is enabled, else False
@@ -99,7 +103,9 @@ resource "catalystcenter_wireless_ssid" "example" {
99103
- `ghz6_policy_client_steering` (Boolean) True if 6 GHz Policy Client Steering is enabled, else False
100104
- `hex` (Boolean) True if passphrase is in Hex format, else False
101105
- `ingress_qos` (String) Ingress QOS
106+
- Choices: `PLATINUM-UP`, `SILVER-UP`, `GOLD-UP`, `BRONZE-UP`
102107
- `l3_auth_type` (String) L3 Authentication Type
108+
- Choices: `open`, `web_auth`
103109
- `mac_filtering` (Boolean) When set to true, MAC Filtering will be activated, allowing control over network access based on the MAC address of the device
104110
- `mft_client_protection` (String) Management Frame Protection Client
105111
- Choices: `OPTIONAL`, `DISABLED`, `REQUIRED`

gen/definitions/wireless_ssid.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ attributes:
2323
- model_name: authType
2424
type: String
2525
mandatory: true
26-
enun_values:
26+
enum_values:
2727
- WPA2_ENTERPRISE
2828
- WPA2_PERSONAL
2929
- OPEN
@@ -265,7 +265,7 @@ attributes:
265265
- model_name: egressQos
266266
type: String
267267
description: Egress QOS
268-
enun_values:
268+
enum_values:
269269
- PLATINUM
270270
- SILVER
271271
- GOLD
@@ -274,7 +274,7 @@ attributes:
274274
- model_name: ingressQos
275275
type: String
276276
description: Ingress QOS
277-
enun_values:
277+
enum_values:
278278
- PLATINUM-UP
279279
- SILVER-UP
280280
- GOLD-UP
@@ -284,21 +284,21 @@ attributes:
284284
type: String
285285
mandatory: true
286286
description: Wlan Type
287-
enun_values:
287+
enum_values:
288288
- Enterprise
289289
- Guest
290290
example: Enterprise
291291
- model_name: l3AuthType
292292
type: String
293293
description: L3 Authentication Type
294-
enun_values:
294+
enum_values:
295295
- open
296296
- web_auth
297297
exclude_test: true
298298
- model_name: authServer
299299
type: String
300300
description: Authentication Server, Mandatory for Guest SSIDs with wlanType=Guest and l3AuthType=web_auth
301-
enun_values:
301+
enum_values:
302302
- auth_ise
303303
- auth_external
304304
- auth_internal

internal/provider/resource_catalystcenter_wireless_ssid.go

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ func (r *WirelessSSIDResource) Schema(ctx context.Context, req resource.SchemaRe
8989
},
9090
},
9191
"auth_type": schema.StringAttribute{
92-
MarkdownDescription: helpers.NewAttributeDescription("L2 Authentication Type. If authType is not open, then at least one RSN Cipher Suite and corresponding valid AKM must be enabled.").String,
92+
MarkdownDescription: helpers.NewAttributeDescription("L2 Authentication Type. If authType is not open, then at least one RSN Cipher Suite and corresponding valid AKM must be enabled.").AddStringEnumDescription("WPA2_ENTERPRISE", "WPA2_PERSONAL", "OPEN", "WPA3_ENTERPRISE", "WPA3_PERSONAL", "WPA2_WPA3_PERSONAL", "WPA2_WPA3_ENTERPRISE", "OPEN_SECURED").String,
9393
Required: true,
94+
Validators: []validator.String{
95+
stringvalidator.OneOf("WPA2_ENTERPRISE", "WPA2_PERSONAL", "OPEN", "WPA3_ENTERPRISE", "WPA3_PERSONAL", "WPA2_WPA3_PERSONAL", "WPA2_WPA3_ENTERPRISE", "OPEN_SECURED"),
96+
},
9497
},
9598
"passphrase": schema.StringAttribute{
9699
MarkdownDescription: helpers.NewAttributeDescription("Passphrase (Only applicable for SSID with PERSONAL security level). Passphrase needs to be between 8 and 63 characters for ASCII type. HEX passphrase needs to be 64 characters").String,
@@ -299,24 +302,39 @@ func (r *WirelessSSIDResource) Schema(ctx context.Context, req resource.SchemaRe
299302
Optional: true,
300303
},
301304
"egress_qos": schema.StringAttribute{
302-
MarkdownDescription: helpers.NewAttributeDescription("Egress QOS").String,
305+
MarkdownDescription: helpers.NewAttributeDescription("Egress QOS").AddStringEnumDescription("PLATINUM", "SILVER", "GOLD", "BRONZE").String,
303306
Optional: true,
307+
Validators: []validator.String{
308+
stringvalidator.OneOf("PLATINUM", "SILVER", "GOLD", "BRONZE"),
309+
},
304310
},
305311
"ingress_qos": schema.StringAttribute{
306-
MarkdownDescription: helpers.NewAttributeDescription("Ingress QOS").String,
312+
MarkdownDescription: helpers.NewAttributeDescription("Ingress QOS").AddStringEnumDescription("PLATINUM-UP", "SILVER-UP", "GOLD-UP", "BRONZE-UP").String,
307313
Optional: true,
314+
Validators: []validator.String{
315+
stringvalidator.OneOf("PLATINUM-UP", "SILVER-UP", "GOLD-UP", "BRONZE-UP"),
316+
},
308317
},
309318
"wlan_type": schema.StringAttribute{
310-
MarkdownDescription: helpers.NewAttributeDescription("Wlan Type").String,
319+
MarkdownDescription: helpers.NewAttributeDescription("Wlan Type").AddStringEnumDescription("Enterprise", "Guest").String,
311320
Required: true,
321+
Validators: []validator.String{
322+
stringvalidator.OneOf("Enterprise", "Guest"),
323+
},
312324
},
313325
"l3_auth_type": schema.StringAttribute{
314-
MarkdownDescription: helpers.NewAttributeDescription("L3 Authentication Type").String,
326+
MarkdownDescription: helpers.NewAttributeDescription("L3 Authentication Type").AddStringEnumDescription("open", "web_auth").String,
315327
Optional: true,
328+
Validators: []validator.String{
329+
stringvalidator.OneOf("open", "web_auth"),
330+
},
316331
},
317332
"auth_server": schema.StringAttribute{
318-
MarkdownDescription: helpers.NewAttributeDescription("Authentication Server, Mandatory for Guest SSIDs with wlanType=Guest and l3AuthType=web_auth").String,
333+
MarkdownDescription: helpers.NewAttributeDescription("Authentication Server, Mandatory for Guest SSIDs with wlanType=Guest and l3AuthType=web_auth").AddStringEnumDescription("auth_ise", "auth_external", "auth_internal").String,
319334
Optional: true,
335+
Validators: []validator.String{
336+
stringvalidator.OneOf("auth_ise", "auth_external", "auth_internal"),
337+
},
320338
},
321339
"external_auth_ip_address": schema.StringAttribute{
322340
MarkdownDescription: helpers.NewAttributeDescription("External WebAuth URL (Mandatory for Guest SSIDs with wlanType = Guest, l3AuthType = web_auth and authServer = auth_external)").String,

0 commit comments

Comments
 (0)