Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed

bgpd: Format properly `show bgp summary failed`
This commit is contained in:
Quentin Young 2020-02-11 14:45:40 -05:00 committed by GitHub
commit f94ed830df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8612,7 +8612,7 @@ static void bgp_show_peer_reset(struct vty * vty, struct peer *peer,
: "received",
code_str, subcode_str);
} else {
vty_out(vty, " %s\n",
vty_out(vty, " %s\n",
peer_down_str[(int)peer->last_reset]);
}
}
@ -8668,7 +8668,7 @@ static void bgp_show_failed_summary(struct vty *vty, struct bgp *bgp,
if (len < max_neighbor_width)
vty_out(vty, "%*s", max_neighbor_width - len,
" ");
vty_out(vty, "%7d %7d %8s", peer->established,
vty_out(vty, "%7d %7d %9s", peer->established,
peer->dropped,
peer_uptime(peer->uptime, timebuf,
BGP_UPTIME_LEN, 0, NULL));