Skip to content

Commit

Permalink
US-DIGITIZE-1349
Browse files Browse the repository at this point in the history
  • Loading branch information
swarudka committed Nov 13, 2023
1 parent c19082e commit 4b54eb1
Show file tree
Hide file tree
Showing 18 changed files with 407 additions and 25 deletions.
10 changes: 10 additions & 0 deletions docs/data-sources/bgp_address_family_ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,21 @@ data "iosxe_bgp_address_family_ipv4" "example" {
### Read-Only

- `id` (String) The path of the retrieved object.
- `ipv4_unicast_aggregate_address` (Attributes List) Configure BGP aggregate entries (see [below for nested schema](#nestedatt--ipv4_unicast_aggregate_address))
- `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_aggregate_address"></a>
### Nested Schema for `ipv4_unicast_aggregate_address`

Read-Only:

- `ipv4_address` (String)
- `ipv4_mask` (String)


<a id="nestedatt--ipv4_unicast_networks"></a>
### Nested Schema for `ipv4_unicast_networks`

Expand Down
10 changes: 10 additions & 0 deletions docs/data-sources/bgp_address_family_ipv4_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,22 @@ data "iosxe_bgp_address_family_ipv4_vrf" "example" {
Read-Only:

- `ipv4_unicast_advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv4_unicast_aggregate_address` (Attributes List) Configure BGP aggregate entries (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_aggregate_address))
- `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)

<a id="nestedatt--vrfs--ipv4_unicast_aggregate_address"></a>
### Nested Schema for `vrfs.ipv4_unicast_aggregate_address`

Read-Only:

- `ipv4_address` (String)
- `ipv4_mask` (String)


<a id="nestedatt--vrfs--ipv4_unicast_networks"></a>
### Nested Schema for `vrfs.ipv4_unicast_networks`

Expand Down
16 changes: 16 additions & 0 deletions docs/resources/bgp_address_family_ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ resource "iosxe_bgp_address_family_ipv4" "example" {
af_name = "unicast"
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_aggregate_address = [
{
ipv4_address = "10.0.0.0"
ipv4_mask = "255.255.0.0"
}
]
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down Expand Up @@ -49,6 +55,7 @@ resource "iosxe_bgp_address_family_ipv4" "example" {
- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`.
- Choices: `all`, `attributes`
- `device` (String) A device name from the provider configuration.
- `ipv4_unicast_aggregate_address` (Attributes List) Configure BGP aggregate entries (see [below for nested schema](#nestedatt--ipv4_unicast_aggregate_address))
- `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
Expand All @@ -58,6 +65,15 @@ resource "iosxe_bgp_address_family_ipv4" "example" {

- `id` (String) The path of the object.

<a id="nestedatt--ipv4_unicast_aggregate_address"></a>
### Nested Schema for `ipv4_unicast_aggregate_address`

Required:

- `ipv4_address` (String)
- `ipv4_mask` (String)


<a id="nestedatt--ipv4_unicast_networks"></a>
### Nested Schema for `ipv4_unicast_networks`

Expand Down
18 changes: 17 additions & 1 deletion docs/resources/bgp_address_family_ipv4_vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "example" {
name = "VRF1"
ipv4_unicast_advertise_l2vpn_evpn = true
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_aggregate_address = [
{
ipv4_address = "50.0.0.0"
ipv4_mask = "255.255.0.0"
}
]
ipv4_unicast_redistribute_static = true
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down Expand Up @@ -71,11 +77,21 @@ Required:
Optional:

- `ipv4_unicast_advertise_l2vpn_evpn` (Boolean) Advertise/export prefixes to l2vpn evpn table
- `ipv4_unicast_aggregate_address` (Attributes List) Configure BGP aggregate entries (see [below for nested schema](#nestedatt--vrfs--ipv4_unicast_aggregate_address))
- `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

<a id="nestedatt--vrfs--ipv4_unicast_aggregate_address"></a>
### Nested Schema for `vrfs.ipv4_unicast_aggregate_address`

Required:

- `ipv4_address` (String)
- `ipv4_mask` (String)


<a id="nestedatt--vrfs--ipv4_unicast_networks"></a>
### Nested Schema for `vrfs.ipv4_unicast_networks`

Expand Down
6 changes: 6 additions & 0 deletions examples/resources/iosxe_bgp_address_family_ipv4/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ resource "iosxe_bgp_address_family_ipv4" "example" {
af_name = "unicast"
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_aggregate_address = [
{
ipv4_address = "10.0.0.0"
ipv4_mask = "255.255.0.0"
}
]
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "example" {
name = "VRF1"
ipv4_unicast_advertise_l2vpn_evpn = true
ipv4_unicast_redistribute_connected = true
ipv4_unicast_redistribute_static = true
ipv4_unicast_aggregate_address = [
{
ipv4_address = "50.0.0.0"
ipv4_mask = "255.255.0.0"
}
]
ipv4_unicast_redistribute_static = true
ipv4_unicast_networks_mask = [
{
network = "12.0.0.0"
Expand Down
11 changes: 11 additions & 0 deletions gen/definitions/bgp_address_family_ipv4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ attributes:
- yang_name: ipv4-unicast/redistribute/static
tf_name: ipv4_unicast_redistribute_static
example: true
- yang_name: ipv4-unicast/aggregate-address
tf_name: ipv4_unicast_aggregate_address
type: List
attributes:
- yang_name: ipv4-address
id: true
example: 10.0.0.0
- yang_name: ipv4-mask
id: true
example: 255.255.0.0

- yang_name: ipv4-unicast/network/with-mask
tf_name: ipv4_unicast_networks_mask
type: List
Expand Down
10 changes: 10 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,16 @@ attributes:
- yang_name: ipv4-unicast/redistribute-vrf/connected
tf_name: ipv4_unicast_redistribute_connected
example: true
- yang_name: ipv4-unicast/aggregate-address
tf_name: ipv4_unicast_aggregate_address
type: List
attributes:
- yang_name: ipv4-address
id: true
example: 50.0.0.0
- yang_name: ipv4-mask
id: true
example: 255.255.0.0
- yang_name: ipv4-unicast/redistribute-vrf/static
tf_name: ipv4_unicast_redistribute_static
example: true
Expand Down
16 changes: 16 additions & 0 deletions internal/provider/data_source_iosxe_bgp_address_family_ipv4.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.

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

Loading

0 comments on commit 4b54eb1

Please sign in to comment.