mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 04:40:21 +00:00
bgpd: Fix 'show ip bgp summary' variable output being wrong
The first time through calling 'show ip bgp summary' we were always calculating the variable hostname field size incorrectly. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
26acb92b84
commit
c9d5bd27c1
@ -10317,6 +10317,10 @@ bgp_show_summary (struct vty *vty, struct bgp *bgp, int afi, int safi,
|
||||
|
||||
if (peer->afc[afi][safi])
|
||||
{
|
||||
memset(dn_flag, '\0', sizeof(dn_flag));
|
||||
if (peer_dynamic_neighbor(peer))
|
||||
dn_flag[0] = '*';
|
||||
|
||||
if (peer->hostname && bgp_flag_check(bgp, BGP_FLAG_SHOW_HOSTNAME))
|
||||
sprintf(neighbor_buf, "%s%s(%s) ", dn_flag, peer->hostname, peer->host);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user