mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 22:55:43 +00:00
bgpd: Display FD used for peer
When issuing a `show bgp neighbor...` command display to the end user the FD used for communication. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
8b1148bf59
commit
cac9e917eb
@ -10909,11 +10909,11 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
|
|||||||
if (p->password)
|
if (p->password)
|
||||||
vty_out(vty, "Peer Authentication Enabled\n");
|
vty_out(vty, "Peer Authentication Enabled\n");
|
||||||
|
|
||||||
vty_out(vty, "Read thread: %s Write thread: %s\n",
|
vty_out(vty, "Read thread: %s Write thread: %s FD used: %d\n",
|
||||||
p->t_read ? "on" : "off",
|
p->t_read ? "on" : "off",
|
||||||
CHECK_FLAG(p->thread_flags, PEER_THREAD_WRITES_ON)
|
CHECK_FLAG(p->thread_flags, PEER_THREAD_WRITES_ON)
|
||||||
? "on"
|
? "on"
|
||||||
: "off");
|
: "off", p->fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->notify.code == BGP_NOTIFY_OPEN_ERR
|
if (p->notify.code == BGP_NOTIFY_OPEN_ERR
|
||||||
|
Loading…
Reference in New Issue
Block a user