Skip to content

Commit 9cd3980

Browse files
authored
Resolve Issue #471 and #473 (#472)
1 parent 3f841c0 commit 9cd3980

21 files changed

+224
-43
lines changed

docs/data-sources/ipv4_acl_policy_definition.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,17 @@ Read-Only:
8282
- `destination_data_ipv4_prefix_list_id` (String) Destination data IPv4 prefix list ID
8383
- `destination_data_ipv4_prefix_list_version` (Number) Destination data IPv4 prefix list version
8484
- `destination_ip` (String) Destination IP prefix
85+
- `destination_ip_variable` (String) Destination IP prefix variable
8586
- `destination_ports` (String) Destination ports. Single value (0-65535) or ranges separated by spaces.
86-
- `dscp` (Number) DSCP value
87+
- `dscp` (String) DSCP value
8788
- `icmp_message` (String) ICMP Message
8889
- `packet_length` (Number) Packet length
8990
- `priority` (String) PLP - priority
9091
- `protocol` (String) Single value (0-255) or multiple values separated by spaces
9192
- `source_data_ipv4_prefix_list_id` (String) Source data IPv4 prefix list ID
9293
- `source_data_ipv4_prefix_list_version` (Number) Source data IPv4 prefix list version
9394
- `source_ip` (String) Source IP prefix
95+
- `source_ip_variable` (String) Source IP prefix variable
9496
- `source_ports` (String) Source ports. Single value (0-65535) or ranges separated by spaces.
9597
- `tcp` (String) TCP parameters
9698
- `type` (String) Type of match entry

docs/data-sources/ipv4_device_acl_policy_definition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ Read-Only:
6262
- `destination_data_ipv4_prefix_list_id` (String) Destination data IPv4 prefix list ID
6363
- `destination_data_ipv4_prefix_list_version` (Number) Destination data IPv4 prefix list version
6464
- `destination_ip` (String) Destination IP prefix
65+
- `destination_ip_variable` (String) Destination IP prefix variable
6566
- `destination_port` (Number) Destination port, only `22` and `161` supported
6667
- `source_data_ipv4_prefix_list_id` (String) Source data IPv4 prefix list ID
6768
- `source_data_ipv4_prefix_list_version` (Number) Source data IPv4 prefix list version
6869
- `source_ip` (String) Source IP prefix
70+
- `source_ip_variable` (String) Source IP prefix variable
6971
- `source_ports` (String) Source ports. Single value (0-65535) or ranges separated by spaces.
7072
- `type` (String) Type of match entry

docs/data-sources/route_policy_definition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Read-Only:
5858
- `atomic_aggregate` (Boolean) Atomic aggregate
5959
- `community` (String) Community value, e.g. `1000:10000` or `internet` or `local-AS`
6060
- `community_additive` (Boolean) Community additive
61+
- `community_variable` (String) Community variable
6162
- `local_preference` (Number) Local preference
6263
- `metric` (Number) Metric
6364
- `metric_type` (String) Metric type
@@ -81,6 +82,7 @@ Read-Only:
8182
- `community_list_match_flag` (String) Community list match flag
8283
- `community_list_versions` (List of String) Community list versions
8384
- `expanded_community_list_id` (String) Expanded community list ID
85+
- `expanded_community_list_variable` (String) Expanded community list variable
8486
- `expanded_community_list_version` (Number) Expanded community list version
8587
- `extended_community_list_id` (String) Extended community list ID
8688
- `extended_community_list_version` (Number) Extended community list version

docs/resources/ipv4_acl_policy_definition.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "sdwan_ipv4_acl_policy_definition" "example" {
2525
match_entries = [
2626
{
2727
type = "dscp"
28-
dscp = 16
28+
dscp = "16"
2929
}
3030
]
3131
action_entries = [
@@ -131,9 +131,9 @@ Optional:
131131
- `destination_data_ipv4_prefix_list_id` (String) Destination data IPv4 prefix list ID, Attribute conditional on `type` being equal to `destinationDataPrefixList`
132132
- `destination_data_ipv4_prefix_list_version` (Number) Destination data IPv4 prefix list version
133133
- `destination_ip` (String) Destination IP prefix, Attribute conditional on `type` being equal to `destinationIp`
134+
- `destination_ip_variable` (String) Destination IP prefix variable, Attribute conditional on `type` being equal to `destinationIp`
134135
- `destination_ports` (String) Destination ports. Single value (0-65535) or ranges separated by spaces., Attribute conditional on `type` being equal to `destinationPort`
135-
- `dscp` (Number) DSCP value, Attribute conditional on `type` being equal to `dscp`
136-
- Range: `0`-`63`
136+
- `dscp` (String) DSCP value, Attribute conditional on `type` being equal to `dscp`
137137
- `icmp_message` (String) ICMP Message, Attribute conditional on `type` being equal to `icmpMessage`
138138
- `packet_length` (Number) Packet length, Attribute conditional on `type` being equal to `packetLength`
139139
- Range: `0`-`65535`
@@ -143,6 +143,7 @@ Optional:
143143
- `source_data_ipv4_prefix_list_id` (String) Source data IPv4 prefix list ID, Attribute conditional on `type` being equal to `sourceDataPrefixList`
144144
- `source_data_ipv4_prefix_list_version` (Number) Source data IPv4 prefix list version
145145
- `source_ip` (String) Source IP prefix, Attribute conditional on `type` being equal to `sourceIp`
146+
- `source_ip_variable` (String) Source IP prefix variable, Attribute conditional on `type` being equal to `sourceIp`
146147
- `source_ports` (String) Source ports. Single value (0-65535) or ranges separated by spaces., Attribute conditional on `type` being equal to `sourcePort`
147148
- `tcp` (String) TCP parameters, Attribute conditional on `type` being equal to `tcp`
148149
- Choices: `syn`

docs/resources/ipv4_device_acl_policy_definition.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ Optional:
101101
- `destination_data_ipv4_prefix_list_id` (String) Destination data IPv4 prefix list ID, Attribute conditional on `type` being equal to `destinationDataPrefixList`
102102
- `destination_data_ipv4_prefix_list_version` (Number) Destination data IPv4 prefix list version
103103
- `destination_ip` (String) Destination IP prefix, Attribute conditional on `type` being equal to `destinationIp`
104+
- `destination_ip_variable` (String) Destination IP prefix variable, Attribute conditional on `type` being equal to `destinationIp`
104105
- `destination_port` (Number) Destination port, only `22` and `161` supported, Attribute conditional on `type` being equal to `destinationPort`
105106
- Range: `0`-`65535`
106107
- `source_data_ipv4_prefix_list_id` (String) Source data IPv4 prefix list ID, Attribute conditional on `type` being equal to `sourceDataPrefixList`
107108
- `source_data_ipv4_prefix_list_version` (Number) Source data IPv4 prefix list version
108109
- `source_ip` (String) Source IP prefix, Attribute conditional on `type` being equal to `sourceIp`
110+
- `source_ip_variable` (String) Source IP prefix variable, Attribute conditional on `type` being equal to `sourceIp`
109111
- `source_ports` (String) Source ports. Single value (0-65535) or ranges separated by spaces., Attribute conditional on `type` being equal to `sourcePort`
110112

111113
## Import

docs/resources/route_policy_definition.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Optional:
9797
- `atomic_aggregate` (Boolean) Atomic aggregate, Attribute conditional on `type` being equal to `atomicAggregate`
9898
- `community` (String) Community value, e.g. `1000:10000` or `internet` or `local-AS`, Attribute conditional on `type` being equal to `community`
9999
- `community_additive` (Boolean) Community additive, Attribute conditional on `type` being equal to `communityAdditive`
100+
- `community_variable` (String) Community variable, Attribute conditional on `type` being equal to `community`
100101
- `local_preference` (Number) Local preference, Attribute conditional on `type` being equal to `localPreference`
101102
- Range: `0`-`4294967295`
102103
- `metric` (Number) Metric, Attribute conditional on `type` being equal to `metric`
@@ -121,7 +122,7 @@ Optional:
121122
Required:
122123

123124
- `type` (String) Type of match entry
124-
- Choices: `address`, `asPath`, `advancedCommunity`, `expandedCommunity`, `extCommunity`, `localPreference`, `metric`, `nextHop`, `origin`, `peer`, `ompTag`, `ospfTag`
125+
- Choices: `address`, `asPath`, `advancedCommunity`, `expandedCommunity`, `expandedCommunityInline`, `extCommunity`, `localPreference`, `metric`, `nextHop`, `origin`, `peer`, `ompTag`, `ospfTag`
125126

126127
Optional:
127128

@@ -132,6 +133,7 @@ Optional:
132133
- Choices: `and`, `or`, `exact`
133134
- `community_list_versions` (List of String) Community list versions
134135
- `expanded_community_list_id` (String) Expanded community list ID, Attribute conditional on `type` being equal to `expandedCommunity`
136+
- `expanded_community_list_variable` (String) Expanded community list variable, Attribute conditional on `type` being equal to `expandedCommunityInline`
135137
- `expanded_community_list_version` (Number) Expanded community list version
136138
- `extended_community_list_id` (String) Extended community list ID, Attribute conditional on `type` being equal to `extCommunity`
137139
- `extended_community_list_version` (Number) Extended community list version

examples/resources/sdwan_ipv4_acl_policy_definition/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "sdwan_ipv4_acl_policy_definition" "example" {
1010
match_entries = [
1111
{
1212
type = "dscp"
13-
dscp = 16
13+
dscp = "16"
1414
}
1515
]
1616
action_entries = [

gen/definitions/generic/ipv4_acl_policy_definition.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@ attributes:
9393
conditional_attribute:
9494
name: type
9595
value: dscp
96-
type: Int64
96+
type: String
9797
model_type_string: true
9898
description: DSCP value
99-
min_int: 0
100-
max_int: 63
10199
example: 16
102100
- model_name: value
103101
tf_name: source_ip
@@ -108,6 +106,15 @@ attributes:
108106
description: Source IP prefix
109107
exclude_test: true
110108
example: 10.0.0.0/8
109+
- model_name: vipVariableName
110+
tf_name: source_ip_variable
111+
conditional_attribute:
112+
name: type
113+
value: sourceIp
114+
type: String
115+
description: Source IP prefix variable
116+
exclude_test: true
117+
example: source_ip_variable
111118
- model_name: value
112119
tf_name: icmp_message
113120
conditional_attribute:
@@ -126,6 +133,15 @@ attributes:
126133
description: Destination IP prefix
127134
exclude_test: true
128135
example: 192.168.0.0/16
136+
- model_name: vipVariableName
137+
tf_name: destination_ip_variable
138+
conditional_attribute:
139+
name: type
140+
value: destinationIp
141+
type: String
142+
description: Destination IP prefix variable
143+
exclude_test: true
144+
example: destination_ip_variable
129145
- model_name: ref
130146
tf_name: class_map_id
131147
conditional_attribute:

gen/definitions/generic/ipv4_device_acl_policy_definition.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ attributes:
9090
description: Source IP prefix
9191
exclude_test: true
9292
example: 10.0.0.0/8
93+
- model_name: vipVariableName
94+
tf_name: source_ip_variable
95+
conditional_attribute:
96+
name: type
97+
value: sourceIp
98+
type: String
99+
description: Source IP prefix variable
100+
exclude_test: true
101+
example: source_ip_variable
93102
- model_name: value
94103
tf_name: destination_ip
95104
conditional_attribute:
@@ -99,6 +108,15 @@ attributes:
99108
description: Destination IP prefix
100109
exclude_test: true
101110
example: 192.168.0.0/16
111+
- model_name: vipVariableName
112+
tf_name: destination_ip_variable
113+
conditional_attribute:
114+
name: type
115+
value: destinationIp
116+
type: String
117+
description: Destination IP prefix variable
118+
exclude_test: true
119+
example: destination_ip_variable
102120
- model_name: value
103121
tf_name: source_ports
104122
conditional_attribute:

gen/definitions/generic/route_policy_definition.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ attributes:
8181
asPath,
8282
advancedCommunity,
8383
expandedCommunity,
84+
expandedCommunityInline,
8485
extCommunity,
8586
localPreference,
8687
metric,
@@ -154,6 +155,15 @@ attributes:
154155
description: Expanded community list ID
155156
example: 2081c2f4-3f9f-4fee-8078-dcc8904e368d
156157
exclude_test: true
158+
- model_name: vipVariableName
159+
tf_name: expanded_community_list_variable
160+
conditional_attribute:
161+
name: type
162+
value: expandedCommunityInline
163+
type: String
164+
description: Expanded community list variable
165+
exclude_test: true
166+
example: expanded_community_list_variable
157167
- tf_name: expanded_community_list_version
158168
tf_only: true
159169
type: Version
@@ -349,6 +359,15 @@ attributes:
349359
description: Community value, e.g. `1000:10000` or `internet` or `local-AS`
350360
example: 1000:10000
351361
exclude_test: true
362+
- model_name: vipVariableName
363+
tf_name: community_variable
364+
conditional_attribute:
365+
name: type
366+
value: community
367+
type: String
368+
description: Community variable
369+
exclude_test: true
370+
example: community_variable
352371
- model_name: value
353372
tf_name: community_additive
354373
conditional_attribute:

0 commit comments

Comments
 (0)