-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ipv6 acl policy definition resource
- Loading branch information
Showing
15 changed files
with
2,013 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_ipv6_acl_policy_definition Data Source - terraform-provider-sdwan" | ||
subcategory: "Localized Policies" | ||
description: |- | ||
This data source can read the IPv6 ACL Policy Definition . | ||
--- | ||
|
||
# sdwan_ipv6_acl_policy_definition (Data Source) | ||
|
||
This data source can read the IPv6 ACL Policy Definition . | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sdwan_ipv6_acl_policy_definition" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The id of the object | ||
|
||
### Read-Only | ||
|
||
- `default_action` (String) Default action, either `accept` or `drop` | ||
- `description` (String) The description of the policy definition | ||
- `name` (String) The name of the policy definition | ||
- `sequences` (Attributes List) List of ACL sequences (see [below for nested schema](#nestedatt--sequences)) | ||
- `version` (Number) The version of the object | ||
|
||
<a id="nestedatt--sequences"></a> | ||
### Nested Schema for `sequences` | ||
|
||
Read-Only: | ||
|
||
- `action_entries` (Attributes List) List of action entries (see [below for nested schema](#nestedatt--sequences--action_entries)) | ||
- `base_action` (String) Base action, either `accept` or `drop` | ||
- `id` (Number) Sequence ID | ||
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries)) | ||
- `name` (String) Sequence name | ||
|
||
<a id="nestedatt--sequences--action_entries"></a> | ||
### Nested Schema for `sequences.action_entries` | ||
|
||
Read-Only: | ||
|
||
- `class_map_id` (String) Class map ID | ||
- `class_map_version` (Number) Class map version | ||
- `counter_name` (String) Counter name | ||
- `log` (Boolean) Enable logging | ||
- `mirror_id` (String) Mirror ID | ||
- `mirror_version` (Number) Mirror version | ||
- `policer_id` (String) Policer ID | ||
- `policer_version` (Number) Policer version | ||
- `set_parameters` (Attributes List) List of set parameters (see [below for nested schema](#nestedatt--sequences--action_entries--set_parameters)) | ||
- `type` (String) Type of action entry | ||
|
||
<a id="nestedatt--sequences--action_entries--set_parameters"></a> | ||
### Nested Schema for `sequences.action_entries.set_parameters` | ||
|
||
Read-Only: | ||
|
||
- `next_hop` (String) Next hop IP | ||
- `traffic_class` (Number) Traffic class | ||
- `type` (String) Type of set parameter | ||
|
||
|
||
|
||
<a id="nestedatt--sequences--match_entries"></a> | ||
### Nested Schema for `sequences.match_entries` | ||
|
||
Read-Only: | ||
|
||
- `class_map_id` (String) Class map ID | ||
- `class_map_version` (Number) Class map version | ||
- `destination_data_ipv6_prefix_list_id` (String) Destination dataIPv6 prefix list ID | ||
- `destination_data_ipv6_prefix_list_version` (Number) Destination data prefix list version | ||
- `destination_ip` (String) Destination IPv6 prefix | ||
- `destination_port` (Number) Destination port | ||
- `next_header` (Number) Next header | ||
- `packet_length` (Number) Packet length | ||
- `priority` (String) PLP - priority | ||
- `source_data_ipv6_prefix_list_id` (String) Source data IPv6 prefix list ID | ||
- `source_data_ipv6_prefix_list_version` (Number) Source data IPv6 prefix list version | ||
- `source_ip` (String) Source IPv6 prefix | ||
- `source_port` (Number) Source port | ||
- `tcp` (String) TCP parameters | ||
- `type` (String) Type of match entry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sdwan_ipv6_acl_policy_definition Resource - terraform-provider-sdwan" | ||
subcategory: "Localized Policies" | ||
description: |- | ||
This resource can manage a IPv6 ACL Policy Definition . | ||
--- | ||
|
||
# sdwan_ipv6_acl_policy_definition (Resource) | ||
|
||
This resource can manage a IPv6 ACL Policy Definition . | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "sdwan_ipv6_acl_policy_definition" "example" { | ||
name = "Example" | ||
description = "My description" | ||
default_action = "drop" | ||
sequences = [ | ||
{ | ||
id = 10 | ||
name = "Sequence 10" | ||
base_action = "accept" | ||
match_entries = [ | ||
{ | ||
type = "nextHeader" | ||
next_header = 1 | ||
} | ||
] | ||
action_entries = [ | ||
{ | ||
type = "set" | ||
set_parameters = [ | ||
{ | ||
type = "trafficClass" | ||
traffic_class = 16 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `description` (String) The description of the policy definition | ||
- `name` (String) The name of the policy definition | ||
- `sequences` (Attributes List) List of ACL sequences (see [below for nested schema](#nestedatt--sequences)) | ||
|
||
### Optional | ||
|
||
- `default_action` (String) Default action, either `accept` or `drop` | ||
- Choices: `accept`, `drop` | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the object | ||
- `version` (Number) The version of the object | ||
|
||
<a id="nestedatt--sequences"></a> | ||
### Nested Schema for `sequences` | ||
|
||
Required: | ||
|
||
- `id` (Number) Sequence ID | ||
- Range: `1`-`65534` | ||
- `name` (String) Sequence name | ||
|
||
Optional: | ||
|
||
- `action_entries` (Attributes List) List of action entries (see [below for nested schema](#nestedatt--sequences--action_entries)) | ||
- `base_action` (String) Base action, either `accept` or `drop` | ||
- Choices: `accept`, `drop` | ||
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries)) | ||
|
||
<a id="nestedatt--sequences--action_entries"></a> | ||
### Nested Schema for `sequences.action_entries` | ||
|
||
Required: | ||
|
||
- `type` (String) Type of action entry | ||
- Choices: `class`, `count`, `set`, `log`, `mirror`, `policer` | ||
|
||
Optional: | ||
|
||
- `class_map_id` (String) Class map ID | ||
- `class_map_version` (Number) Class map version | ||
- `counter_name` (String) Counter name | ||
- `log` (Boolean) Enable logging | ||
- `mirror_id` (String) Mirror ID | ||
- `mirror_version` (Number) Mirror version | ||
- `policer_id` (String) Policer ID | ||
- `policer_version` (Number) Policer version | ||
- `set_parameters` (Attributes List) List of set parameters (see [below for nested schema](#nestedatt--sequences--action_entries--set_parameters)) | ||
|
||
<a id="nestedatt--sequences--action_entries--set_parameters"></a> | ||
### Nested Schema for `sequences.action_entries.set_parameters` | ||
|
||
Required: | ||
|
||
- `type` (String) Type of set parameter | ||
- Choices: `trafficClass`, `nextHop` | ||
|
||
Optional: | ||
|
||
- `next_hop` (String) Next hop IP | ||
- `traffic_class` (Number) Traffic class | ||
- Range: `0`-`63` | ||
|
||
|
||
|
||
<a id="nestedatt--sequences--match_entries"></a> | ||
### Nested Schema for `sequences.match_entries` | ||
|
||
Required: | ||
|
||
- `type` (String) Type of match entry | ||
- Choices: `nextHeader`, `sourceIpv6`, `destinationIpv6`, `class`, `packetLength`, `plp`, `sourcePort`, `destinationPort`, `sourceDataIpv6PrefixList`, `destinationDataIpv6PrefixList`, `tcp` | ||
|
||
Optional: | ||
|
||
- `class_map_id` (String) Class map ID | ||
- `class_map_version` (Number) Class map version | ||
- `destination_data_ipv6_prefix_list_id` (String) Destination dataIPv6 prefix list ID | ||
- `destination_data_ipv6_prefix_list_version` (Number) Destination data prefix list version | ||
- `destination_ip` (String) Destination IPv6 prefix | ||
- `destination_port` (Number) Destination port | ||
- Range: `0`-`65535` | ||
- `next_header` (Number) Next header | ||
- Range: `0`-`255` | ||
- `packet_length` (Number) Packet length | ||
- Range: `0`-`65535` | ||
- `priority` (String) PLP - priority | ||
- Choices: `high`, `low` | ||
- `source_data_ipv6_prefix_list_id` (String) Source data IPv6 prefix list ID | ||
- `source_data_ipv6_prefix_list_version` (Number) Source data IPv6 prefix list version | ||
- `source_ip` (String) Source IPv6 prefix | ||
- `source_port` (Number) Source port | ||
- Range: `0`-`65535` | ||
- `tcp` (String) TCP parameters | ||
- Choices: `syn` | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import sdwan_ipv6_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
``` |
3 changes: 3 additions & 0 deletions
3
examples/data-sources/sdwan_ipv6_acl_policy_definition/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "sdwan_ipv6_acl_policy_definition" "example" { | ||
id = "f6b2c44c-693c-4763-b010-895aa3d236bd" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import sdwan_ipv6_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd" |
29 changes: 29 additions & 0 deletions
29
examples/resources/sdwan_ipv6_acl_policy_definition/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
resource "sdwan_ipv6_acl_policy_definition" "example" { | ||
name = "Example" | ||
description = "My description" | ||
default_action = "drop" | ||
sequences = [ | ||
{ | ||
id = 10 | ||
name = "Sequence 10" | ||
base_action = "accept" | ||
match_entries = [ | ||
{ | ||
type = "nextHeader" | ||
next_header = 1 | ||
} | ||
] | ||
action_entries = [ | ||
{ | ||
type = "set" | ||
set_parameters = [ | ||
{ | ||
type = "trafficClass" | ||
traffic_class = 16 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.