From: Ameya Dharkar Date: Tue, 7 Aug 2018 22:25:47 +0000 (-0700) Subject: bgpd: Added local router-id to "show bgp neighbor" X-Git-Tag: frr-6.1-dev~87^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0e38aeb41ed34c79333738be7b574d6a13e11637;p=matthieu%2Ffrr.git bgpd: Added local router-id to "show bgp neighbor" Signed-off-by: Ameya Dharkar adharkar@vmware.com --- diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 2acf39a699..ec8595259e 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -9232,8 +9232,11 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, uint8_t use_json, /* BGP Version. */ vty_out(vty, " BGP version 4"); - vty_out(vty, ", remote router ID %s\n", + vty_out(vty, ", remote router ID %s", inet_ntop(AF_INET, &p->remote_id, buf1, sizeof(buf1))); + vty_out(vty, ", local router ID %s\n", + inet_ntop(AF_INET, &bgp->router_id, buf1, + sizeof(buf1))); /* Confederation */ if (CHECK_FLAG(bgp->config, BGP_CONFIG_CONFEDERATION)