Skip to content

Commit 2e705eb

Browse files
committed
Add ipv6 device acl policy definition resource
1 parent 843a1d8 commit 2e705eb

15 files changed

+1407
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- BREAKING CHANGE: Rename `sdwan_acl_policy_definition` resource and data source to `sdwan_ipv4_acl_policy_definition`
1717
- BREAKING CHANGE: Rename `sdwan_device_acl_policy_definition` resource and data source to `sdwan_ipv4_device_acl_policy_definition`
1818
- Add `sdwan_ipv6_acl_policy_definition` resource and data source
19+
- Add `sdwan_ipv6_device_acl_policy_definition` resource and data source
1920

2021
## 0.2.11
2122

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "sdwan_ipv6_device_acl_policy_definition Data Source - terraform-provider-sdwan"
4+
subcategory: "Localized Policies"
5+
description: |-
6+
This data source can read the IPv6 Device ACL Policy Definition .
7+
---
8+
9+
# sdwan_ipv6_device_acl_policy_definition (Data Source)
10+
11+
This data source can read the IPv6 Device ACL Policy Definition .
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "sdwan_ipv6_device_acl_policy_definition" "example" {
17+
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
18+
}
19+
```
20+
21+
<!-- schema generated by tfplugindocs -->
22+
## Schema
23+
24+
### Required
25+
26+
- `id` (String) The id of the object
27+
28+
### Read-Only
29+
30+
- `default_action` (String) Default action, either `accept` or `drop`
31+
- `description` (String) The description of the policy definition
32+
- `name` (String) The name of the policy definition
33+
- `sequences` (Attributes List) List of ACL sequences (see [below for nested schema](#nestedatt--sequences))
34+
- `version` (Number) The version of the object
35+
36+
<a id="nestedatt--sequences"></a>
37+
### Nested Schema for `sequences`
38+
39+
Read-Only:
40+
41+
- `action_entries` (Attributes List) List of action entries (see [below for nested schema](#nestedatt--sequences--action_entries))
42+
- `base_action` (String) Base action, either `accept` or `drop`
43+
- `id` (Number) Sequence ID
44+
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries))
45+
- `name` (String) Sequence name
46+
47+
<a id="nestedatt--sequences--action_entries"></a>
48+
### Nested Schema for `sequences.action_entries`
49+
50+
Read-Only:
51+
52+
- `counter_name` (String) Counter name
53+
- `type` (String) Type of action entry
54+
55+
56+
<a id="nestedatt--sequences--match_entries"></a>
57+
### Nested Schema for `sequences.match_entries`
58+
59+
Read-Only:
60+
61+
- `destination_data_ipv6_prefix_list_id` (String) Destination data IPv6 prefix list ID
62+
- `destination_data_ipv6_prefix_list_version` (Number) Destination data IPv6 prefix list version
63+
- `destination_ip` (String) Destination IP prefix
64+
- `destination_port` (Number) Destination port, only `22` and `161` supported
65+
- `source_data_ipv6_prefix_list_id` (String) Source data IPv6 prefix list ID
66+
- `source_data_ipv6_prefix_list_version` (Number) Source data IPv6 prefix list version
67+
- `source_ip` (String) Source IP prefix
68+
- `source_port` (Number) Source port
69+
- `type` (String) Type of match entry

docs/guides/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ description: |-
2525
- BREAKING CHANGE: Rename `sdwan_acl_policy_definition` resource and data source to `sdwan_ipv4_acl_policy_definition`
2626
- BREAKING CHANGE: Rename `sdwan_device_acl_policy_definition` resource and data source to `sdwan_ipv4_device_acl_policy_definition`
2727
- Add `sdwan_ipv6_acl_policy_definition` resource and data source
28+
- Add `sdwan_ipv6_device_acl_policy_definition` resource and data source
2829

2930
## 0.2.11
3031

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "sdwan_ipv6_device_acl_policy_definition Resource - terraform-provider-sdwan"
4+
subcategory: "Localized Policies"
5+
description: |-
6+
This resource can manage a IPv6 Device ACL Policy Definition .
7+
---
8+
9+
# sdwan_ipv6_device_acl_policy_definition (Resource)
10+
11+
This resource can manage a IPv6 Device ACL Policy Definition .
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "sdwan_ipv6_device_acl_policy_definition" "example" {
17+
name = "Example"
18+
description = "My description"
19+
default_action = "drop"
20+
sequences = [
21+
{
22+
id = 10
23+
name = "Sequence 10"
24+
base_action = "accept"
25+
match_entries = [
26+
{
27+
type = "destinationPort"
28+
destination_port = 22
29+
}
30+
]
31+
action_entries = [
32+
{
33+
type = "count"
34+
counter_name = "count1"
35+
}
36+
]
37+
}
38+
]
39+
}
40+
```
41+
42+
<!-- schema generated by tfplugindocs -->
43+
## Schema
44+
45+
### Required
46+
47+
- `description` (String) The description of the policy definition
48+
- `name` (String) The name of the policy definition
49+
- `sequences` (Attributes List) List of ACL sequences (see [below for nested schema](#nestedatt--sequences))
50+
51+
### Optional
52+
53+
- `default_action` (String) Default action, either `accept` or `drop`
54+
- Choices: `accept`, `drop`
55+
56+
### Read-Only
57+
58+
- `id` (String) The id of the object
59+
- `version` (Number) The version of the object
60+
61+
<a id="nestedatt--sequences"></a>
62+
### Nested Schema for `sequences`
63+
64+
Required:
65+
66+
- `id` (Number) Sequence ID
67+
- Range: `1`-`65534`
68+
- `name` (String) Sequence name
69+
70+
Optional:
71+
72+
- `action_entries` (Attributes List) List of action entries (see [below for nested schema](#nestedatt--sequences--action_entries))
73+
- `base_action` (String) Base action, either `accept` or `drop`
74+
- Choices: `accept`, `drop`
75+
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries))
76+
77+
<a id="nestedatt--sequences--action_entries"></a>
78+
### Nested Schema for `sequences.action_entries`
79+
80+
Required:
81+
82+
- `type` (String) Type of action entry
83+
- Choices: `count`
84+
85+
Optional:
86+
87+
- `counter_name` (String) Counter name
88+
89+
90+
<a id="nestedatt--sequences--match_entries"></a>
91+
### Nested Schema for `sequences.match_entries`
92+
93+
Required:
94+
95+
- `type` (String) Type of match entry
96+
- Choices: `sourceIpv6`, `destinationIpv6`, `sourcePort`, `destinationPort`, `sourceDataIpv6PrefixList`, `destinationDataIpv6PrefixList`
97+
98+
Optional:
99+
100+
- `destination_data_ipv6_prefix_list_id` (String) Destination data IPv6 prefix list ID
101+
- `destination_data_ipv6_prefix_list_version` (Number) Destination data IPv6 prefix list version
102+
- `destination_ip` (String) Destination IP prefix
103+
- `destination_port` (Number) Destination port, only `22` and `161` supported
104+
- Range: `0`-`65535`
105+
- `source_data_ipv6_prefix_list_id` (String) Source data IPv6 prefix list ID
106+
- `source_data_ipv6_prefix_list_version` (Number) Source data IPv6 prefix list version
107+
- `source_ip` (String) Source IP prefix
108+
- `source_port` (Number) Source port
109+
- Range: `0`-`65535`
110+
111+
## Import
112+
113+
Import is supported using the following syntax:
114+
115+
```shell
116+
terraform import sdwan_ipv6_device_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
117+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
data "sdwan_ipv6_device_acl_policy_definition" "example" {
2+
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import sdwan_ipv6_device_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
resource "sdwan_ipv6_device_acl_policy_definition" "example" {
2+
name = "Example"
3+
description = "My description"
4+
default_action = "drop"
5+
sequences = [
6+
{
7+
id = 10
8+
name = "Sequence 10"
9+
base_action = "accept"
10+
match_entries = [
11+
{
12+
type = "destinationPort"
13+
destination_port = 22
14+
}
15+
]
16+
action_entries = [
17+
{
18+
type = "count"
19+
counter_name = "count1"
20+
}
21+
]
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)