Skip to content

Commit

Permalink
Add ipv6 device acl policy definition resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 19, 2023
1 parent 843a1d8 commit 2e705eb
Show file tree
Hide file tree
Showing 15 changed files with 1,407 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- BREAKING CHANGE: Rename `sdwan_acl_policy_definition` resource and data source to `sdwan_ipv4_acl_policy_definition`
- BREAKING CHANGE: Rename `sdwan_device_acl_policy_definition` resource and data source to `sdwan_ipv4_device_acl_policy_definition`
- Add `sdwan_ipv6_acl_policy_definition` resource and data source
- Add `sdwan_ipv6_device_acl_policy_definition` resource and data source

## 0.2.11

Expand Down
69 changes: 69 additions & 0 deletions docs/data-sources/ipv6_device_acl_policy_definition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_ipv6_device_acl_policy_definition Data Source - terraform-provider-sdwan"
subcategory: "Localized Policies"
description: |-
This data source can read the IPv6 Device ACL Policy Definition .
---

# sdwan_ipv6_device_acl_policy_definition (Data Source)

This data source can read the IPv6 Device ACL Policy Definition .

## Example Usage

```terraform
data "sdwan_ipv6_device_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:

- `counter_name` (String) Counter name
- `type` (String) Type of action entry


<a id="nestedatt--sequences--match_entries"></a>
### Nested Schema for `sequences.match_entries`

Read-Only:

- `destination_data_ipv6_prefix_list_id` (String) Destination data IPv6 prefix list ID
- `destination_data_ipv6_prefix_list_version` (Number) Destination data IPv6 prefix list version
- `destination_ip` (String) Destination IP prefix
- `destination_port` (Number) Destination port, only `22` and `161` supported
- `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 IP prefix
- `source_port` (Number) Source port
- `type` (String) Type of match entry
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ description: |-
- BREAKING CHANGE: Rename `sdwan_acl_policy_definition` resource and data source to `sdwan_ipv4_acl_policy_definition`
- BREAKING CHANGE: Rename `sdwan_device_acl_policy_definition` resource and data source to `sdwan_ipv4_device_acl_policy_definition`
- Add `sdwan_ipv6_acl_policy_definition` resource and data source
- Add `sdwan_ipv6_device_acl_policy_definition` resource and data source

## 0.2.11

Expand Down
117 changes: 117 additions & 0 deletions docs/resources/ipv6_device_acl_policy_definition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "sdwan_ipv6_device_acl_policy_definition Resource - terraform-provider-sdwan"
subcategory: "Localized Policies"
description: |-
This resource can manage a IPv6 Device ACL Policy Definition .
---

# sdwan_ipv6_device_acl_policy_definition (Resource)

This resource can manage a IPv6 Device ACL Policy Definition .

## Example Usage

```terraform
resource "sdwan_ipv6_device_acl_policy_definition" "example" {
name = "Example"
description = "My description"
default_action = "drop"
sequences = [
{
id = 10
name = "Sequence 10"
base_action = "accept"
match_entries = [
{
type = "destinationPort"
destination_port = 22
}
]
action_entries = [
{
type = "count"
counter_name = "count1"
}
]
}
]
}
```

<!-- 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: `count`

Optional:

- `counter_name` (String) Counter name


<a id="nestedatt--sequences--match_entries"></a>
### Nested Schema for `sequences.match_entries`

Required:

- `type` (String) Type of match entry
- Choices: `sourceIpv6`, `destinationIpv6`, `sourcePort`, `destinationPort`, `sourceDataIpv6PrefixList`, `destinationDataIpv6PrefixList`

Optional:

- `destination_data_ipv6_prefix_list_id` (String) Destination data IPv6 prefix list ID
- `destination_data_ipv6_prefix_list_version` (Number) Destination data IPv6 prefix list version
- `destination_ip` (String) Destination IP prefix
- `destination_port` (Number) Destination port, only `22` and `161` supported
- Range: `0`-`65535`
- `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 IP prefix
- `source_port` (Number) Source port
- Range: `0`-`65535`

## Import

Import is supported using the following syntax:

```shell
terraform import sdwan_ipv6_device_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
data "sdwan_ipv6_device_acl_policy_definition" "example" {
id = "f6b2c44c-693c-4763-b010-895aa3d236bd"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import sdwan_ipv6_device_acl_policy_definition.example "f6b2c44c-693c-4763-b010-895aa3d236bd"
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
resource "sdwan_ipv6_device_acl_policy_definition" "example" {
name = "Example"
description = "My description"
default_action = "drop"
sequences = [
{
id = 10
name = "Sequence 10"
base_action = "accept"
match_entries = [
{
type = "destinationPort"
destination_port = 22
}
]
action_entries = [
{
type = "count"
counter_name = "count1"
}
]
}
]
}
Loading

0 comments on commit 2e705eb

Please sign in to comment.