mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
Merge pull request #8225 from idryzhov/bfd-echo-mode
bfdd: fix echo receive timer and disable echo mode
This commit is contained in:
commit
692b3561df
@ -501,8 +501,10 @@ void ptm_bfd_echo_stop(struct bfd_session *bfd)
|
||||
void ptm_bfd_echo_start(struct bfd_session *bfd)
|
||||
{
|
||||
bfd->echo_detect_TO = (bfd->remote_detect_mult * bfd->echo_xmt_TO);
|
||||
if (bfd->echo_detect_TO > 0)
|
||||
if (bfd->echo_detect_TO > 0) {
|
||||
bfd_echo_recvtimer_update(bfd);
|
||||
ptm_bfd_echo_xmt_TO(bfd);
|
||||
}
|
||||
}
|
||||
|
||||
void ptm_bfd_sess_up(struct bfd_session *bfd)
|
||||
|
@ -433,6 +433,10 @@ DEFPY_YANG(
|
||||
return CMD_WARNING_CONFIG_FAILED;
|
||||
}
|
||||
|
||||
if (!no && !bglobal.bg_use_dplane) {
|
||||
vty_out(vty, "%% Current implementation of echo mode works only when the peer is also FRR.\n");
|
||||
}
|
||||
|
||||
nb_cli_enqueue_change(vty, "./echo-mode", NB_OP_MODIFY,
|
||||
no ? "false" : "true");
|
||||
return nb_cli_apply_changes(vty, NULL);
|
||||
|
@ -180,7 +180,8 @@ BFD peers and profiles share the same BFD session configuration commands.
|
||||
.. clicmd:: echo-mode
|
||||
|
||||
Enables or disables the echo transmission mode. This mode is disabled
|
||||
by default.
|
||||
by default. If you are not using distributed BFD then echo mode works
|
||||
only when the peer is also FRR.
|
||||
|
||||
It is recommended that the transmission interval of control packets
|
||||
to be increased after enabling echo-mode to reduce bandwidth usage.
|
||||
|
Loading…
Reference in New Issue
Block a user