Skip to content

Commit

Permalink
Add next hop self to bgp resources
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Mar 21, 2024
1 parent dffb943 commit 57a7770
Show file tree
Hide file tree
Showing 21 changed files with 108 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- Add `iosxr_router_static_vrf_ipv4_multicast` resource and data source
- Add `iosxr_router_static_vrf_ipv6_unicast` resource and data source
- Add `iosxr_router_static_vrf_ipv6_multicast` resource and data source
- Add `next_hop_self` to `iosxr_router_bgp_neighbor_group` resource and data source
- Add `next_hop_self` to `iosxr_router_bgp_vrf_neighbor_address_family` resource and data source

## 0.4.0

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/router_bgp_neighbor_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ data "iosxr_router_bgp_neighbor_group" "example" {
Read-Only:

- `af_name` (String) Enter Address Family command mode
- `next_hop_self` (Boolean) Disable the next hop calculation for this neighbor
- `next_hop_self_inheritance_disable` (Boolean) Prevent next-hop-self from being inherited from the parent
- `route_policy_in` (String) Apply route policy to inbound routes
- `route_policy_out` (String) Apply route policy to outbound routes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ data "iosxr_router_bgp_vrf_neighbor_address_family" "example" {
- `default_originate_inheritance_disable` (Boolean) Prevent default-originate being inherited from a parent group
- `default_originate_route_policy` (String) Route policy to specify criteria to originate default
- `id` (String) The path of the retrieved object.
- `next_hop_self` (Boolean) Disable the next hop calculation for this neighbor
- `next_hop_self_inheritance_disable` (Boolean) Prevent next-hop-self from being inherited from the parent
- `remove_private_as_inheritance_disable` (Boolean) Prevent remove-private-AS from being inherited from the parent
- `route_policy_in` (String) Apply route policy to inbound routes
Expand Down
2 changes: 2 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ description: |-
- Add `iosxr_router_static_vrf_ipv4_multicast` resource and data source
- Add `iosxr_router_static_vrf_ipv6_unicast` resource and data source
- Add `iosxr_router_static_vrf_ipv6_multicast` resource and data source
- Add `next_hop_self` to `iosxr_router_bgp_neighbor_group` resource and data source
- Add `next_hop_self` to `iosxr_router_bgp_vrf_neighbor_address_family` resource and data source

## 0.4.0

Expand Down
2 changes: 2 additions & 0 deletions docs/resources/router_bgp_neighbor_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ resource "iosxr_router_bgp_neighbor_group" "example" {
{
af_name = "ipv4-labeled-unicast"
soft_reconfiguration_inbound_always = true
next_hop_self = true
next_hop_self_inheritance_disable = true
route_reflector_client = true
route_reflector_client_inheritance_disable = true
Expand Down Expand Up @@ -89,6 +90,7 @@ Required:

Optional:

- `next_hop_self` (Boolean) Disable the next hop calculation for this neighbor
- `next_hop_self_inheritance_disable` (Boolean) Prevent next-hop-self from being inherited from the parent
- `route_policy_in` (String) Apply route policy to inbound routes
- `route_policy_out` (String) Apply route policy to outbound routes
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/router_bgp_vrf_neighbor_address_family.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ resource "iosxr_router_bgp_vrf_neighbor_address_family" "example" {
route_policy_in = "ROUTE_POLICY_1"
route_policy_out = "ROUTE_POLICY_1"
default_originate_route_policy = "ROUTE_POLICY_1"
next_hop_self = true
next_hop_self_inheritance_disable = true
soft_reconfiguration_inbound_always = true
send_community_ebgp_inheritance_disable = true
Expand All @@ -46,6 +47,7 @@ resource "iosxr_router_bgp_vrf_neighbor_address_family" "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.
- `next_hop_self` (Boolean) Disable the next hop calculation for this neighbor
- `next_hop_self_inheritance_disable` (Boolean) Prevent next-hop-self from being inherited from the parent
- `remove_private_as_inheritance_disable` (Boolean) Prevent remove-private-AS from being inherited from the parent
- `route_policy_in` (String) Apply route policy to inbound routes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ resource "iosxr_router_bgp_neighbor_group" "example" {
{
af_name = "ipv4-labeled-unicast"
soft_reconfiguration_inbound_always = true
next_hop_self = true
next_hop_self_inheritance_disable = true
route_reflector_client = true
route_reflector_client_inheritance_disable = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource "iosxr_router_bgp_vrf_neighbor_address_family" "example" {
route_policy_in = "ROUTE_POLICY_1"
route_policy_out = "ROUTE_POLICY_1"
default_originate_route_policy = "ROUTE_POLICY_1"
next_hop_self = true
next_hop_self_inheritance_disable = true
soft_reconfiguration_inbound_always = true
send_community_ebgp_inheritance_disable = true
Expand Down
2 changes: 2 additions & 0 deletions gen/definitions/router_bgp_neighbor_group.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ attributes:
example: ipv4-labeled-unicast
- yang_name: soft-reconfiguration/inbound/always
example: true
- yang_name: next-hop-self
example: true
- yang_name: next-hop-self/inheritance-disable
example: true
- yang_name: route-reflector-client
Expand Down
2 changes: 2 additions & 0 deletions gen/definitions/router_bgp_vrf_neighbor_address_family.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ attributes:
- yang_name: default-originate/inheritance-disable
example: true
exclude_test: true
- yang_name: next-hop-self
example: true
- yang_name: next-hop-self/inheritance-disable
example: true
- yang_name: soft-reconfiguration/inbound/always
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.

31 changes: 31 additions & 0 deletions internal/provider/model_iosxr_router_bgp_neighbor_group.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 57a7770

Please sign in to comment.