From fccd7e53db0f434111115a1a8bd96d008abc0662 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 22 Feb 2023 22:22:28 +0200 Subject: [PATCH] bgpd: Align `show bgp ...` output with the header for wide option Before: ``` r1# sh ip bgp wide BGP table version is 1, local router ID is 192.168.2.1, vrf id 0 Default local pref 100, local AS 65001 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 * 172.16.255.254/32 192.168.2.2 0 0 (65003) i *> 192.168.1.2 0 0 (65002) i Displayed 1 routes and 2 total paths r1# ``` After: ``` r1# sh ip bgp wide BGP table version is 1, local router ID is 192.168.2.1, vrf id 0 Default local pref 100, local AS 65001 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 * 172.16.255.254/32 192.168.2.2 0 0 (65003) i *> 192.168.1.2 0 0 (65002) i Displayed 1 routes and 2 total paths r1# ``` Signed-off-by: Donatas Abraitis --- bgpd/bgp_route.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_route.h b/bgpd/bgp_route.h index d0cf7e5d77..66cc62ab09 100644 --- a/bgpd/bgp_route.h +++ b/bgpd/bgp_route.h @@ -67,7 +67,7 @@ enum bgp_show_adj_route_type { #define BGP_SHOW_RPKI_HEADER \ "RPKI validation codes: V valid, I invalid, N Not found\n\n" #define BGP_SHOW_HEADER " Network Next Hop Metric LocPrf Weight Path\n" -#define BGP_SHOW_HEADER_WIDE " Network Next Hop Metric LocPrf Weight Path\n" +#define BGP_SHOW_HEADER_WIDE " Network Next Hop Metric LocPrf Weight Path\n" /* Maximum number of labels we can process or send with a prefix. We * really do only 1 for MPLS (BGP-LU) but we can do 2 for EVPN-VxLAN.