Skip to content

Commit

Permalink
Fix route policy definition next hop entries
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 22, 2023
1 parent e622915 commit 6422122
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 82 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.3 (unreleased)

- Fix next hop action and match entry of `sdwan_route_policy_definition` resource and data source

## 0.3.2

- BREAKING CHANGE: Rename `source_port` attribute to `source_ports` of `sdwan_ipv4_acl_policy_definition` resource and data source
Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/route_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ Read-Only:
- `local_preference` (Number) Local preference
- `metric` (Number) Metric
- `metric_type` (String) Metric type
- `next_hop_prefix_list_id` (String) Next hop prefix list ID
- `next_hop_prefix_list_version` (Number) Next hop prefix list version
- `next_hop` (String) Next hop IP
- `omp_tag` (Number) OMP tag
- `origin` (String) Origin
- `originator` (String) Originator IP
Expand All @@ -86,7 +85,8 @@ Read-Only:
- `extended_community_list_version` (Number) Extended community list version
- `local_preference` (Number) Local preference
- `metric` (Number) Metric
- `next_hop` (String) Next hop IP
- `next_hop_prefix_list_id` (String) Next hop prefix list ID
- `next_hop_prefix_list_version` (Number) Next hop prefix list version
- `omp_tag` (Number) OMP tag
- `origin` (String) Origin
- `ospf_tag` (Number) OSPF tag
Expand Down
4 changes: 4 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.3.3 (unreleased)

- Fix next hop action and match entry of `sdwan_route_policy_definition` resource and data source

## 0.3.2

- BREAKING CHANGE: Rename `source_port` attribute to `source_ports` of `sdwan_ipv4_acl_policy_definition` resource and data source
Expand Down
7 changes: 4 additions & 3 deletions docs/resources/route_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ resource "sdwan_route_policy_definition" "example" {
type = "aggregator"
aggregator = 10
aggregator_ip_address = "10.1.2.3"
next_hop = "10.1.1.5"
}
]
}
Expand Down Expand Up @@ -102,8 +103,7 @@ Optional:
- Range: `0`-`4294967295`
- `metric_type` (String) Metric type
- Choices: `type1`, `type2`
- `next_hop_prefix_list_id` (String) Next hop prefix list ID
- `next_hop_prefix_list_version` (Number) Next hop prefix list version
- `next_hop` (String) Next hop IP
- `omp_tag` (Number) OMP tag
- Range: `0`-`4294967295`
- `origin` (String) Origin
Expand Down Expand Up @@ -139,7 +139,8 @@ Optional:
- Range: `0`-`4294967295`
- `metric` (Number) Metric
- Range: `0`-`4294967295`
- `next_hop` (String) Next hop IP
- `next_hop_prefix_list_id` (String) Next hop prefix list ID
- `next_hop_prefix_list_version` (Number) Next hop prefix list version
- `omp_tag` (Number) OMP tag
- Range: `0`-`4294967295`
- `origin` (String) Origin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ resource "sdwan_route_policy_definition" "example" {
type = "aggregator"
aggregator = 10
aggregator_ip_address = "10.1.2.3"
next_hop = "10.1.1.5"
}
]
}
Expand Down
27 changes: 13 additions & 14 deletions gen/definitions/generic/route_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,19 @@ attributes:
min_int: 0
max_int: 4294967295
example: 100
- model_name: value
tf_name: next_hop
- model_name: ref
tf_name: next_hop_prefix_list_id
conditional_attribute:
name: type
value: nextHop
type: String
description: Next hop IP
example: 10.1.1.5
description: Next hop prefix list ID
example: 2081c2f4-3f9f-4fee-8078-dcc8904e368d
exclude_test: true
- tf_name: next_hop_prefix_list_version
tf_only: true
type: Version
description: Next hop prefix list version
exclude_test: true
- model_name: value
tf_name: origin
Expand Down Expand Up @@ -395,20 +400,14 @@ attributes:
description: Metric type
example: type2
exclude_test: true
- model_name: ref
tf_name: next_hop_prefix_list_id
- model_name: value
tf_name: next_hop
conditional_attribute:
name: type
value: nextHop
type: String
description: Next hop prefix list ID
example: 2081c2f4-3f9f-4fee-8078-dcc8904e368d
exclude_test: true
- tf_name: next_hop_prefix_list_version
tf_only: true
type: Version
description: Next hop prefix list version
exclude_test: true
description: Next hop IP
example: 10.1.1.5
- model_name: value
tf_name: omp_tag
conditional_attribute:
Expand Down
16 changes: 8 additions & 8 deletions internal/provider/data_source_sdwan_route_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.

79 changes: 33 additions & 46 deletions internal/provider/model_sdwan_route_policy_definition.go

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

16 changes: 8 additions & 8 deletions internal/provider/resource_sdwan_route_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.

4 changes: 4 additions & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.3.3 (unreleased)

- Fix next hop action and match entry of `sdwan_route_policy_definition` resource and data source

## 0.3.2

- BREAKING CHANGE: Rename `source_port` attribute to `source_ports` of `sdwan_ipv4_acl_policy_definition` resource and data source
Expand Down

0 comments on commit 6422122

Please sign in to comment.