Skip to content

Commit a02c82d

Browse files
Fix typos in attribute names in wireless ssid resource (#154)
1 parent 1f32ae3 commit a02c82d

File tree

9 files changed

+34
-28
lines changed

9 files changed

+34
-28
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 0.1.17 (unreleased)
22

3+
- BREAKING CHANGE: Rename `auth_key_sae_ext_plus_tf` attribute of `catalystcenter_wireless_ssid` resource to `auth_key_sae_ext_plus_ft`
4+
- BREAKING CHANGE: Rename `auth_key8021x_plus_tf` attribute of `catalystcenter_wireless_ssid` resource to `auth_key8021x_plus_ft`
35
- Add device unreachability warning to `catalystcenter_anycast_gateway`, `catalystcenter_fabric_l2_handoff`, `catalystcenter_fabric_device`, `catalystcenter_fabric_port_assignment` and `catalystcenter_provision_device` resources
46
- Add `auth_key_psk` and `auth_key_psk_plus_ft` attributes to `catalystcenter_wireless_ssid` resource and data source
57

docs/data-sources/wireless_ssid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data "catalystcenter_wireless_ssid" "example" {
3434
- `acl_name` (String) Pre-Auth Access Control List (ACL) Name
3535
- `ap_beacon_protection` (Boolean) When set to true, the Access Point (AP) Beacon Protection feature is activated, enhancing the security of the network
3636
- `auth_key8021x` (Boolean) When set to true, the 802.1X authentication key is in use
37-
- `auth_key8021x_plus_tf` (Boolean) When set to true, the 802.1X-Plus-FT authentication key is in use
37+
- `auth_key8021x_plus_ft` (Boolean) When set to true, the 802.1X-Plus-FT authentication key is in use
3838
- `auth_key8021x_sha256` (Boolean) When set to true, the feature that enables 802.1X authentication using the SHA256 algorithm is turned on
3939
- `auth_key_easy_psk` (Boolean) When set to true, the feature that enables the use of Easy Pre-shared Key (PSK) authentication is activated
4040
- `auth_key_easy_psk_sha256` (Boolean) The feature that allows the use of Pre-shared Key (PSK) authentication with the SHA256 algorithm is enabled when it is set to true
@@ -43,7 +43,7 @@ data "catalystcenter_wireless_ssid" "example" {
4343
- `auth_key_psk_plus_ft` (Boolean) When set to true, the feature that enables the combination of Pre-shared Key (PSK) and Fast Transition (FT) authentication keys is activated
4444
- `auth_key_sae` (Boolean) When set to true, the feature enabling the Simultaneous Authentication of Equals (SAE) authentication key is activated
4545
- `auth_key_sae_ext` (Boolean) When set to true, the Simultaneous Authentication of Equals (SAE) Extended Authentication key feature is turned on
46-
- `auth_key_sae_ext_plus_tf` (Boolean) When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled
46+
- `auth_key_sae_ext_plus_ft` (Boolean) When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled
4747
- `auth_key_sae_plus_ft` (Boolean) When set to true, the feature that enables the combination of Pre-shared Key (PSK) and Fast Transition (FT) authentication keys is activated
4848
- `auth_key_suite_b1921x` (Boolean) When set to true, the SuiteB192-1x authentication key feature is enabled
4949
- `auth_key_suite_b1x` (Boolean) When activated by setting it to true, the SuiteB-1x authentication key feature is engaged

docs/guides/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: |-
99

1010
## 0.1.17 (unreleased)
1111

12+
- BREAKING CHANGE: Rename `auth_key_sae_ext_plus_tf` attribute of `catalystcenter_wireless_ssid` resource to `auth_key_sae_ext_plus_ft`
13+
- BREAKING CHANGE: Rename `auth_key8021x_plus_tf` attribute of `catalystcenter_wireless_ssid` resource to `auth_key8021x_plus_ft`
1214
- Add device unreachability warning to `catalystcenter_anycast_gateway`, `catalystcenter_fabric_l2_handoff`, `catalystcenter_fabric_device`, `catalystcenter_fabric_port_assignment` and `catalystcenter_provision_device` resources
1315
- Add `auth_key_psk` and `auth_key_psk_plus_ft` attributes to `catalystcenter_wireless_ssid` resource and data source
1416

docs/resources/wireless_ssid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ resource "catalystcenter_wireless_ssid" "example" {
6262
- `acl_name` (String) Pre-Auth Access Control List (ACL) Name
6363
- `ap_beacon_protection` (Boolean) When set to true, the Access Point (AP) Beacon Protection feature is activated, enhancing the security of the network
6464
- `auth_key8021x` (Boolean) When set to true, the 802.1X authentication key is in use
65-
- `auth_key8021x_plus_tf` (Boolean) When set to true, the 802.1X-Plus-FT authentication key is in use
65+
- `auth_key8021x_plus_ft` (Boolean) When set to true, the 802.1X-Plus-FT authentication key is in use
6666
- `auth_key8021x_sha256` (Boolean) When set to true, the feature that enables 802.1X authentication using the SHA256 algorithm is turned on
6767
- `auth_key_easy_psk` (Boolean) When set to true, the feature that enables the use of Easy Pre-shared Key (PSK) authentication is activated
6868
- `auth_key_easy_psk_sha256` (Boolean) The feature that allows the use of Pre-shared Key (PSK) authentication with the SHA256 algorithm is enabled when it is set to true
@@ -71,7 +71,7 @@ resource "catalystcenter_wireless_ssid" "example" {
7171
- `auth_key_psk_plus_ft` (Boolean) When set to true, the feature that enables the combination of Pre-shared Key (PSK) and Fast Transition (FT) authentication keys is activated
7272
- `auth_key_sae` (Boolean) When set to true, the feature enabling the Simultaneous Authentication of Equals (SAE) authentication key is activated
7373
- `auth_key_sae_ext` (Boolean) When set to true, the Simultaneous Authentication of Equals (SAE) Extended Authentication key feature is turned on
74-
- `auth_key_sae_ext_plus_tf` (Boolean) When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled
74+
- `auth_key_sae_ext_plus_ft` (Boolean) When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled
7575
- `auth_key_sae_plus_ft` (Boolean) When set to true, the feature that enables the combination of Pre-shared Key (PSK) and Fast Transition (FT) authentication keys is activated
7676
- `auth_key_suite_b1921x` (Boolean) When set to true, the SuiteB192-1x authentication key feature is enabled
7777
- `auth_key_suite_b1x` (Boolean) When activated by setting it to true, the SuiteB-1x authentication key feature is engaged

gen/definitions/wireless_ssid.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ attributes:
204204
description: When set to true, the 802.1X authentication key is in use
205205
exclude_test: true
206206
- model_name: isAuthKey8021xPlusFT
207-
tf_name: auth_key8021x_plus_tf
207+
tf_name: auth_key8021x_plus_ft
208208
type: Bool
209209
description: When set to true, the 802.1X-Plus-FT authentication key is in use
210210
exclude_test: true
@@ -357,7 +357,7 @@ attributes:
357357
description: When set to true, the Simultaneous Authentication of Equals (SAE) Extended Authentication key feature is turned on
358358
example: true
359359
- model_name: isAuthKeySaeExtPlusFT
360-
tf_name: auth_key_sae_ext_plus_tf
360+
tf_name: auth_key_sae_ext_plus_ft
361361
type: Bool
362362
description: When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled
363363
exclude_test: true

internal/provider/data_source_catalystcenter_wireless_ssid.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (d *WirelessSSIDDataSource) Schema(ctx context.Context, req datasource.Sche
202202
MarkdownDescription: "When set to true, the 802.1X authentication key is in use",
203203
Computed: true,
204204
},
205-
"auth_key8021x_plus_tf": schema.BoolAttribute{
205+
"auth_key8021x_plus_ft": schema.BoolAttribute{
206206
MarkdownDescription: "When set to true, the 802.1X-Plus-FT authentication key is in use",
207207
Computed: true,
208208
},
@@ -316,7 +316,7 @@ func (d *WirelessSSIDDataSource) Schema(ctx context.Context, req datasource.Sche
316316
MarkdownDescription: "When set to true, the Simultaneous Authentication of Equals (SAE) Extended Authentication key feature is turned on",
317317
Computed: true,
318318
},
319-
"auth_key_sae_ext_plus_tf": schema.BoolAttribute{
319+
"auth_key_sae_ext_plus_ft": schema.BoolAttribute{
320320
MarkdownDescription: "When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled",
321321
Computed: true,
322322
},

internal/provider/model_catalystcenter_wireless_ssid.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type WirelessSSID struct {
6565
RsnCipherSuiteCcmp128 types.Bool `tfsdk:"rsn_cipher_suite_ccmp128"`
6666
Ghz6PolicyClientSteering types.Bool `tfsdk:"ghz6_policy_client_steering"`
6767
AuthKey8021x types.Bool `tfsdk:"auth_key8021x"`
68-
AuthKey8021xPlusTf types.Bool `tfsdk:"auth_key8021x_plus_tf"`
68+
AuthKey8021xPlusFt types.Bool `tfsdk:"auth_key8021x_plus_ft"`
6969
AuthKey8021xSha256 types.Bool `tfsdk:"auth_key8021x_sha256"`
7070
AuthKeySae types.Bool `tfsdk:"auth_key_sae"`
7171
AuthKeySaePlusFt types.Bool `tfsdk:"auth_key_sae_plus_ft"`
@@ -93,7 +93,7 @@ type WirelessSSID struct {
9393
AuthKeySuiteB1x types.Bool `tfsdk:"auth_key_suite_b1x"`
9494
AuthKeySuiteB1921x types.Bool `tfsdk:"auth_key_suite_b1921x"`
9595
AuthKeySaeExt types.Bool `tfsdk:"auth_key_sae_ext"`
96-
AuthKeySaeExtPlusTf types.Bool `tfsdk:"auth_key_sae_ext_plus_tf"`
96+
AuthKeySaeExtPlusFt types.Bool `tfsdk:"auth_key_sae_ext_plus_ft"`
9797
ApBeaconProtection types.Bool `tfsdk:"ap_beacon_protection"`
9898
Ghz24Policy types.String `tfsdk:"ghz24_policy"`
9999
CckmTsfTolerance types.Int64 `tfsdk:"cckm_tsf_tolerance"`
@@ -235,8 +235,8 @@ func (data WirelessSSID) toBody(ctx context.Context, state WirelessSSID) string
235235
if !data.AuthKey8021x.IsNull() {
236236
body, _ = sjson.Set(body, "isAuthKey8021x", data.AuthKey8021x.ValueBool())
237237
}
238-
if !data.AuthKey8021xPlusTf.IsNull() {
239-
body, _ = sjson.Set(body, "isAuthKey8021xPlusFT", data.AuthKey8021xPlusTf.ValueBool())
238+
if !data.AuthKey8021xPlusFt.IsNull() {
239+
body, _ = sjson.Set(body, "isAuthKey8021xPlusFT", data.AuthKey8021xPlusFt.ValueBool())
240240
}
241241
if !data.AuthKey8021xSha256.IsNull() {
242242
body, _ = sjson.Set(body, "isAuthKey8021x_SHA256", data.AuthKey8021xSha256.ValueBool())
@@ -323,8 +323,8 @@ func (data WirelessSSID) toBody(ctx context.Context, state WirelessSSID) string
323323
if !data.AuthKeySaeExt.IsNull() {
324324
body, _ = sjson.Set(body, "isAuthKeySaeExt", data.AuthKeySaeExt.ValueBool())
325325
}
326-
if !data.AuthKeySaeExtPlusTf.IsNull() {
327-
body, _ = sjson.Set(body, "isAuthKeySaeExtPlusFT", data.AuthKeySaeExtPlusTf.ValueBool())
326+
if !data.AuthKeySaeExtPlusFt.IsNull() {
327+
body, _ = sjson.Set(body, "isAuthKeySaeExtPlusFT", data.AuthKeySaeExtPlusFt.ValueBool())
328328
}
329329
if !data.ApBeaconProtection.IsNull() {
330330
body, _ = sjson.Set(body, "isApBeaconProtectionEnabled", data.ApBeaconProtection.ValueBool())
@@ -518,9 +518,9 @@ func (data *WirelessSSID) fromBody(ctx context.Context, res gjson.Result) {
518518
data.AuthKey8021x = types.BoolNull()
519519
}
520520
if value := res.Get("isAuthKey8021xPlusFT"); value.Exists() {
521-
data.AuthKey8021xPlusTf = types.BoolValue(value.Bool())
521+
data.AuthKey8021xPlusFt = types.BoolValue(value.Bool())
522522
} else {
523-
data.AuthKey8021xPlusTf = types.BoolNull()
523+
data.AuthKey8021xPlusFt = types.BoolNull()
524524
}
525525
if value := res.Get("isAuthKey8021x_SHA256"); value.Exists() {
526526
data.AuthKey8021xSha256 = types.BoolValue(value.Bool())
@@ -658,9 +658,9 @@ func (data *WirelessSSID) fromBody(ctx context.Context, res gjson.Result) {
658658
data.AuthKeySaeExt = types.BoolNull()
659659
}
660660
if value := res.Get("isAuthKeySaeExtPlusFT"); value.Exists() {
661-
data.AuthKeySaeExtPlusTf = types.BoolValue(value.Bool())
661+
data.AuthKeySaeExtPlusFt = types.BoolValue(value.Bool())
662662
} else {
663-
data.AuthKeySaeExtPlusTf = types.BoolNull()
663+
data.AuthKeySaeExtPlusFt = types.BoolNull()
664664
}
665665
if value := res.Get("isApBeaconProtectionEnabled"); value.Exists() {
666666
data.ApBeaconProtection = types.BoolValue(value.Bool())
@@ -882,10 +882,10 @@ func (data *WirelessSSID) updateFromBody(ctx context.Context, res gjson.Result)
882882
} else {
883883
data.AuthKey8021x = types.BoolNull()
884884
}
885-
if value := res.Get("isAuthKey8021xPlusFT"); value.Exists() && !data.AuthKey8021xPlusTf.IsNull() {
886-
data.AuthKey8021xPlusTf = types.BoolValue(value.Bool())
885+
if value := res.Get("isAuthKey8021xPlusFT"); value.Exists() && !data.AuthKey8021xPlusFt.IsNull() {
886+
data.AuthKey8021xPlusFt = types.BoolValue(value.Bool())
887887
} else {
888-
data.AuthKey8021xPlusTf = types.BoolNull()
888+
data.AuthKey8021xPlusFt = types.BoolNull()
889889
}
890890
if value := res.Get("isAuthKey8021x_SHA256"); value.Exists() && !data.AuthKey8021xSha256.IsNull() {
891891
data.AuthKey8021xSha256 = types.BoolValue(value.Bool())
@@ -1022,10 +1022,10 @@ func (data *WirelessSSID) updateFromBody(ctx context.Context, res gjson.Result)
10221022
} else {
10231023
data.AuthKeySaeExt = types.BoolNull()
10241024
}
1025-
if value := res.Get("isAuthKeySaeExtPlusFT"); value.Exists() && !data.AuthKeySaeExtPlusTf.IsNull() {
1026-
data.AuthKeySaeExtPlusTf = types.BoolValue(value.Bool())
1025+
if value := res.Get("isAuthKeySaeExtPlusFT"); value.Exists() && !data.AuthKeySaeExtPlusFt.IsNull() {
1026+
data.AuthKeySaeExtPlusFt = types.BoolValue(value.Bool())
10271027
} else {
1028-
data.AuthKeySaeExtPlusTf = types.BoolNull()
1028+
data.AuthKeySaeExtPlusFt = types.BoolNull()
10291029
}
10301030
if value := res.Get("isApBeaconProtectionEnabled"); value.Exists() && !data.ApBeaconProtection.IsNull() {
10311031
data.ApBeaconProtection = types.BoolValue(value.Bool())
@@ -1158,7 +1158,7 @@ func (data *WirelessSSID) isNull(ctx context.Context, res gjson.Result) bool {
11581158
if !data.AuthKey8021x.IsNull() {
11591159
return false
11601160
}
1161-
if !data.AuthKey8021xPlusTf.IsNull() {
1161+
if !data.AuthKey8021xPlusFt.IsNull() {
11621162
return false
11631163
}
11641164
if !data.AuthKey8021xSha256.IsNull() {
@@ -1242,7 +1242,7 @@ func (data *WirelessSSID) isNull(ctx context.Context, res gjson.Result) bool {
12421242
if !data.AuthKeySaeExt.IsNull() {
12431243
return false
12441244
}
1245-
if !data.AuthKeySaeExtPlusTf.IsNull() {
1245+
if !data.AuthKeySaeExtPlusFt.IsNull() {
12461246
return false
12471247
}
12481248
if !data.ApBeaconProtection.IsNull() {

internal/provider/resource_catalystcenter_wireless_ssid.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (r *WirelessSSIDResource) Schema(ctx context.Context, req resource.SchemaRe
251251
MarkdownDescription: helpers.NewAttributeDescription("When set to true, the 802.1X authentication key is in use").String,
252252
Optional: true,
253253
},
254-
"auth_key8021x_plus_tf": schema.BoolAttribute{
254+
"auth_key8021x_plus_ft": schema.BoolAttribute{
255255
MarkdownDescription: helpers.NewAttributeDescription("When set to true, the 802.1X-Plus-FT authentication key is in use").String,
256256
Optional: true,
257257
},
@@ -383,7 +383,7 @@ func (r *WirelessSSIDResource) Schema(ctx context.Context, req resource.SchemaRe
383383
MarkdownDescription: helpers.NewAttributeDescription("When set to true, the Simultaneous Authentication of Equals (SAE) Extended Authentication key feature is turned on").String,
384384
Optional: true,
385385
},
386-
"auth_key_sae_ext_plus_tf": schema.BoolAttribute{
386+
"auth_key_sae_ext_plus_ft": schema.BoolAttribute{
387387
MarkdownDescription: helpers.NewAttributeDescription("When set to true, the Simultaneous Authentication of Equals (SAE) combined with Fast Transition (FT) Authentication Key feature is enabled").String,
388388
Optional: true,
389389
},

templates/guides/changelog.md.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: |-
99

1010
## 0.1.17 (unreleased)
1111

12+
- BREAKING CHANGE: Rename `auth_key_sae_ext_plus_tf` attribute of `catalystcenter_wireless_ssid` resource to `auth_key_sae_ext_plus_ft`
13+
- BREAKING CHANGE: Rename `auth_key8021x_plus_tf` attribute of `catalystcenter_wireless_ssid` resource to `auth_key8021x_plus_ft`
1214
- Add device unreachability warning to `catalystcenter_anycast_gateway`, `catalystcenter_fabric_l2_handoff`, `catalystcenter_fabric_device`, `catalystcenter_fabric_port_assignment` and `catalystcenter_provision_device` resources
1315
- Add `auth_key_psk` and `auth_key_psk_plus_ft` attributes to `catalystcenter_wireless_ssid` resource and data source
1416

0 commit comments

Comments
 (0)