Skip to content

Commit 607219f

Browse files
committed
Merge branch 'main' into policy-objects
2 parents a4b8573 + acf71c6 commit 607219f

30 files changed

+229
-117
lines changed

CHANGELOG.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
## 0.3.12 (unreleased)
1+
## 0.3.13
22

3+
- 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
35
- Add `sdwan_policy_object_feature_profile` resource and data source
46
- Add `sdwan_policy_object_class_map_profile_parcel` resource and data source
5-
- Add `sdwan_policy_object_color_profile_parcel` resource and data source
6-
- Add `sdwan_policy_object_data_ipv6_prefix_profile_parcel` resource and data source
7-
- Add `sdwan_policy_object_data_prefix_profile_parcel` resource and data source
8-
- Add `sdwan_policy_object_tloc_profile_parcel` resource and data source
9-
- Add `sdwan_policy_object_expanded_community_profile_parcel` resource and data source
10-
- Add `sdwan_policy_object_extended_community_profile_parcel` resource and data source
7+
- Add `sdwan_policy_object_color_list_profile_parcel` resource and data source
8+
- Add `sdwan_policy_object_data_ipv6_prefix_list_profile_parcel` resource and data source
9+
- Add `sdwan_policy_object_data_ipv4_prefix_list_profile_parcel` resource and data source
10+
- Add `sdwan_policy_object_tloc_list_profile_parcel` resource and data source
11+
- Add `sdwan_policy_object_expanded_community_list_profile_parcel` resource and data source
12+
- Add `sdwan_policy_object_extended_community_list_profile_parcel` resource and data source
1113
- Add `sdwan_policy_object_mirror_profile_parcel` resource and data source
1214
- Add `sdwan_policy_object_policer_profile_parcel` resource and data source
13-
- Add `sdwan_policy_object_prefix_profile_parcel` resource and data source
14-
- Add `sdwan_policy_object_ipv6_prefix_profile_parcel` resource and data source
15+
- Add `sdwan_policy_object_ipv4_prefix_list_profile_parcel` resource and data source
16+
- Add `sdwan_policy_object_ipv6_prefix_list_profile_parcel` resource and data source
17+
18+
## 0.3.12
19+
20+
- Add `protocol_type` attribute to `sdwan_zone_based_firewall_policy_definition` resource and data source
21+
- Fix payload issue with `sdwan_cisco_sig_credentials_feature_template` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/247)
1522

1623
## 0.3.11
1724

docs/data-sources/device.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This data source can read the Device .
1414

1515
```terraform
1616
data "sdwan_device" "example" {
17-
serial_number = "AEB355490B954ABAB3A430797E9F4A78"
17+
serial_number = "12B53B6E42654E01B98C77C347CE216E"
1818
name = "Controller01"
1919
}
2020
```

docs/data-sources/zone_based_firewall_policy_definition.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Read-Only:
6969
Read-Only:
7070

7171
- `policy_id` (String) policy id for selected match entry
72+
- `protocol_type` (String) Should be included with additionally entries for `destinationPort` and `protocol` whenever the type `protocolName` is used.
7273
- `type` (String) Type of match entry
7374
- `value` (String) value for selected match entry
7475
- `value_variable` (String) variable value for selected match entry if it has variable option (sourceIp & destinationIp)

docs/guides/changelog.md

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,33 @@
1-
---
2-
subcategory: "Guides"
3-
page_title: "Changelog"
4-
description: |-
5-
Changelog
6-
---
7-
8-
# Changelog
9-
10-
## 0.3.12 (unreleased)
1+
---
2+
subcategory: "Guides"
3+
page_title: "Changelog"
4+
description: |-
5+
Changelog
6+
---
117

8+
# Changelog
9+
10+
## 0.3.13
11+
12+
- 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
1214
- Add `sdwan_policy_object_feature_profile` resource and data source
1315
- Add `sdwan_policy_object_class_map_profile_parcel` resource and data source
14-
- Add `sdwan_policy_object_color_profile_parcel` resource and data source
15-
- Add `sdwan_policy_object_data_ipv6_prefix_profile_parcel` resource and data source
16-
- Add `sdwan_policy_object_data_prefix_profile_parcel` resource and data source
17-
- Add `sdwan_policy_object_tloc_profile_parcel` resource and data source
18-
- Add `sdwan_policy_object_expanded_community_profile_parcel` resource and data source
19-
- Add `sdwan_policy_object_extended_community_profile_parcel` resource and data source
16+
- Add `sdwan_policy_object_color_list_profile_parcel` resource and data source
17+
- Add `sdwan_policy_object_data_ipv6_prefix_list_profile_parcel` resource and data source
18+
- Add `sdwan_policy_object_data_ipv4_prefix_list_profile_parcel` resource and data source
19+
- Add `sdwan_policy_object_tloc_list_profile_parcel` resource and data source
20+
- Add `sdwan_policy_object_expanded_community_list_profile_parcel` resource and data source
21+
- Add `sdwan_policy_object_extended_community_list_profile_parcel` resource and data source
2022
- Add `sdwan_policy_object_mirror_profile_parcel` resource and data source
2123
- Add `sdwan_policy_object_policer_profile_parcel` resource and data source
22-
- Add `sdwan_policy_object_prefix_profile_parcel` resource and data source
23-
- Add `sdwan_policy_object_ipv6_prefix_profile_parcel` resource and data source
24+
- Add `sdwan_policy_object_ipv4_prefix_list_profile_parcel` resource and data source
25+
- Add `sdwan_policy_object_ipv6_prefix_list_profile_parcel` resource and data source
26+
27+
## 0.3.12
28+
29+
- Add `protocol_type` attribute to `sdwan_zone_based_firewall_policy_definition` resource and data source
30+
- Fix payload issue with `sdwan_cisco_sig_credentials_feature_template` resource, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/247)
2431

2532
## 0.3.11
2633

@@ -295,4 +302,4 @@ description: |-
295302
## 0.1.0 (July 23, 2021)
296303

297304
- Initial Release
298-
305+

docs/resources/dns_security_policy_definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "sdwan_dns_security_policy_definition" "example" {
2121
match_all_vpn = true
2222
dnscrypt = true
2323
umbrella_dns_default = true
24-
cisco_sig_credentials_feature_template_id = "aed8498e-4714-42dc-9425-b17624c7acb4"
24+
cisco_sig_credentials_feature_template_id = "3ac6eef9-bd8f-458d-96a7-a932c90b1e75"
2525
}
2626
```
2727

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

docs/resources/zone_based_firewall_policy_definition.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,22 @@ Required:
8080

8181
- `base_action` (String) Base action
8282
- Choices: `pass`, `drop`, `inspect`
83-
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--rules--match_entries))
8483
- `rule_name` (String) Rule name
8584
- `rule_order` (Number) Rule
8685

8786
Optional:
8887

8988
- `action_entries` (Attributes List) List of actions entries (see [below for nested schema](#nestedatt--rules--action_entries))
89+
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--rules--match_entries))
90+
91+
<a id="nestedatt--rules--action_entries"></a>
92+
### Nested Schema for `rules.action_entries`
93+
94+
Optional:
95+
96+
- `type` (String) Type of action entry
97+
- Choices: `log`, `connectionEvents`
98+
9099

91100
<a id="nestedatt--rules--match_entries"></a>
92101
### Nested Schema for `rules.match_entries`
@@ -99,18 +108,10 @@ Required:
99108
Optional:
100109

101110
- `policy_id` (String) policy id for selected match entry
111+
- `protocol_type` (String) Should be included with additionally entries for `destinationPort` and `protocol` whenever the type `protocolName` is used.
102112
- `value` (String) value for selected match entry
103113
- `value_variable` (String) variable value for selected match entry if it has variable option (sourceIp & destinationIp)
104114

105-
106-
<a id="nestedatt--rules--action_entries"></a>
107-
### Nested Schema for `rules.action_entries`
108-
109-
Optional:
110-
111-
- `type` (String) Type of action entry
112-
- Choices: `log`, `connectionEvents`
113-
114115
## Import
115116

116117
Import is supported using the following syntax:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
data "sdwan_device" "example" {
2-
serial_number = "AEB355490B954ABAB3A430797E9F4A78"
2+
serial_number = "12B53B6E42654E01B98C77C347CE216E"
33
name = "Controller01"
44
}

examples/resources/sdwan_dns_security_policy_definition/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ resource "sdwan_dns_security_policy_definition" "example" {
66
match_all_vpn = true
77
dnscrypt = true
88
umbrella_dns_default = true
9-
cisco_sig_credentials_feature_template_id = "aed8498e-4714-42dc-9425-b17624c7acb4"
9+
cisco_sig_credentials_feature_template_id = "3ac6eef9-bd8f-458d-96a7-a932c90b1e75"
1010
}

gen/definitions/feature_templates/cisco_sig_credentials.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ attributes:
66
- model_name: organization
77
tf_name: zscaler_organization
88
exclude_ignore: true
9+
requires_const_and_var: true
910
example: org1
1011
- model_name: partner-base-uri
1112
tf_name: zscaler_partner_base_uri
1213
exclude_ignore: true
14+
requires_const_and_var: true
1315
example: abc
1416
- model_name: username
1517
tf_name: zscaler_username
1618
exclude_ignore: true
19+
requires_const_and_var: true
1720
example: user1
1821
- model_name: password
1922
tf_name: zscaler_password
2023
exclude_ignore: true
24+
requires_const_and_var: true
2125
example: password123
2226
- model_name: cloud-gateway
2327
tf_name: zscaler_cloud_name
@@ -26,14 +30,17 @@ attributes:
2630
- model_name: partner-id
2731
tf_name: zscaler_partner_username
2832
exclude_ignore: true
33+
requires_const_and_var: true
2934
example: partner1
3035
- model_name: partner-secret
3136
tf_name: zscaler_partner_password
3237
exclude_ignore: true
38+
requires_const_and_var: true
3339
example: password123
3440
- model_name: partner-key
3541
tf_name: zscaler_partner_api_key
3642
exclude_ignore: true
43+
requires_const_and_var: true
3744
example: key123
3845
- model_name: api-key
3946
tf_name: umbrella_api_key

0 commit comments

Comments
 (0)