Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Add `local_routing` attribute to `iosxe_interface_nve` resource and data source
- Add `ipv4_unicast_maximum_paths_ebgp` and `ipv4_unicast_maximum_paths_ibgp` attributes to the `iosxe_bgp_address_family_ipv4` and `iosxe_bgp_address_family_ipv4_vrf` resources
- Add `ip_cef_load_sharing_algorithm_include_ports_source`, `ip_cef_load_sharing_algorithm_include_ports_destination`, `ipv6_cef_load_sharing_algorithm_include_ports_source`, `ipv6_cef_load_sharing_algorithm_include_ports_destination`, and `port_channel_load_balance` attributes to `iosxe_system` resource and data source
- Add `router_id_ip`, `bgp_graceful_restart`, and `bgp_update_delay` to `iosxe_bgp` resource and data source

## 0.9.3

Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/bgp.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ data "iosxe_bgp" "example" {

### Read-Only

- `bgp_graceful_restart` (Boolean) Graceful restart capability parameters
- `bgp_update_delay` (Number) Set the max initial delay for sending update
- `default_ipv4_unicast` (Boolean) Activate ipv4-unicast for a peer by default
- `id` (String) The path of the retrieved object.
- `log_neighbor_changes` (Boolean) Log neighbor up/down and reset reason
Expand Down
6 changes: 6 additions & 0 deletions docs/resources/bgp.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ resource "iosxe_bgp" "example" {
asn = "65000"
default_ipv4_unicast = false
log_neighbor_changes = true
router_id_ip = "172.16.255.1"
bgp_graceful_restart = true
bgp_update_delay = 200
router_id_loopback = 100
}
```
Expand All @@ -30,6 +33,9 @@ resource "iosxe_bgp" "example" {

### Optional

- `bgp_graceful_restart` (Boolean) Graceful restart capability parameters
- `bgp_update_delay` (Number) Set the max initial delay for sending update
- Range: `1`-`3600`
- `default_ipv4_unicast` (Boolean) Activate ipv4-unicast for a peer by 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`
Expand Down
3 changes: 3 additions & 0 deletions examples/resources/iosxe_bgp/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ resource "iosxe_bgp" "example" {
asn = "65000"
default_ipv4_unicast = false
log_neighbor_changes = true
router_id_ip = "172.16.255.1"
bgp_graceful_restart = true
bgp_update_delay = 200
router_id_loopback = 100
}
6 changes: 6 additions & 0 deletions gen/definitions/bgp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ attributes:
xpath: bgp/router-id/interface/Loopback
tf_name: router_id_loopback
example: 100
exclude_test: true
- yang_name: bgp/router-id/id-choice/ip-id/ip-id
xpath: bgp/router-id/ip-id
tf_name: router_id_ip
example: 172.16.255.1
exclude_test: true
- yang_name: bgp/gr-options/graceful-restart
tf_name: bgp_graceful_restart
example: true
- yang_name: bgp/update-delay
example: 200
test_prerequisites:
- path: Cisco-IOS-XE-native:native/interface/Loopback=100
attributes:
Expand Down
8 changes: 8 additions & 0 deletions internal/provider/data_source_iosxe_bgp.go

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

6 changes: 6 additions & 0 deletions internal/provider/data_source_iosxe_bgp_test.go

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

57 changes: 57 additions & 0 deletions internal/provider/model_iosxe_bgp.go

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

11 changes: 11 additions & 0 deletions internal/provider/resource_iosxe_bgp.go

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

6 changes: 6 additions & 0 deletions internal/provider/resource_iosxe_bgp_test.go

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

Loading