]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Format properly `show bgp summary failed`
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 11 Feb 2020 16:02:19 +0000 (18:02 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 2 Mar 2020 20:10:08 +0000 (22:10 +0200)
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>
bgpd/bgp_vty.c

index 53d9732956db91225b345d255000df8b9aabb300..243822206cfb049d0ebac1d2cb7687bc39582c9a 100644 (file)
@@ -8063,7 +8063,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]);
                }
        }
@@ -8119,7 +8119,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));