Skip to content

Commit

Permalink
Add as path replace attributes to route map resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jan 5, 2024
1 parent 3898c78 commit f290910
Show file tree
Hide file tree
Showing 9 changed files with 267 additions and 98 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.5.4 (unreleased)

- Add `next_hop_self` and `next_hop_self_all` attributes to `iosxe_bgp_ipv4_unicast_vrf_neighbor` resource and data source
- Add `set_as_path_replace_any` and `set_as_path_replace_as` attributes to `iosxe_route_map` resource and data source

## 0.5.3

Expand Down
9 changes: 9 additions & 0 deletions docs/data-sources/route_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ Read-Only:
- `set_as_path_prepend_as_legacy` (String) <1-65535>;;AS number (DEPRECATED - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
- `set_as_path_prepend_last_as` (Number)
- `set_as_path_prepend_last_as_legacy` (Number)
- `set_as_path_replace_any` (Boolean) Replace each AS number in the AS-path with the local AS
- `set_as_path_replace_as` (Attributes List) (see [below for nested schema](#nestedatt--entries--set_as_path_replace_as))
- `set_as_path_tag` (Boolean) Set the tag as an AS-path attribute
- `set_as_path_tag_legacy` (Boolean) Set the tag as an AS-path attribute (DEPRECATED - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
- `set_communities` (List of String)
Expand Down Expand Up @@ -137,3 +139,10 @@ Read-Only:
- `set_vrf` (String) VPN Routing/Forwarding instance name
- `set_weight` (Number) BGP weight for routing table
- `set_weight_legacy` (Number) BGP weight for routing table (DEPRECATED - please use route-map configuration in Cisco-IOS-XE-bgp.yang)

<a id="nestedatt--entries--set_as_path_replace_as"></a>
### Nested Schema for `entries.set_as_path_replace_as`

Read-Only:

- `as_number` (String) <1-65535>;;AS number
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description: |-
## 0.5.4 (unreleased)

- Add `next_hop_self` and `next_hop_self_all` attributes to `iosxe_bgp_ipv4_unicast_vrf_neighbor` resource and data source
- Add `set_as_path_replace_any` and `set_as_path_replace_as` attributes to `iosxe_route_map` resource and data source

## 0.5.3

Expand Down
9 changes: 9 additions & 0 deletions docs/resources/route_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ Optional:
- `set_as_path_prepend_as_legacy` (String) <1-65535>;;AS number (DEPRECATED - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
- `set_as_path_prepend_last_as` (Number) - Range: `1`-`10`
- `set_as_path_prepend_last_as_legacy` (Number) - Range: `1`-`10`
- `set_as_path_replace_any` (Boolean) Replace each AS number in the AS-path with the local AS
- `set_as_path_replace_as` (Attributes List) (see [below for nested schema](#nestedatt--entries--set_as_path_replace_as))
- `set_as_path_tag` (Boolean) Set the tag as an AS-path attribute
- `set_as_path_tag_legacy` (Boolean) Set the tag as an AS-path attribute (DEPRECATED - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
- `set_communities` (List of String)
Expand Down Expand Up @@ -219,6 +221,13 @@ Optional:
- `set_weight_legacy` (Number) BGP weight for routing table (DEPRECATED - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
- Range: `0`-`65535`

<a id="nestedatt--entries--set_as_path_replace_as"></a>
### Nested Schema for `entries.set_as_path_replace_as`

Required:

- `as_number` (String) <1-65535>;;AS number

## Import

Import is supported using the following syntax:
Expand Down
12 changes: 12 additions & 0 deletions gen/definitions/route_map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,18 @@ attributes:
tf_name: set_as_path_tag
exclude_test: true
example: true
- yang_name: set/Cisco-IOS-XE-bgp:bgp-route-map-set/as-path/replace/any
tf_name: set_as_path_replace_any
exclude_test: true
example: true
- yang_name: set/Cisco-IOS-XE-bgp:bgp-route-map-set/as-path/replace/as-container
tf_name: set_as_path_replace_as
type: List
exclude_test: true
attributes:
- yang_name: as-number
id: true
example: 65001
- yang_name: set/Cisco-IOS-XE-bgp:bgp-route-map-set/bgp-community/community-well-known-choice/none/none
xpath: set/Cisco-IOS-XE-bgp:bgp-route-map-set/bgp-community/none
tf_name: set_community_none
Expand Down
16 changes: 16 additions & 0 deletions internal/provider/data_source_iosxe_route_map.go

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

Loading

0 comments on commit f290910

Please sign in to comment.