]> git.puffer.fish Git - matthieu/frr.git/commit
bfdd: make sessions administratively up by default
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 10 Mar 2021 19:11:19 +0000 (22:11 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Sun, 14 Mar 2021 21:44:08 +0000 (00:44 +0300)
commit59dad8137ef0466d15240b49ece8710b31e4784f
tree1bd4c2b5b093d884c6bfed4265ebadc7daebb82b
parente319ed4c49f5c4cc67611727490bde4bc3f2e51e
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>
bfdd/bfd.c
bfdd/bfdd_cli.c
bfdd/bfdd_vty.c
bfdd/ptm_adapter.c
yang/frr-bfdd.yang