From: Donatas Abraitis Date: Fri, 2 Dec 2022 08:36:32 +0000 (+0200) Subject: bgpd: Fix unaligned output of advertised-routes, bestpath-routes, etc. X-Git-Tag: base_8.5~190^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F12429%2Fhead;p=mirror%2Ffrr.git bgpd: Fix unaligned output of advertised-routes, bestpath-routes, etc. 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 --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 027cb20e41..4ade647cd0 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -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, " "); }