mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
Merge pull request #1619 from donaldsharp/bgp_debugging
bgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi
This commit is contained in:
commit
d29715c48b
@ -7119,8 +7119,11 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
|
|||||||
BGP_UPTIME_LEN, 0, NULL));
|
BGP_UPTIME_LEN, 0, NULL));
|
||||||
|
|
||||||
if (peer->status == Established)
|
if (peer->status == Established)
|
||||||
vty_out(vty, " %12ld",
|
if (peer->afc_recv[afi][pfx_rcd_safi])
|
||||||
peer->pcount[afi][pfx_rcd_safi]);
|
vty_out(vty, " %12ld",
|
||||||
|
peer->pcount[afi][pfx_rcd_safi]);
|
||||||
|
else
|
||||||
|
vty_out(vty, " NoNeg");
|
||||||
else {
|
else {
|
||||||
if (CHECK_FLAG(peer->flags, PEER_FLAG_SHUTDOWN))
|
if (CHECK_FLAG(peer->flags, PEER_FLAG_SHUTDOWN))
|
||||||
vty_out(vty, " Idle (Admin)");
|
vty_out(vty, " Idle (Admin)");
|
||||||
|
Loading…
Reference in New Issue
Block a user