diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-11 17:02:19 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-11 17:05:02 +0100 |
commit | e91c24c8c2f4892f08e9676812ec6309f03e3e06 (patch) | |
tree | 0ee484dffdfae6cab3b97da1c75860136cdec304 /bgpd/bgp_vty.c | |
parent | Merge pull request #5744 from ton31337/fix/thread-as-withdraw_attributes (diff) | |
download | frr-e91c24c8c2f4892f08e9676812ec6309f03e3e06.tar.xz frr-e91c24c8c2f4892f08e9676812ec6309f03e3e06.zip |
bgpd: Format properly `show bgp summary failed`
Before:
```
Neighbor EstdCnt DropCnt ResetTime Reason
192.168.0.1 0 0 never Waiting for peer OPEN
```
After:
```
Neighbor EstdCnt DropCnt ResetTime Reason
192.168.0.1 0 0 never Waiting for peer OPEN
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_vty.c')
-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 e55548f71..1389f0585 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)); |