diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2020-02-11 14:45:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-11 14:45:40 -0500 |
| commit | f94ed830df98218447f00b97f856de811bfcc4a2 (patch) | |
| tree | 96ef03553786093f95f45a7bf9d6b82e4b813016 | |
| parent | 6adea38a50f1aded52ed6cb356405e69a229da34 (diff) | |
| parent | e91c24c8c2f4892f08e9676812ec6309f03e3e06 (diff) | |
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
bgpd: Format properly `show bgp summary failed`
| -rw-r--r-- | bgpd/bgp_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index 5e2c5d07db..f57f0036d7 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -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)); |
