Skip to content

Commit

Permalink
Feat(eos_cli_config_gen): Extend sbfd for initiator measurement round…
Browse files Browse the repository at this point in the history
…-trip (#3347)
  • Loading branch information
chetryan authored Nov 16, 2023
1 parent 9150cec commit 05e3914
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ interface Management1

#### Router BFD SBFD Summary

| Initiator Interval | Initiator Multiplier | Reflector Minimum RX | Reflector Local-Discriminator |
| Initiator Interval | Initiator Multiplier | Initiator Round-Trip | Reflector Minimum RX | Reflector Local-Discriminator |
| ------------------ | -------------------- | -------------------- | ----------------------------- |
| 500 | 3 | 600 | 155.1.3.1 |
| 500 | 3 | True | 600 | 155.1.3.1 |

#### Router BFD Device Configuration

Expand All @@ -68,6 +68,7 @@ router bfd
sbfd
local-interface Loopback0 ipv4 ipv6
initiator interval 500 multiplier 3
initiator measurement delay round-trip
reflector min-rx 600
reflector local-discriminator 155.1.3.1
```
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ router bfd
sbfd
local-interface Loopback0 ipv4 ipv6
initiator interval 500 multiplier 3
initiator measurement delay round-trip
reflector min-rx 600
reflector local-discriminator 155.1.3.1
!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ router_bfd:
ipv6: true
initiator_interval: 500
initiator_multiplier: 3
initiator_measurement_round_trip: true
reflector:
min_rx: 600
local_discriminator: 155.1.3.1
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ipv6</samp>](## "router_bfd.sbfd.local_interface.protocols.ipv6") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;initiator_interval</samp>](## "router_bfd.sbfd.initiator_interval") | Integer | | | | Rate in milliseconds |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;initiator_multiplier</samp>](## "router_bfd.sbfd.initiator_multiplier") | Integer | | | Min: 3<br>Max: 50 | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;initiator_measurement_round_trip</samp>](## "router_bfd.sbfd.initiator_measurement_round_trip") | Boolean | | | | Enable round-trip delay measurement |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;reflector</samp>](## "router_bfd.sbfd.reflector") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min_rx</samp>](## "router_bfd.sbfd.reflector.min_rx") | Integer | | | | Rate in milliseconds |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;local_discriminator</samp>](## "router_bfd.sbfd.reflector.local_discriminator") | String | | | | IPv4 address or 32 bit integer |
Expand Down Expand Up @@ -58,6 +59,9 @@
# Rate in milliseconds
initiator_interval: <int>
initiator_multiplier: <int; 3-50>

# Enable round-trip delay measurement
initiator_measurement_round_trip: <bool>
reflector:

# Rate in milliseconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14029,6 +14029,11 @@
"maximum": 50,
"title": "Initiator Multiplier"
},
"initiator_measurement_round_trip": {
"type": "boolean",
"description": "Enable round-trip delay measurement",
"title": "Initiator Measurement Round Trip"
},
"reflector": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8270,6 +8270,9 @@ keys:
type: int
min: 3
max: 50
initiator_measurement_round_trip:
type: bool
description: Enable round-trip delay measurement
reflector:
type: dict
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ keys:
type: int
min: 3
max: 50
initiator_measurement_round_trip:
type: bool
description: Enable round-trip delay measurement
reflector:
type: dict
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@

#### Router BFD SBFD Summary

| Initiator Interval | Initiator Multiplier | Reflector Minimum RX | Reflector Local-Discriminator |
| Initiator Interval | Initiator Multiplier | Initiator Round-Trip | Reflector Minimum RX | Reflector Local-Discriminator |
| ------------------ | -------------------- | -------------------- | ----------------------------- |
{% set init_interval = router_bfd.sbfd.initiator_interval | arista.avd.default('-') %}
{% set init_multiplier = router_bfd.sbfd.initiator_multiplier | arista.avd.default('-') %}
{% set init_round_trip = router_bfd.sbfd.initiator_measurement_round_trip | arista.avd.default('-') %}
{% set ref_min_rx = router_bfd.sbfd.reflector.min_rx | arista.avd.default('-') %}
{% set ref_discriminator = router_bfd.sbfd.reflector.local_discriminator | arista.avd.default('-') %}
| {{ init_interval }} | {{ init_multiplier }} | {{ ref_min_rx }} | {{ ref_discriminator }} |
| {{ init_interval }} | {{ init_multiplier }} | {{ init_round_trip }} | {{ ref_min_rx }} | {{ ref_discriminator }} |
{% endif %}

#### Router BFD Device Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ router bfd
{% if router_bfd.sbfd.initiator_interval is arista.avd.defined and router_bfd.sbfd.initiator_multiplier is arista.avd.defined %}
initiator interval {{ router_bfd.sbfd.initiator_interval }} multiplier {{ router_bfd.sbfd.initiator_multiplier }}
{% endif %}
{% if router_bfd.sbfd.initiator_measurement_round_trip is arista.avd.defined(true) %}
initiator measurement delay round-trip
{% endif %}
{% if router_bfd.sbfd.reflector.min_rx is arista.avd.defined %}
reflector min-rx {{ router_bfd.sbfd.reflector.min_rx }}
{% endif %}
Expand Down

0 comments on commit 05e3914

Please sign in to comment.