Skip to content

Commit

Permalink
Add bgp default originate attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Dec 18, 2023
1 parent 8f07148 commit c4335f6
Show file tree
Hide file tree
Showing 30 changed files with 320 additions and 62 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Add `soft_reconfiguration` attribute to `iosxe_bgp_ipv4_unicast_neighbor`, `iosxe_bgp_ipv4_unicast_vrf_neighbor`, `iosxe_bgp_ipv6_unicast_neighbor` and `iosxe_bgp_l2vpn_evpn_neighbor` resources and data sources
- Add `fall_over_bfd` attribute to `iosxe_bgp_neighbor` and `iosxe_bgp_ipv4_unicast_vrf_neighbor` resources and data sources
- Add `iosxe_as_path_access_list` resource and data source
- Add `default_originate` and `default_originate_route_map` attributes to `iosxe_bgp_ipv4_unicast_neighbor`, `iosxe_bgp_ipv4_unicast_vrf_neighbor` and `iosxe_bgp_ipv6_unicast_neighbor` resources and data sources

## 0.5.1

Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/bgp_ipv4_unicast_neighbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ data "iosxe_bgp_ipv4_unicast_neighbor" "example" {
### Read-Only

- `activate` (Boolean) Enable the address family for this neighbor
- `default_originate` (Boolean) Originate default route to this neighbor
- `default_originate_route_map` (String) Route-map to specify criteria to originate default
- `id` (String) The path of the retrieved object.
- `route_maps` (Attributes List) Apply route map to neighbor (see [below for nested schema](#nestedatt--route_maps))
- `route_reflector_client` (Boolean) Configure a neighbor as Route Reflector client
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/bgp_ipv4_unicast_vrf_neighbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ data "iosxe_bgp_ipv4_unicast_vrf_neighbor" "example" {

- `activate` (Boolean) Enable the address family for this neighbor
- `cluster_id` (String)
- `default_originate` (Boolean) Originate default route to this neighbor
- `default_originate_route_map` (String) Route-map to specify criteria to originate default
- `description` (String) Neighbor specific description
- `disable_connected_check` (Boolean) one-hop away EBGP peer using loopback address
- `ebgp_multihop` (Boolean) Allow EBGP neighbors not on directly connected networks. For single-hop ebgp peers, delete ebgp-multihop directly.
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/bgp_ipv6_unicast_neighbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ data "iosxe_bgp_ipv6_unicast_neighbor" "example" {
### Read-Only

- `activate` (Boolean) Enable the address family for this neighbor
- `default_originate` (Boolean) Originate default route to this neighbor
- `default_originate_route_map` (String) Route-map to specify criteria to originate default
- `id` (String) The path of the retrieved object.
- `route_maps` (Attributes List) Apply route map to neighbor (see [below for nested schema](#nestedatt--route_maps))
- `route_reflector_client` (Boolean) Configure a neighbor as Route Reflector client
Expand Down
1 change: 1 addition & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ description: |-
- Add `soft_reconfiguration` attribute to `iosxe_bgp_ipv4_unicast_neighbor`, `iosxe_bgp_ipv4_unicast_vrf_neighbor`, `iosxe_bgp_ipv6_unicast_neighbor` and `iosxe_bgp_l2vpn_evpn_neighbor` resources and data sources
- Add `fall_over_bfd` attribute to `iosxe_bgp_neighbor` and `iosxe_bgp_ipv4_unicast_vrf_neighbor` resources and data sources
- Add `iosxe_as_path_access_list` resource and data source
- Add `default_originate` and `default_originate_route_map` attributes to `iosxe_bgp_ipv4_unicast_neighbor`, `iosxe_bgp_ipv4_unicast_vrf_neighbor` and `iosxe_bgp_ipv6_unicast_neighbor` resources and data sources

## 0.5.1

Expand Down
16 changes: 10 additions & 6 deletions docs/resources/bgp_ipv4_unicast_neighbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ This resource can manage the BGP IPv4 Unicast Neighbor configuration.

```terraform
resource "iosxe_bgp_ipv4_unicast_neighbor" "example" {
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
default_originate = true
default_originate_route_map = "RM1"
route_maps = [
{
in_out = "in"
Expand All @@ -41,6 +43,8 @@ resource "iosxe_bgp_ipv4_unicast_neighbor" "example" {

- `activate` (Boolean) Enable the address family for this neighbor
- Default value: `true`
- `default_originate` (Boolean) Originate default route to this neighbor
- `default_originate_route_map` (String) Route-map to specify criteria to originate default
- `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.
Expand Down
4 changes: 4 additions & 0 deletions docs/resources/bgp_ipv4_unicast_vrf_neighbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ resource "iosxe_bgp_ipv4_unicast_vrf_neighbor" "example" {
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
default_originate = true
default_originate_route_map = "RM1"
route_maps = [
{
in_out = "in"
Expand All @@ -62,6 +64,8 @@ resource "iosxe_bgp_ipv4_unicast_vrf_neighbor" "example" {
- `activate` (Boolean) Enable the address family for this neighbor
- Default value: `true`
- `cluster_id` (String)
- `default_originate` (Boolean) Originate default route to this neighbor
- `default_originate_route_map` (String) Route-map to specify criteria to originate default
- `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`
- `description` (String) Neighbor specific description
Expand Down
16 changes: 10 additions & 6 deletions docs/resources/bgp_ipv6_unicast_neighbor.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ This resource can manage the BGP IPv6 Unicast Neighbor configuration.

```terraform
resource "iosxe_bgp_ipv6_unicast_neighbor" "example" {
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
default_originate = true
default_originate_route_map = "RM1"
route_maps = [
{
in_out = "in"
Expand All @@ -41,6 +43,8 @@ resource "iosxe_bgp_ipv6_unicast_neighbor" "example" {

- `activate` (Boolean) Enable the address family for this neighbor
- Default value: `true`
- `default_originate` (Boolean) Originate default route to this neighbor
- `default_originate_route_map` (String) Route-map to specify criteria to originate default
- `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.
Expand Down
14 changes: 8 additions & 6 deletions examples/resources/iosxe_bgp_ipv4_unicast_neighbor/resource.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
resource "iosxe_bgp_ipv4_unicast_neighbor" "example" {
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
default_originate = true
default_originate_route_map = "RM1"
route_maps = [
{
in_out = "in"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ resource "iosxe_bgp_ipv4_unicast_vrf_neighbor" "example" {
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
default_originate = true
default_originate_route_map = "RM1"
route_maps = [
{
in_out = "in"
Expand Down
14 changes: 8 additions & 6 deletions examples/resources/iosxe_bgp_ipv6_unicast_neighbor/resource.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
resource "iosxe_bgp_ipv6_unicast_neighbor" "example" {
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
asn = "65000"
ip = "3.3.3.3"
activate = true
send_community = "both"
route_reflector_client = false
soft_reconfiguration = "inbound"
default_originate = true
default_originate_route_map = "RM1"
route_maps = [
{
in_out = "in"
Expand Down
4 changes: 4 additions & 0 deletions gen/definitions/bgp_ipv4_unicast_neighbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ attributes:
example: false
- yang_name: soft-reconfiguration
example: inbound
- yang_name: default-originate
example: true
- yang_name: default-originate/route-map
example: RM1
- yang_name: route-map
tf_name: route_maps
type: List
Expand Down
4 changes: 4 additions & 0 deletions gen/definitions/bgp_ipv4_unicast_vrf_neighbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ attributes:
example: false
- yang_name: soft-reconfiguration
example: inbound
- yang_name: default-originate
example: true
- yang_name: default-originate/route-map
example: RM1
- yang_name: route-map
tf_name: route_maps
type: List
Expand Down
4 changes: 4 additions & 0 deletions gen/definitions/bgp_ipv6_unicast_neighbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ attributes:
example: false
- yang_name: soft-reconfiguration
example: inbound
- yang_name: default-originate
example: true
- yang_name: default-originate/route-map
example: RM1
- yang_name: route-map
tf_name: route_maps
type: List
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.

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 c4335f6

Please sign in to comment.