diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-03-09 23:35:55 +0100 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-03-16 15:25:06 +0100 |
commit | f1825d571e2cf48922fe86d5158018a13bd75d4c (patch) | |
tree | 2f1c612eb700598304d019d04de0e57f5693e2cf /bfdd | |
parent | bfdd: fix starting echo receive timer (diff) | |
download | frr-f1825d571e2cf48922fe86d5158018a13bd75d4c.tar.xz frr-f1825d571e2cf48922fe86d5158018a13bd75d4c.zip |
bfdd: warn users about echo-mode restrictions
Echo-mode implementation is currently broken. Instead of sending packets
to it's own address, bfdd is sending echo packets to the peer's address.
It may seem to work when testing between two FRR instances, because FRR
loops back such packets, but no other implementation is supposed to do
that.
Let's warn users that the current implementation works only between two
FRR instances.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd')
-rw-r--r-- | bfdd/bfdd_cli.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfdd/bfdd_cli.c b/bfdd/bfdd_cli.c index 206f6c7d0..211588cce 100644 --- a/bfdd/bfdd_cli.c +++ b/bfdd/bfdd_cli.c @@ -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); |