summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-04-19 17:17:31 +0200
committerGitHub <noreply@github.com>2022-04-19 17:17:31 +0200
commit7e785dae95c84ac02722cc31e6e00ff140c84f55 (patch)
tree2bc1e09535ca86fdd070cbddc575f176b9e863a3
parentMerge pull request #11030 from ranjanyash54/minls (diff)
parentisisd: add bfd information on isis neighbor show command (diff)
downloadfrr-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.c10
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;