Skip to content

Commit a30bca6

Browse files
authored
Fix incorrect types (#487)
1 parent a24692e commit a30bca6

25 files changed

+109
-94
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
- Adds `enhanced_app_aware_routing` support to the `sdwan_cisco_system_feature_template` resource and data source
1010
- Add `gateway` attribute for `ipv4_static_routes` and `ipv6_static_routes` in `sdwan_service_lan_vpn_feature` resource
1111
- Fix issue causing `sdwan_transport_routing_bgp_feature` to fail to apply when `policy_type` is set to `off`, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/475)
12+
- BREAKING CHANGE: `sdwan_cisco_vpn_feature_template`: rename `interface` attribute to `interfaces`
13+
- Fix type of `interfaces` attribute of `sdwan_cisco_vpn_feature_template` under `ipv4_static_ipsec_routes` & `ipv4_static_gre_routes`, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/474)
14+
- Fix type of `as_path_prepend` attribute of `sdwan_service_route_policy_feature` and `sdwan_transport_route_policy_feature`, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/474)
1215

1316
## 0.6.2
1417

docs/data-sources/cisco_vpn_feature_template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ Read-Only:
103103

104104
Read-Only:
105105

106-
- `interface` (Set of String) List of GRE Interfaces
107-
- `interface_variable` (String) Variable name
106+
- `interfaces` (List of String) List of GRE Interfaces
107+
- `interfaces_variable` (String) Variable name
108108
- `optional` (Boolean) Indicates if list item is considered optional.
109109
- `prefix` (String) Prefix
110110
- `prefix_variable` (String) Variable name
@@ -116,8 +116,8 @@ Read-Only:
116116

117117
Read-Only:
118118

119-
- `interface` (Set of String) List of IPSEC Interfaces (Separated by commas)
120-
- `interface_variable` (String) Variable name
119+
- `interfaces` (List of String) List of IPSEC Interfaces (Separated by commas)
120+
- `interfaces_variable` (String) Variable name
121121
- `optional` (Boolean) Indicates if list item is considered optional.
122122
- `prefix` (String) Prefix
123123
- `prefix_variable` (String) Variable name

docs/data-sources/service_route_policy_feature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Read-Only:
5252

5353
Read-Only:
5454

55-
- `as_path_prepend` (Set of Number)
55+
- `as_path_prepend` (List of Number)
5656
- `community` (Set of String)
5757
- `community_additive` (Boolean)
5858
- `community_variable` (String) Variable name

docs/data-sources/transport_route_policy_feature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Read-Only:
5252

5353
Read-Only:
5454

55-
- `as_path_prepend` (Set of Number)
55+
- `as_path_prepend` (List of Number)
5656
- `community` (Set of String)
5757
- `community_additive` (Boolean)
5858
- `community_variable` (String) Variable name

docs/guides/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ description: |-
1818
- Adds `enhanced_app_aware_routing` support to the `sdwan_cisco_system_feature_template` resource and data source
1919
- Add `gateway` attribute for `ipv4_static_routes` and `ipv6_static_routes` in `sdwan_service_lan_vpn_feature` resource
2020
- Fix issue causing `sdwan_transport_routing_bgp_feature` to fail to apply when `policy_type` is set to `off`, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/475)
21+
- BREAKING CHANGE: `sdwan_cisco_vpn_feature_template`: rename `interface` attribute to `interfaces`
22+
- Fix type of `interfaces` attribute of `sdwan_cisco_vpn_feature_template` under `ipv4_static_ipsec_routes` & `ipv4_static_gre_routes`, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/474)
23+
- Fix type of `as_path_prepend` attribute of `sdwan_service_route_policy_feature` and `sdwan_transport_route_policy_feature`, [link](https://github.com/CiscoDevNet/terraform-provider-sdwan/issues/474)
2124

2225
## 0.6.2
2326

docs/resources/cisco_vpn_feature_template.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ resource "sdwan_cisco_vpn_feature_template" "example" {
9797
]
9898
ipv4_static_gre_routes = [
9999
{
100-
prefix = "3.3.3.0/24"
101-
vpn_id = 2
102-
interface = ["e1"]
100+
prefix = "3.3.3.0/24"
101+
vpn_id = 2
102+
interfaces = ["e1"]
103103
}
104104
]
105105
ipv4_static_ipsec_routes = [
106106
{
107-
prefix = "4.4.4.0/24"
108-
vpn_id = 2
109-
interface = ["e1"]
107+
prefix = "4.4.4.0/24"
108+
vpn_id = 2
109+
interfaces = ["e1"]
110110
}
111111
]
112112
omp_advertise_ipv4_routes = [
@@ -328,8 +328,8 @@ Optional:
328328

329329
Optional:
330330

331-
- `interface` (Set of String) List of GRE Interfaces
332-
- `interface_variable` (String) Variable name
331+
- `interfaces` (List of String) List of GRE Interfaces
332+
- `interfaces_variable` (String) Variable name
333333
- `optional` (Boolean) Indicates if list item is considered optional.
334334
- `prefix` (String) Prefix
335335
- `prefix_variable` (String) Variable name
@@ -342,8 +342,8 @@ Optional:
342342

343343
Optional:
344344

345-
- `interface` (Set of String) List of IPSEC Interfaces (Separated by commas)
346-
- `interface_variable` (String) Variable name
345+
- `interfaces` (List of String) List of IPSEC Interfaces (Separated by commas)
346+
- `interfaces_variable` (String) Variable name
347347
- `optional` (Boolean) Indicates if list item is considered optional.
348348
- `prefix` (String) Prefix
349349
- `prefix_variable` (String) Variable name

docs/resources/service_route_policy_feature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Optional:
8989

9090
Optional:
9191

92-
- `as_path_prepend` (Set of Number)
92+
- `as_path_prepend` (List of Number)
9393
- `community` (Set of String)
9494
- `community_additive` (Boolean) - Default value: `false`
9595
- `community_variable` (String) Variable name

docs/resources/transport_route_policy_feature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Optional:
8989

9090
Optional:
9191

92-
- `as_path_prepend` (Set of Number)
92+
- `as_path_prepend` (List of Number)
9393
- `community` (Set of String)
9494
- `community_additive` (Boolean) - Default value: `false`
9595
- `community_variable` (String) Variable name

examples/resources/sdwan_cisco_vpn_feature_template/resource.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ resource "sdwan_cisco_vpn_feature_template" "example" {
8080
]
8181
ipv4_static_gre_routes = [
8282
{
83-
prefix = "3.3.3.0/24"
84-
vpn_id = 2
85-
interface = ["e1"]
83+
prefix = "3.3.3.0/24"
84+
vpn_id = 2
85+
interfaces = ["e1"]
8686
}
8787
]
8888
ipv4_static_ipsec_routes = [
8989
{
90-
prefix = "4.4.4.0/24"
91-
vpn_id = 2
92-
interface = ["e1"]
90+
prefix = "4.4.4.0/24"
91+
vpn_id = 2
92+
interfaces = ["e1"]
9393
}
9494
]
9595
omp_advertise_ipv4_routes = [

gen/definitions/feature_templates/cisco_vpn.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ attributes:
134134
tf_name: vpn_id
135135
example: 2
136136
- model_name: interface
137+
tf_name: interfaces
138+
type: List
137139
example: e1
138140
- model_name: ipsec-route
139141
tf_name: ipv4_static_ipsec_routes
@@ -144,6 +146,8 @@ attributes:
144146
tf_name: vpn_id
145147
example: 2
146148
- model_name: interface
149+
tf_name: interfaces
150+
type: List
147151
example: e1
148152
- model_name: advertise
149153
tf_name: omp_advertise_ipv4_routes

0 commit comments

Comments
 (0)