Skip to content

Commit 9f03003

Browse files
Add advanced route map set actions (#323)
1 parent 5e13f3f commit 9f03003

File tree

12 files changed

+63
-19
lines changed

12 files changed

+63
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
- Add `ip_domain_lookup_nsap`, `ip_domain_lookup_recursive`, and `ip_domain_lookup_vrfs*` attributes to `iosxe_system` resource and data source
55
- Add `iosxe_evpn_ethernet_segment` resource and data source for managing L2VPN EVPN Ethernet Segment configuration
66
- Add `evpn_ethernet_segments` attribute to `iosxe_interface_ethernet` and `iosxe_interface_port_channel` resources and data sources
7+
- Add `set_ip_next_hop_unchanged` attribute to `iosxe_route_map` resource and data source
8+
- Enhance `set_communities` attribute documentation in `iosxe_route_map` to clarify support for well-known BGP community values (internet, local-AS, no-advertise, no-export, gshut)
79

810
## 0.9.3
911

docs/data-sources/route_map.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Read-Only:
8989
- `set_as_path_replace_as` (Attributes List) (see [below for nested schema](#nestedatt--entries--set_as_path_replace_as))
9090
- `set_as_path_tag` (Boolean) Set the tag as an AS-path attribute
9191
- `set_as_path_tag_legacy` (Boolean) Set the tag as an AS-path attribute (OBSOLETE - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
92-
- `set_communities` (List of String)
92+
- `set_communities` (List of String) BGP community value - can be a number (AA:NN format) or well-known value (internet, local-AS, no-advertise, no-export, gshut)
9393
- `set_communities_additive` (Boolean)
9494
- `set_communities_additive_legacy` (Boolean)
9595
- `set_communities_legacy` (List of String)
@@ -119,6 +119,7 @@ Read-Only:
119119
- `set_ip_global_next_hop_address` (List of String)
120120
- `set_ip_next_hop_address` (List of String) IP address of next hop
121121
- `set_ip_next_hop_self` (Boolean) Use self address (for BGP only)
122+
- `set_ip_next_hop_unchanged` (Boolean) Propagate next hop unchanged
122123
- `set_ip_qos_group` (Number)
123124
- `set_ipv6_address` (List of String) IPv6 prefix-list
124125
- `set_ipv6_default_global_next_hop` (String) Next hop along path

docs/guides/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ description: |-
1313
- Add `ip_domain_lookup_nsap`, `ip_domain_lookup_recursive`, and `ip_domain_lookup_vrfs*` attributes to `iosxe_system` resource and data source
1414
- Add `iosxe_evpn_ethernet_segment` resource and data source for managing L2VPN EVPN Ethernet Segment configuration
1515
- Add `evpn_ethernet_segments` attribute to `iosxe_interface_ethernet` and `iosxe_interface_port_channel` resources and data sources
16+
- Add `set_ip_next_hop_unchanged` attribute to `iosxe_route_map` resource and data source
17+
- Enhance `set_communities` attribute documentation in `iosxe_route_map` to clarify support for well-known BGP community values (internet, local-AS, no-advertise, no-export, gshut)
1618

1719
## 0.9.3
1820

docs/resources/route_map.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ resource "iosxe_route_map" "example" {
7070
set_tag = 100
7171
set_as_path_prepend_as = "65001 65001"
7272
set_as_path_prepend_last_as = 5
73+
set_communities = ["no-export"]
7374
set_extcomunity_rt = ["10:10"]
7475
set_extcomunity_soo = "10:10"
7576
set_extcomunity_vpn_distinguisher = "10:10"
@@ -157,7 +158,7 @@ Optional:
157158
- `set_as_path_replace_as` (Attributes List) (see [below for nested schema](#nestedatt--entries--set_as_path_replace_as))
158159
- `set_as_path_tag` (Boolean) Set the tag as an AS-path attribute
159160
- `set_as_path_tag_legacy` (Boolean) Set the tag as an AS-path attribute (OBSOLETE - please use route-map configuration in Cisco-IOS-XE-bgp.yang)
160-
- `set_communities` (List of String)
161+
- `set_communities` (List of String) BGP community value - can be a number (AA:NN format) or well-known value (internet, local-AS, no-advertise, no-export, gshut)
161162
- `set_communities_additive` (Boolean)
162163
- `set_communities_additive_legacy` (Boolean)
163164
- `set_communities_legacy` (List of String)
@@ -187,6 +188,7 @@ Optional:
187188
- `set_ip_global_next_hop_address` (List of String)
188189
- `set_ip_next_hop_address` (List of String) IP address of next hop
189190
- `set_ip_next_hop_self` (Boolean) Use self address (for BGP only)
191+
- `set_ip_next_hop_unchanged` (Boolean) Propagate next hop unchanged
190192
- `set_ip_qos_group` (Number) - Range: `0`-`99`
191193
- `set_ipv6_address` (List of String) IPv6 prefix-list
192194
- `set_ipv6_default_global_next_hop` (String) Next hop along path

examples/resources/iosxe_route_map/resource.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ resource "iosxe_route_map" "example" {
5555
set_tag = 100
5656
set_as_path_prepend_as = "65001 65001"
5757
set_as_path_prepend_last_as = 5
58+
set_communities = ["no-export"]
5859
set_extcomunity_rt = ["10:10"]
5960
set_extcomunity_soo = "10:10"
6061
set_extcomunity_vpn_distinguisher = "10:10"

gen/definitions/route_map.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ attributes:
151151
- yang_name: set/ip/next-hop/self
152152
exclude_test: true
153153
example: true
154+
- yang_name: set/ip/next-hop/unchanged
155+
exclude_test: true
156+
example: true
154157
- yang_name: set/ip/qos-group/qos-id
155158
tf_name: set_ip_qos_group
156159
example: 1
@@ -308,8 +311,8 @@ attributes:
308311
- yang_name: set/Cisco-IOS-XE-bgp:bgp-route-map-set/bgp-community/community-well-known-choice/community-well-known/community-well-known/community-list
309312
xpath: set/Cisco-IOS-XE-bgp:bgp-route-map-set/bgp-community/community-well-known/community-list
310313
tf_name: set_communities
311-
example: "1:2"
312-
test_tags: [IOSXE1712]
314+
example: "no-export"
315+
description: "BGP community value - can be a number (AA:NN format) or well-known value (internet, local-AS, no-advertise, no-export, gshut)"
313316
- yang_name: set/Cisco-IOS-XE-bgp:bgp-route-map-set/bgp-community/community-well-known-choice/community-well-known/community-well-known/additive
314317
xpath: set/Cisco-IOS-XE-bgp:bgp-route-map-set/bgp-community/community-well-known/additive
315318
tf_name: set_communities_additive

internal/provider/data_source_iosxe_route_map.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_iosxe_route_map_test.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/model_iosxe_route_map.go

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_iosxe_route_map.go

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)