Skip to content

Commit

Permalink
Add router id attribute to bgp address family ipv4 vrf
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jan 3, 2024
1 parent f782727 commit d0bbb75
Show file tree
Hide file tree
Showing 12 changed files with 88 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.3 (unreleased)

- Add `ipv4_unicast_router_id_loopback` attribute to `iosxe_bgp_address_family_ipv4_vrf` resource and data source

## 0.5.2

- Add `speed` options to `iosxe_interface_ethernet` resource and data source
Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/bgp_address_family_ipv4_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Read-Only:
- `ipv4_unicast_networks_mask` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_networks_mask))
- `ipv4_unicast_redistribute_connected` (Boolean) Connected
- `ipv4_unicast_redistribute_static` (Boolean) Static routes
- `ipv4_unicast_router_id_loopback` (Number) Loopback interface
- `name` (String)

<a id="nestedatt--vrfs--ipv4_unicast_aggregate_addresses"></a>
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.5.3 (unreleased)

- Add `ipv4_unicast_router_id_loopback` attribute to `iosxe_bgp_address_family_ipv4_vrf` resource and data source

## 0.5.2

- Add `speed` options to `iosxe_interface_ethernet` resource and data source
Expand Down
3 changes: 3 additions & 0 deletions docs/resources/bgp_address_family_ipv4_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "example" {
name = "VRF1"
ipv4_unicast_advertise_l2vpn_evpn = true
ipv4_unicast_redistribute_connected = true
ipv4_unicast_router_id_loopback = 101
ipv4_unicast_aggregate_addresses = [
{
ipv4_address = "50.0.0.0"
Expand Down Expand Up @@ -82,6 +83,8 @@ Optional:
- `ipv4_unicast_networks_mask` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_networks_mask))
- `ipv4_unicast_redistribute_connected` (Boolean) Connected
- `ipv4_unicast_redistribute_static` (Boolean) Static routes
- `ipv4_unicast_router_id_loopback` (Number) Loopback interface
- Range: `0`-`2147483647`

<a id="nestedatt--vrfs--ipv4_unicast_aggregate_addresses"></a>
### Nested Schema for `vrfs.ipv4_unicast_aggregate_addresses`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "example" {
name = "VRF1"
ipv4_unicast_advertise_l2vpn_evpn = true
ipv4_unicast_redistribute_connected = true
ipv4_unicast_router_id_loopback = 101
ipv4_unicast_aggregate_addresses = [
{
ipv4_address = "50.0.0.0"
Expand Down
15 changes: 15 additions & 0 deletions gen/definitions/bgp_address_family_ipv4_vrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ attributes:
- yang_name: ipv4-unicast/redistribute-vrf/connected
tf_name: ipv4_unicast_redistribute_connected
example: true
- yang_name: ipv4-unicast/bgp/router-id/id-choice/interface/interface/interface-choice/Loopback/Loopback
xpath: ipv4-unicast/bgp/router-id/interface/Loopback
tf_name: ipv4_unicast_router_id_loopback
example: 101
- yang_name: ipv4-unicast/aggregate-address
tf_name: ipv4_unicast_aggregate_addresses
type: List
Expand Down Expand Up @@ -91,3 +95,14 @@ test_prerequisites:
- name: id
value: 65000
dependencies: [0]
- path: Cisco-IOS-XE-native:native/interface/Loopback=101
attributes:
- name: name
value: 101
- name: ip/address/primary/address
value: 22.22.22.22
- name: ip/address/primary/mask
value: 255.255.255.255
- name: vrf/forwarding
value: VRF1
dependencies: [0]

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.

15 changes: 15 additions & 0 deletions internal/provider/model_iosxe_bgp_address_family_ipv4_vrf.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.

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.5.3 (unreleased)

- Add `ipv4_unicast_router_id_loopback` attribute to `iosxe_bgp_address_family_ipv4_vrf` resource and data source

## 0.5.2

- Add `speed` options to `iosxe_interface_ethernet` resource and data source
Expand Down

0 comments on commit d0bbb75

Please sign in to comment.