Skip to content

Commit

Permalink
Adding local-address to router-bfd
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivani-gslab committed Jan 24, 2024
1 parent 3e6e65e commit ad380f7
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ interface Management1
router bfd
interval 900 min-rx 900 multiplier 50 default
multihop interval 300 min-rx 300 multiplier 3
local-address 192.168.255.1
session stats snapshot interval 51
!
sbfd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ interface Management1
router bfd
interval 900 min-rx 900 multiplier 50 default
multihop interval 300 min-rx 300 multiplier 3
local-address 192.168.255.1
session stats snapshot interval 51
!
sbfd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

router_bfd:
interval: 900
local_address: 192.168.255.1
min_rx: 900
multiplier: 50
multihop:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;interval</samp>](## "port_channel_interfaces.[].bfd.interval") | Integer | | | | Interval in milliseconds |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;min_rx</samp>](## "port_channel_interfaces.[].bfd.min_rx") | Integer | | | | Rate in milliseconds |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;multiplier</samp>](## "port_channel_interfaces.[].bfd.multiplier") | Integer | | | Min: 3<br>Max: 50 | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;neighbor</samp>](## "port_channel_interfaces.[].bfd.neighbor") | String | | | | IPv4 or IPv6 address. When the Port-channel is a L2 interface, a local L3 BFD address has to be defined globally on the switch. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;neighbor</samp>](## "port_channel_interfaces.[].bfd.neighbor") | String | | | | IPv4 or IPv6 address. When the Port-channel is a L2 interface, a local L3 BFD address `router_bfd.local_address` has to be defined globally on the switch. |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;per_link</samp>](## "port_channel_interfaces.[].bfd.per_link") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;enabled</samp>](## "port_channel_interfaces.[].bfd.per_link.enabled") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rfc_7130</samp>](## "port_channel_interfaces.[].bfd.per_link.rfc_7130") | Boolean | | | | |
Expand Down Expand Up @@ -336,7 +336,7 @@
min_rx: <int>
multiplier: <int; 3-50>

# IPv4 or IPv6 address. When the Port-channel is a L2 interface, a local L3 BFD address has to be defined globally on the switch.
# IPv4 or IPv6 address. When the Port-channel is a L2 interface, a local L3 BFD address `router_bfd.local_address` has to be defined globally on the switch.
neighbor: <str>
per_link:
enabled: <bool>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
| -------- | ---- | -------- | ------- | ------------------ | ----------- |
| [<samp>router_bfd</samp>](## "router_bfd") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;interval</samp>](## "router_bfd.interval") | Integer | | | | Rate in milliseconds |
| [<samp>&nbsp;&nbsp;local_address</samp>](## "router_bfd.local_address") | String | | | | Configure BFD local IP/IPv6 address |
| [<samp>&nbsp;&nbsp;min_rx</samp>](## "router_bfd.min_rx") | Integer | | | | Rate in milliseconds |
| [<samp>&nbsp;&nbsp;multiplier</samp>](## "router_bfd.multiplier") | Integer | | | Min: 3<br>Max: 50 | |
| [<samp>&nbsp;&nbsp;multihop</samp>](## "router_bfd.multihop") | Dictionary | | | | |
Expand Down Expand Up @@ -38,6 +39,9 @@
# Rate in milliseconds
interval: <int>

# Configure BFD local IP/IPv6 address
local_address: <str>

# Rate in milliseconds
min_rx: <int>
multiplier: <int; 3-50>
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.

Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ keys:
max: 50
neighbor:
type: str
description: IPv4 or IPv6 address. When the Port-channel is a L2 interface, a local L3 BFD address has to be defined globally on the switch.
description: IPv4 or IPv6 address. When the Port-channel is a L2 interface, a local L3 BFD address `router_bfd.local_address` has to be defined globally on the switch.
per_link:
type: dict
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ keys:
interval:
type: int
description: Rate in milliseconds
local_address:
type: str
description: Configure BFD local IP/IPv6 address
min_rx:
type: int
description: Rate in milliseconds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ router bfd
{% if router_bfd.multihop.interval is arista.avd.defined and router_bfd.multihop.min_rx is arista.avd.defined and router_bfd.multihop.multiplier is arista.avd.defined %}
multihop interval {{ router_bfd.multihop.interval }} min-rx {{ router_bfd.multihop.min_rx }} multiplier {{ router_bfd.multihop.multiplier }}
{% endif %}
{% if router_bfd.local_address is arista.avd.defined %}
local-address {{ router_bfd.local_address }}
{% endif %}
{% if router_bfd.session_snapshot_interval is arista.avd.defined and router_bfd.session_snapshot_interval < 10 and router_bfd.session_snapshot_interval_dangerous is arista.avd.defined(true, fail_action="error", var_name="router_bfd.session_snapshot_interval_dangerous") %}
session stats snapshot interval dangerous {{ router_bfd.session_snapshot_interval }}
{% elif router_bfd.session_snapshot_interval is arista.avd.defined %}
Expand Down

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

0 comments on commit ad380f7

Please sign in to comment.