Merge pull request #2800 from adharkar/frr-bgp_cli

bgpd: Added local router-id to "show bgp neighbor"
This commit is contained in:
Russ White 2018-08-08 06:37:51 -04:00 committed by GitHub
commit 9e03825743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9239,8 +9239,11 @@ static void bgp_show_peer(struct vty *vty, struct peer *p, uint8_t use_json,
/* BGP Version. */ /* BGP Version. */
vty_out(vty, " BGP version 4"); 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))); 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 */ /* Confederation */
if (CHECK_FLAG(bgp->config, BGP_CONFIG_CONFEDERATION) if (CHECK_FLAG(bgp->config, BGP_CONFIG_CONFEDERATION)