From 0e38aeb41ed34c79333738be7b574d6a13e11637 Mon Sep 17 00:00:00 2001 From: Ameya Dharkar Date: Tue, 7 Aug 2018 15:25:47 -0700 Subject: [PATCH] bgpd: Added local router-id to "show bgp neighbor" Signed-off-by: Ameya Dharkar adharkar@vmware.com --- bgpd/bgp_vty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)