Skip to content

Commit

Permalink
Update bgp address family resources
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Sep 15, 2023
1 parent 0c4140b commit b68cfe3
Show file tree
Hide file tree
Showing 39 changed files with 395 additions and 181 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
- Add `spanning_tree_link_type` and `ip_dhcp_snooping_trust` attributes to `iosxe_interface_port_channel` resource and data source
- Add `compress_config`, `sequence_numbers` and `call_home` attributes to `iosxe_service` resource and data source
- Add `hosts`, `system_shutdown` and `enable_traps_*` attributes to `iosxe_snmp_server` resource and data source
- BREAKING CHANGE: Rename `advertise_l2vpn_evpn` attribute to `ipv4_unicast_advertise_l2vpn_evpn` of `iosxe_bgp_address_family_ipv4_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_connected` attribute to `ipv4_unicast_redistribute_connected` of `iosxe_bgp_address_family_ipv4_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_static` attribute to `ipv4_unicast_redistribute_static` of `iosxe_bgp_address_family_ipv4_vrf` resource and data source
- Add `ipv4_unicast_redistribute_connected` attribute to `iosxe_bgp_address_family_ipv4` resource and data source
- Add `ipv4_unicast_redistribute_static` attribute to `iosxe_bgp_address_family_ipv4` resource and data source
- BREAKING CHANGE: Rename `advertise_l2vpn_evpn` attribute to `ipv6_unicast_advertise_l2vpn_evpn` of `iosxe_bgp_address_family_ipv6_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_connected` attribute to `ipv6_unicast_redistribute_connected` of `iosxe_bgp_address_family_ipv6_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_static` attribute to `ipv6_unicast_redistribute_static` of `iosxe_bgp_address_family_ipv6_vrf` resource and data source
- Add `ipv6_unicast_redistribute_connected` attribute to `iosxe_bgp_address_family_ipv6` resource and data source
- Add `ipv6_unicast_redistribute_static` attribute to `iosxe_bgp_address_family_ipv6` resource and data source

## 0.4.0

Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/bgp_address_family_ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ data "iosxe_bgp_address_family_ipv4" "example" {
- `id` (String) The path of the retrieved object.
- `ipv4_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--ipv4_unicast_networks))
- `ipv4_unicast_networks_mask` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--ipv4_unicast_networks_mask))
- `ipv4_unicast_redistribute_connected` (Boolean) Connected
- `ipv4_unicast_redistribute_static` (Boolean) Static routes

<a id="nestedatt--ipv4_unicast_networks"></a>
### Nested Schema for `ipv4_unicast_networks`
Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/bgp_address_family_ipv4_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ data "iosxe_bgp_address_family_ipv4_vrf" "example" {

Read-Only:

- `advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv4_unicast_advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv4_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_networks))
- `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
- `name` (String)
- `redistribute_connected` (Boolean) Connected
- `redistribute_static` (Boolean) Static routes

<a id="nestedatt--vrfs--ipv4_unicast_networks"></a>
### Nested Schema for `vrfs.ipv4_unicast_networks`
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/bgp_address_family_ipv6.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ data "iosxe_bgp_address_family_ipv6" "example" {

- `id` (String) The path of the retrieved object.
- `ipv6_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--ipv6_unicast_networks))
- `ipv6_unicast_redistribute_connected` (Boolean) Connected
- `ipv6_unicast_redistribute_static` (Boolean) Static routes

<a id="nestedatt--ipv6_unicast_networks"></a>
### Nested Schema for `ipv6_unicast_networks`
Expand Down
6 changes: 3 additions & 3 deletions docs/data-sources/bgp_address_family_ipv6_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ data "iosxe_bgp_address_family_ipv6_vrf" "example" {

Read-Only:

- `advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv6_unicast_advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv6_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv6_unicast_networks))
- `ipv6_unicast_redistribute_connected` (Boolean) Connected
- `ipv6_unicast_redistribute_static` (Boolean) Static routes
- `name` (String)
- `redistribute_connected` (Boolean) Connected
- `redistribute_static` (Boolean) Static routes

<a id="nestedatt--vrfs--ipv6_unicast_networks"></a>
### Nested Schema for `vrfs.ipv6_unicast_networks`
Expand Down
10 changes: 10 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ description: |-
- Add `spanning_tree_link_type` and `ip_dhcp_snooping_trust` attributes to `iosxe_interface_port_channel` resource and data source
- Add `compress_config`, `sequence_numbers` and `call_home` attributes to `iosxe_service` resource and data source
- Add `hosts`, `system_shutdown` and `enable_traps_*` attributes to `iosxe_snmp_server` resource and data source
- BREAKING CHANGE: Rename `advertise_l2vpn_evpn` attribute to `ipv4_unicast_advertise_l2vpn_evpn` of `iosxe_bgp_address_family_ipv4_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_connected` attribute to `ipv4_unicast_redistribute_connected` of `iosxe_bgp_address_family_ipv4_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_static` attribute to `ipv4_unicast_redistribute_static` of `iosxe_bgp_address_family_ipv4_vrf` resource and data source
- Add `ipv4_unicast_redistribute_connected` attribute to `iosxe_bgp_address_family_ipv4` resource and data source
- Add `ipv4_unicast_redistribute_static` attribute to `iosxe_bgp_address_family_ipv4` resource and data source
- BREAKING CHANGE: Rename `advertise_l2vpn_evpn` attribute to `ipv6_unicast_advertise_l2vpn_evpn` of `iosxe_bgp_address_family_ipv6_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_connected` attribute to `ipv6_unicast_redistribute_connected` of `iosxe_bgp_address_family_ipv6_vrf` resource and data source
- BREAKING CHANGE: Rename `redistribute_static` attribute to `ipv6_unicast_redistribute_static` of `iosxe_bgp_address_family_ipv6_vrf` resource and data source
- Add `ipv6_unicast_redistribute_connected` attribute to `iosxe_bgp_address_family_ipv6` resource and data source
- Add `ipv6_unicast_redistribute_static` attribute to `iosxe_bgp_address_family_ipv6` resource and data source

## 0.4.0

Expand Down
8 changes: 6 additions & 2 deletions docs/resources/bgp_address_family_ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ This resource can manage the BGP Address Family IPv4 configuration.

```terraform
resource "iosxe_bgp_address_family_ipv4" "example" {
asn = "65000"
af_name = "unicast"
asn = "65000"
af_name = "unicast"
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down Expand Up @@ -49,6 +51,8 @@ resource "iosxe_bgp_address_family_ipv4" "example" {
- `device` (String) A device name from the provider configuration.
- `ipv4_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--ipv4_unicast_networks))
- `ipv4_unicast_networks_mask` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--ipv4_unicast_networks_mask))
- `ipv4_unicast_redistribute_connected` (Boolean) Connected
- `ipv4_unicast_redistribute_static` (Boolean) Static routes

### Read-Only

Expand Down
14 changes: 7 additions & 7 deletions docs/resources/bgp_address_family_ipv4_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "example" {
af_name = "unicast"
vrfs = [
{
name = "VRF1"
advertise_l2vpn_evpn = true
redistribute_connected = true
redistribute_static = true
name = "VRF1"
ipv4_unicast_advertise_l2vpn_evpn = true
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down Expand Up @@ -70,11 +70,11 @@ Required:

Optional:

- `advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv4_unicast_advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv4_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_networks))
- `ipv4_unicast_networks_mask` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_networks_mask))
- `redistribute_connected` (Boolean) Connected
- `redistribute_static` (Boolean) Static routes
- `ipv4_unicast_redistribute_connected` (Boolean) Connected
- `ipv4_unicast_redistribute_static` (Boolean) Static routes

<a id="nestedatt--vrfs--ipv4_unicast_networks"></a>
### Nested Schema for `vrfs.ipv4_unicast_networks`
Expand Down
10 changes: 7 additions & 3 deletions docs/resources/bgp_address_family_ipv6.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ This resource can manage the BGP Address Family IPv6 configuration.

```terraform
resource "iosxe_bgp_address_family_ipv6" "example" {
asn = "65000"
af_name = "unicast"
asn = "65000"
af_name = "unicast"
ipv6_unicast_redistribute_connected = true
ipv6_unicast_redistribute_static = true
ipv6_unicast_networks = [
{
network = "2001:1234::0/64"
network = "2001:1234::/64"
route_map = "RM1"
backdoor = true
}
Expand All @@ -40,6 +42,8 @@ resource "iosxe_bgp_address_family_ipv6" "example" {
- Choices: `all`, `attributes`
- `device` (String) A device name from the provider configuration.
- `ipv6_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--ipv6_unicast_networks))
- `ipv6_unicast_redistribute_connected` (Boolean) Connected
- `ipv6_unicast_redistribute_static` (Boolean) Static routes

### Read-Only

Expand Down
16 changes: 8 additions & 8 deletions docs/resources/bgp_address_family_ipv6_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ resource "iosxe_bgp_address_family_ipv6_vrf" "example" {
af_name = "unicast"
vrfs = [
{
name = "VRF1"
advertise_l2vpn_evpn = true
redistribute_connected = true
redistribute_static = true
name = "VRF1"
ipv6_unicast_advertise_l2vpn_evpn = true
ipv6_unicast_redistribute_connected = true
ipv6_unicast_redistribute_static = true
ipv6_unicast_networks = [
{
network = "2001:1234::0/64"
network = "2001:1234::/64"
route_map = "RM1"
backdoor = true
evpn = false
Expand Down Expand Up @@ -63,10 +63,10 @@ Required:

Optional:

- `advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv6_unicast_advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv6_unicast_networks` (Attributes List) Specify a network to announce via BGP (see [below for nested schema](#nestedatt--vrfs--ipv6_unicast_networks))
- `redistribute_connected` (Boolean) Connected
- `redistribute_static` (Boolean) Static routes
- `ipv6_unicast_redistribute_connected` (Boolean) Connected
- `ipv6_unicast_redistribute_static` (Boolean) Static routes

<a id="nestedatt--vrfs--ipv6_unicast_networks"></a>
### Nested Schema for `vrfs.ipv6_unicast_networks`
Expand Down
6 changes: 4 additions & 2 deletions examples/resources/iosxe_bgp_address_family_ipv4/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
resource "iosxe_bgp_address_family_ipv4" "example" {
asn = "65000"
af_name = "unicast"
asn = "65000"
af_name = "unicast"
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "example" {
af_name = "unicast"
vrfs = [
{
name = "VRF1"
advertise_l2vpn_evpn = true
redistribute_connected = true
redistribute_static = true
name = "VRF1"
ipv4_unicast_advertise_l2vpn_evpn = true
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down
8 changes: 5 additions & 3 deletions examples/resources/iosxe_bgp_address_family_ipv6/resource.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
resource "iosxe_bgp_address_family_ipv6" "example" {
asn = "65000"
af_name = "unicast"
asn = "65000"
af_name = "unicast"
ipv6_unicast_redistribute_connected = true
ipv6_unicast_redistribute_static = true
ipv6_unicast_networks = [
{
network = "2001:1234::0/64"
network = "2001:1234::/64"
route_map = "RM1"
backdoor = true
}
Expand Down
10 changes: 5 additions & 5 deletions examples/resources/iosxe_bgp_address_family_ipv6_vrf/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ resource "iosxe_bgp_address_family_ipv6_vrf" "example" {
af_name = "unicast"
vrfs = [
{
name = "VRF1"
advertise_l2vpn_evpn = true
redistribute_connected = true
redistribute_static = true
name = "VRF1"
ipv6_unicast_advertise_l2vpn_evpn = true
ipv6_unicast_redistribute_connected = true
ipv6_unicast_redistribute_static = true
ipv6_unicast_networks = [
{
network = "2001:1234::0/64"
network = "2001:1234::/64"
route_map = "RM1"
backdoor = true
evpn = false
Expand Down
6 changes: 6 additions & 0 deletions gen/definitions/bgp_address_family_ipv4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ attributes:
example: 65000
- yang_name: af-name
example: unicast
- yang_name: ipv4-unicast/redistribute/connected
tf_name: ipv4_unicast_redistribute_connected
example: true
- yang_name: ipv4-unicast/redistribute/static
tf_name: ipv4_unicast_redistribute_static
example: true
- yang_name: ipv4-unicast/network/with-mask
tf_name: ipv4_unicast_networks_mask
type: List
Expand Down
6 changes: 3 additions & 3 deletions gen/definitions/bgp_address_family_ipv4_vrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ attributes:
example: VRF1
id: true
- yang_name: ipv4-unicast/advertise/l2vpn/evpn
tf_name: advertise_l2vpn_evpn
tf_name: ipv4_unicast_advertise_l2vpn_evpn
example: true
- yang_name: ipv4-unicast/redistribute-vrf/connected
tf_name: redistribute_connected
tf_name: ipv4_unicast_redistribute_connected
example: true
- yang_name: ipv4-unicast/redistribute-vrf/static
tf_name: redistribute_static
tf_name: ipv4_unicast_redistribute_static
example: true
- yang_name: ipv4-unicast/network/with-mask
tf_name: ipv4_unicast_networks_mask
Expand Down
8 changes: 7 additions & 1 deletion gen/definitions/bgp_address_family_ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@ attributes:
example: 65000
- yang_name: af-name
example: unicast
- yang_name: ipv6-unicast/redistribute-v6/connected
tf_name: ipv6_unicast_redistribute_connected
example: true
- yang_name: ipv6-unicast/redistribute-v6/static
tf_name: ipv6_unicast_redistribute_static
example: true
- yang_name: ipv6-unicast/network
tf_name: ipv6_unicast_networks
type: List
attributes:
- yang_name: number
tf_name: network
id: true
example: 2001:1234::0/64
example: 2001:1234::/64
- yang_name: route-map
example: RM1
- yang_name: backdoor
Expand Down
8 changes: 4 additions & 4 deletions gen/definitions/bgp_address_family_ipv6_vrf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ attributes:
example: VRF1
id: true
- yang_name: ipv6-unicast/advertise/l2vpn/evpn
tf_name: advertise_l2vpn_evpn
tf_name: ipv6_unicast_advertise_l2vpn_evpn
example: true
- yang_name: ipv6-unicast/redistribute-v6/connected
tf_name: redistribute_connected
tf_name: ipv6_unicast_redistribute_connected
example: true
- yang_name: ipv6-unicast/redistribute-v6/static
tf_name: redistribute_static
tf_name: ipv6_unicast_redistribute_static
example: true
- yang_name: ipv6-unicast/network
tf_name: ipv6_unicast_networks
Expand All @@ -32,7 +32,7 @@ attributes:
- yang_name: number
tf_name: network
id: true
example: 2001:1234::0/64
example: 2001:1234::/64
- yang_name: route-map
example: RM1
- yang_name: backdoor
Expand Down

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.

Loading

0 comments on commit b68cfe3

Please sign in to comment.