diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-11 18:02:19 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-11 18:05:02 +0200 |
| commit | e91c24c8c2f4892f08e9676812ec6309f03e3e06 (patch) | |
| tree | 0ee484dffdfae6cab3b97da1c75860136cdec304 | |
| parent | 35f50b930522e1133eaaefff7cd6791c67c5c7b0 (diff) | |
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>
| -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 e55548f713..1389f05857 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)); |
