Skip to content

Commit 0da9e7b

Browse files
committed
Remove default value of failure mode attribute of security policy resource
1 parent 76379f8 commit 0da9e7b

File tree

6 files changed

+4
-5
lines changed

6 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## 0.3.13 (unreleased)
22

33
- Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated
4+
- BREAKING CHANGE: Remove default value of `failure_mode` attribute of `sdwan_security_policy` resource
45

56
## 0.3.12
67

docs/guides/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description: |-
1010
## 0.3.13 (unreleased)
1111

1212
- Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated
13+
- BREAKING CHANGE: Remove default value of `failure_mode` attribute of `sdwan_security_policy` resource
1314

1415
## 0.3.12
1516

docs/resources/security_policy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ resource "sdwan_security_policy" "example" {
5151
- Choices: `allow`, `deny`
5252
- `failure_mode` (String) Failure mode
5353
- Choices: `open`, `close`
54-
- Default value: `open`
5554
- `high_speed_logging_server_ip` (String) High Speed Logging Server IP
5655
- `high_speed_logging_server_port` (String) High Speed Logging Port
5756
- `high_speed_logging_vpn` (String) High Speed Logging VPN

gen/definitions/generic/security_policy.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ attributes:
9696
data_path: [policyDefinition, settings]
9797
tf_name: failure_mode
9898
type: String
99-
default_value: open
10099
enum_values: [open, close]
101100
description: Failure mode
102101
example: close

internal/provider/resource_sdwan_security_policy.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,11 @@ func (r *SecurityPolicyResource) Schema(ctx context.Context, req resource.Schema
152152
},
153153
},
154154
"failure_mode": schema.StringAttribute{
155-
MarkdownDescription: helpers.NewAttributeDescription("Failure mode").AddStringEnumDescription("open", "close").AddDefaultValueDescription("open").String,
155+
MarkdownDescription: helpers.NewAttributeDescription("Failure mode").AddStringEnumDescription("open", "close").String,
156156
Optional: true,
157-
Computed: true,
158157
Validators: []validator.String{
159158
stringvalidator.OneOf("open", "close"),
160159
},
161-
Default: stringdefault.StaticString("open"),
162160
},
163161
"high_speed_logging_server_ip": schema.StringAttribute{
164162
MarkdownDescription: helpers.NewAttributeDescription("High Speed Logging Server IP").String,

templates/guides/changelog.md.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ description: |-
1010
## 0.3.13 (unreleased)
1111

1212
- Add workaround for issue when concurrently deleting security policy objects where the reference count is not updated
13+
- BREAKING CHANGE: Remove default value of `failure_mode` attribute of `sdwan_security_policy` resource
1314

1415
## 0.3.12
1516

0 commit comments

Comments
 (0)