Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.7.2

- Add `community` support to the `sdwan_route_policy_definition` resource and data source

## 0.7.1

- Fix issue, where concurrent update of `localized_policy` resources fails with `Failed to update variables` error
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/route_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ Read-Only:

- `as_path_list_id` (String) AS path list ID
- `as_path_list_version` (Number) AS path list version
- `community_list_id` (String) Community list ID
- `community_list_ids` (Set of String) Community list IDs
- `community_list_match_flag` (String) Community list match flag
- `community_list_version` (Number) Community list version
- `community_list_versions` (List of String) Community list versions
- `expanded_community_list_id` (String) Expanded community list ID
- `expanded_community_list_variable` (String) Expanded community list variable
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.7.2

- Add `community` support to the `sdwan_route_policy_definition` resource and data source

## 0.7.1

- Fix issue, where concurrent update of `localized_policy` resources fails with `Failed to update variables` error
Expand Down
6 changes: 4 additions & 2 deletions docs/resources/route_policy_definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,17 @@ Optional:
Required:

- `type` (String) Type of match entry
- Choices: `address`, `asPath`, `advancedCommunity`, `expandedCommunity`, `expandedCommunityInline`, `extCommunity`, `localPreference`, `metric`, `nextHop`, `origin`, `peer`, `ompTag`, `ospfTag`
- Choices: `address`, `asPath`, `community`, `advancedCommunity`, `expandedCommunity`, `expandedCommunityInline`, `extCommunity`, `localPreference`, `metric`, `nextHop`, `origin`, `peer`, `ompTag`, `ospfTag`

Optional:

- `as_path_list_id` (String) AS path list ID, Attribute conditional on `type` being equal to `asPath`
- `as_path_list_version` (Number) AS path list version
- `community_list_id` (String) Community list ID, Attribute conditional on `type` being equal to `community`
- `community_list_ids` (Set of String) Community list IDs, Attribute conditional on `type` being equal to `advancedCommunity`
- `community_list_match_flag` (String) Community list match flag, Attribute conditional on `type` being equal to `advancedCommunity`
- `community_list_match_flag` (String) Community list match flag
- Choices: `and`, `or`, `exact`
- `community_list_version` (Number) Community list version
- `community_list_versions` (List of String) Community list versions
- `expanded_community_list_id` (String) Expanded community list ID, Attribute conditional on `type` being equal to `expandedCommunity`
- `expanded_community_list_variable` (String) Expanded community list variable, Attribute conditional on `type` being equal to `expandedCommunityInline`
Expand Down
34 changes: 24 additions & 10 deletions gen/definitions/generic/route_policy_definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ attributes:
[
address,
asPath,
community,
advancedCommunity,
expandedCommunity,
expandedCommunityInline,
Expand Down Expand Up @@ -121,6 +122,29 @@ attributes:
type: Version
description: AS path list version
exclude_test: true

- model_name: ref
tf_name: community_list_id
conditional_attribute:
name: type
value: community
type: String
description: Community list ID
example: 2081c2f4-3f9f-4fee-8078-dcc8904e368d
exclude_test: true
- tf_name: community_list_version
tf_only: true
type: Version
description: Community list version
exclude_test: true
- model_name: matchFlag
tf_name: community_list_match_flag
conditional_attribute:
type: String
enum_values: [and, or, exact]
description: Community list match flag
example: and
exclude_test: true
- model_name: refs
tf_name: community_list_ids
conditional_attribute:
Expand All @@ -136,16 +160,6 @@ attributes:
type: Versions
description: Community list versions
exclude_test: true
- model_name: matchFlag
tf_name: community_list_match_flag
conditional_attribute:
name: type
value: advancedCommunity
type: String
enum_values: [and, or, exact]
description: Community list match flag
example: and
exclude_test: true
- model_name: ref
tf_name: expanded_community_list_id
conditional_attribute:
Expand Down
Loading
Loading