mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 20:04:11 +00:00
isisd: add bfd information on isis neighbor show command
Add bfd information on show isis neighbor command. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
This commit is contained in:
parent
e09284ca09
commit
ae59cfd796
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user