Skip to content

Commit

Permalink
Fix bfd resource and data source
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jul 29, 2023
1 parent 74e0788 commit 7156fc4
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
2 changes: 1 addition & 1 deletion docs/data-sources/bfd.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ data "iosxr_bfd" "example" {
- `dampening_secondary_wait` (Number) Secondary delay before bringing up session
- `dampening_threshold` (Number) Stability threshold to enable dampening
- `echo_disable` (Boolean) Disable BFD echo mode
- `echo_ipv4_bundle_per_member_minimum_interval_preferred_minimum_interval` (Number) The preferred minimum interval (in ms) for the BFD session
- `echo_ipv4_bundle_per_member_preferred_minimum_interval` (Number) The preferred minimum interval (in ms) for the BFD session
- `echo_ipv4_source` (String) BFD echo source IP address
- `echo_latency_detect_count` (Number) Count of consecutive bad latency packets to take session down
- `echo_latency_detect_percentage` (Number) Percentage of detection time to consider as bad latency
Expand Down
16 changes: 8 additions & 8 deletions docs/resources/bfd.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ This resource can manage the BFD configuration.

```terraform
resource "iosxr_bfd" "example" {
echo_disable = true
echo_latency_detect_percentage = 200
echo_latency_detect_count = 10
echo_startup_validate_force = true
echo_ipv4_source = "10.1.1.1"
echo_ipv4_bundle_per_member_minimum_interval_preferred_minimum_interval = 200
trap_singlehop_pre_mapped = true
echo_disable = true
echo_latency_detect_percentage = 200
echo_latency_detect_count = 10
echo_startup_validate_force = true
echo_ipv4_source = "10.1.1.1"
echo_ipv4_bundle_per_member_preferred_minimum_interval = 200
trap_singlehop_pre_mapped = true
multipath_locations = [
{
location_name = "0/0/CPU0"
Expand Down Expand Up @@ -84,7 +84,7 @@ resource "iosxr_bfd" "example" {
- Choices: `all`, `attributes`
- `device` (String) A device name from the provider configuration.
- `echo_disable` (Boolean) Disable BFD echo mode
- `echo_ipv4_bundle_per_member_minimum_interval_preferred_minimum_interval` (Number) The preferred minimum interval (in ms) for the BFD session
- `echo_ipv4_bundle_per_member_preferred_minimum_interval` (Number) The preferred minimum interval (in ms) for the BFD session
- Range: `15`-`2000`
- `echo_ipv4_source` (String) BFD echo source IP address
- `echo_latency_detect_count` (Number) Count of consecutive bad latency packets to take session down
Expand Down
14 changes: 7 additions & 7 deletions examples/resources/iosxr_bfd/resource.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
resource "iosxr_bfd" "example" {
echo_disable = true
echo_latency_detect_percentage = 200
echo_latency_detect_count = 10
echo_startup_validate_force = true
echo_ipv4_source = "10.1.1.1"
echo_ipv4_bundle_per_member_minimum_interval_preferred_minimum_interval = 200
trap_singlehop_pre_mapped = true
echo_disable = true
echo_latency_detect_percentage = 200
echo_latency_detect_count = 10
echo_startup_validate_force = true
echo_ipv4_source = "10.1.1.1"
echo_ipv4_bundle_per_member_preferred_minimum_interval = 200
trap_singlehop_pre_mapped = true
multipath_locations = [
{
location_name = "0/0/CPU0"
Expand Down
4 changes: 2 additions & 2 deletions gen/definitions/bfd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ attributes:
- yang_name: echo/ipv4/source
example: 10.1.1.1
- yang_name: echo/ipv4/bundle-per-member/minimum-interval/preferred-minimum-interval
tf_name: echo_ipv4_bundle_per_member_preferred_minimum_interval
example: 200
- yang_name: trap/singlehop/pre-mapped
example: true
Expand All @@ -24,7 +25,6 @@ attributes:
- yang_name: location-name
id: true
example: 0/0/CPU0

- yang_name: multihop/ttl-drop-threshold
example: 200
- yang_name: dampening/initial-wait
Expand Down Expand Up @@ -75,4 +75,4 @@ attributes:
- yang_name: multiplier
example: 40
- yang_name: ipv6/checksum/disable
example: true
example: true
2 changes: 1 addition & 1 deletion internal/provider/data_source_iosxr_bfd.go

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

4 changes: 2 additions & 2 deletions internal/provider/data_source_iosxr_bfd_test.go

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

Loading

0 comments on commit 7156fc4

Please sign in to comment.