summaryrefslogtreecommitdiff
path: root/bfdd/bfdd_cli.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-03-10 22:11:19 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-03-15 00:44:08 +0300
commit59dad8137ef0466d15240b49ece8710b31e4784f (patch)
tree1bd4c2b5b093d884c6bfed4265ebadc7daebb82b /bfdd/bfdd_cli.c
parente319ed4c49f5c4cc67611727490bde4bc3f2e51e (diff)
bfdd: make sessions administratively up by default
Current behavior is inconsistent. When the session is created by another daemon, it is up by default. When we later configure peer in bfdd, the session is still up, but the NB layer thinks that it is down. More than that, even when the session is created in bfdd using peer command, it is created in DOWN state, not ADM_DOWN. And it actually starts sending and receiving packets. The sessions is marked with SHUTDOWN flag only when we try to reconfigure some parameter. This behavior is also very unexpected. Fixes #7780. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'bfdd/bfdd_cli.c')
-rw-r--r--bfdd/bfdd_cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfdd/bfdd_cli.c b/bfdd/bfdd_cli.c
index 5072c76aac..206f6c7d0c 100644
--- a/bfdd/bfdd_cli.c
+++ b/bfdd/bfdd_cli.c
@@ -274,7 +274,7 @@ void bfd_cli_show_shutdown(struct vty *vty, struct lyd_node *dnode,
bool show_defaults)
{
if (show_defaults)
- vty_out(vty, " shutdown\n");
+ vty_out(vty, " no shutdown\n");
else
vty_out(vty, " %sshutdown\n",
yang_dnode_get_bool(dnode, NULL) ? "" : "no ");