diff options
author | Russ White <russ@riw.us> | 2022-04-19 17:17:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 17:17:31 +0200 |
commit | 7e785dae95c84ac02722cc31e6e00ff140c84f55 (patch) | |
tree | 2bc1e09535ca86fdd070cbddc575f176b9e863a3 | |
parent | Merge pull request #11030 from ranjanyash54/minls (diff) | |
parent | isisd: add bfd information on isis neighbor show command (diff) | |
download | frr-7e785dae95c84ac02722cc31e6e00ff140c84f55.tar.xz frr-7e785dae95c84ac02722cc31e6e00ff140c84f55.zip |
Merge pull request #10983 from pguibert6WIND/show_isis_nbr_bfd
isisd: add bfd information on isis neighbor show command
-rw-r--r-- | isisd/isis_adjacency.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c index 2729dce38..11f17ec7b 100644 --- a/isisd/isis_adjacency.c +++ b/isisd/isis_adjacency.c @@ -31,6 +31,7 @@ #include "thread.h" #include "if.h" #include "stream.h" +#include "bfd.h" #include "isisd/isis_constants.h" #include "isisd/isis_common.h" @@ -814,6 +815,15 @@ void isis_adj_print_vty(struct isis_adjacency *adj, struct vty *vty, vty_out(vty, " %s\n", buf); } } + if (adj->circuit && adj->circuit->bfd_config.enabled) { + vty_out(vty, " BFD is %s%s\n", + adj->bfd_session ? "active, status " + : "configured", + !adj->bfd_session + ? "" + : bfd_get_status_str(bfd_sess_status( + adj->bfd_session))); + } for (ALL_LIST_ELEMENTS_RO(adj->adj_sids, anode, sra)) { const char *adj_type; const char *backup; |