summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2018-08-08 06:37:51 -0400
committerGitHub <noreply@github.com>2018-08-08 06:37:51 -0400
commit9e038257435bfcc170dbbf78f77ac250e3ef1b9c (patch)
tree85284e6cec22511650fae68cc06968bd1cccbe79
parentf1f1903fb81611c522ff29dacf43d8c6d07c4285 (diff)
parent0e38aeb41ed34c79333738be7b574d6a13e11637 (diff)
Merge pull request #2800 from adharkar/frr-bgp_cli
bgpd: Added local router-id to "show bgp neighbor"
-rw-r--r--bgpd/bgp_vty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 1ddc60c20e..e3efbbf252 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -9239,8 +9239,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)