]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Display FD used for peer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 24 May 2019 12:27:19 +0000 (08:27 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 24 May 2019 12:27:19 +0000 (08:27 -0400)
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>
bgpd/bgp_vty.c

index 2a08619ec34b0716b402217a622c439f401f5163..ae51f1d780d72ad168e47d4fba53b33de9ca72a3 100644 (file)
@@ -10909,11 +10909,11 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, bool use_json,
                if (p->password)
                        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",
                        CHECK_FLAG(p->thread_flags, PEER_THREAD_WRITES_ON)
                                ? "on"
-                               : "off");
+                               : "off", p->fd);
        }
 
        if (p->notify.code == BGP_NOTIFY_OPEN_ERR