Skip to content

Commit

Permalink
Add base action attribute to traffic data policy definition
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Nov 22, 2023
1 parent 83cada6 commit 5856d6a
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fix idempotency issue with various resource and boolean values
- Remove redundant `per_tunnel_qos` and `per_tunnel_qos_aggregator` attributes from `sdwan_cisco_vpn_interface_feature_template` resource and data source
- Add `base_action` attribute to `sdwan_custom_control_topology_policy_definition` resource and data source
- Add `base_action` attribute to `sdwan_traffic_data_policy_definition` resource and data source

## 0.2.10

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/traffic_data_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ data "sdwan_traffic_data_policy_definition" "example" {
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
- `ip_type` (String) Sequence IP type, either `ipv4`, `ipv6` or `all`
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries))
Expand Down
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description: |-
- Fix idempotency issue with various resource and boolean values
- Remove redundant `per_tunnel_qos` and `per_tunnel_qos_aggregator` attributes from `sdwan_cisco_vpn_interface_feature_template` resource and data source
- Add `base_action` attribute to `sdwan_custom_control_topology_policy_definition` resource and data source
- Add `base_action` attribute to `sdwan_traffic_data_policy_definition` resource and data source

## 0.2.10

Expand Down
11 changes: 7 additions & 4 deletions docs/resources/traffic_data_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ resource "sdwan_traffic_data_policy_definition" "example" {
default_action = "drop"
sequences = [
{
id = 1
name = "Seq1"
type = "applicationFirewall"
ip_type = "ipv4"
id = 1
name = "Seq1"
type = "applicationFirewall"
ip_type = "ipv4"
base_action = "accept"
match_entries = [
{
type = "appList"
Expand Down Expand Up @@ -72,6 +73,8 @@ Required:
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`
- `ip_type` (String) Sequence IP type, either `ipv4`, `ipv6` or `all`
- Choices: `ipv4`, `ipv6`, `all`
- `match_entries` (Attributes List) List of match entries (see [below for nested schema](#nestedatt--sequences--match_entries))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ resource "sdwan_traffic_data_policy_definition" "example" {
default_action = "drop"
sequences = [
{
id = 1
name = "Seq1"
type = "applicationFirewall"
ip_type = "ipv4"
id = 1
name = "Seq1"
type = "applicationFirewall"
ip_type = "ipv4"
base_action = "accept"
match_entries = [
{
type = "appList"
Expand Down
6 changes: 6 additions & 0 deletions gen/definitions/generic/traffic_data_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ attributes:
enum_values: [ipv4, ipv6, all]
description: Sequence IP type, either `ipv4`, `ipv6` or `all`
example: ipv4
- model_name: baseAction
tf_name: base_action
type: String
enum_values: [accept, drop]
description: Base action, either `accept` or `drop`
example: accept
- model_name: entries
data_path: [match]
tf_name: match_entries
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions internal/provider/model_sdwan_traffic_data_policy_definition.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description: |-
- Fix idempotency issue with various resource and boolean values
- Remove redundant `per_tunnel_qos` and `per_tunnel_qos_aggregator` attributes from `sdwan_cisco_vpn_interface_feature_template` resource and data source
- Add `base_action` attribute to `sdwan_custom_control_topology_policy_definition` resource and data source
- Add `base_action` attribute to `sdwan_traffic_data_policy_definition` resource and data source

## 0.2.10

Expand Down

0 comments on commit 5856d6a

Please sign in to comment.