]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix unaligned output of advertised-routes, bestpath-routes, etc. 12429/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 2 Dec 2022 08:36:32 +0000 (10:36 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 2 Dec 2022 08:39:20 +0000 (10:39 +0200)
This commit eaeba5e868fccba4b48145bc953774faf01a121a changed a bit a formatting,
but this part was missed, let's fix it.

An example before the patch:

```
r3# sh ip bgp ipv4 labeled-unicast neighbors 192.168.34.4 advertised-routes
BGP table version is 3, local router ID is 192.168.34.3, vrf id 0
Default local pref 100, local AS 65003
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

    Network          Next Hop            Metric LocPrf Weight Path
*> 10.0.0.1/32      0.0.0.0                                0 65001 ?

Total number of prefixes 1
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_route.c

index 027cb20e418d42e794f58146dc85adce4f3b6e51..4ade647cd08582a2b0e21b0a0b67c151eb528536 100644 (file)
@@ -9613,7 +9613,7 @@ void route_vty_out_tmp(struct vty *vty, struct bgp_dest *dest,
                json_status = json_object_new_object();
                json_net = json_object_new_object();
        } else {
-               vty_out(vty, "*");
+               vty_out(vty, " *");
                vty_out(vty, ">");
                vty_out(vty, " ");
        }