]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Added local router-id to "show bgp neighbor"
authorAmeya Dharkar <adharkar@vmware.com>
Tue, 7 Aug 2018 22:25:47 +0000 (15:25 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Tue, 7 Aug 2018 22:25:47 +0000 (15:25 -0700)
Signed-off-by: Ameya Dharkar adharkar@vmware.com
bgpd/bgp_vty.c

index 2acf39a69961a95a9cfc9d0cc2942f1283be4e33..ec8595259e25f2507a54a9f7ff8d2efaeb158fab 100644 (file)
@@ -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)