From: Donatas Abraitis Date: Tue, 20 Dec 2022 10:15:32 +0000 (+0200) Subject: doc: Add new command `show bgp detail-routes` X-Git-Tag: base_8.5~108^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=711835d9869d200fb6fba398492877f28c5817fa;p=mirror%2Ffrr.git doc: Add new command `show bgp detail-routes` ``` donatas-pc# show bgp all detail-routes For address family: IPv4 Unicast BGP table version is 11, local router ID is 192.168.10.17, vrf id 0 Default local pref 100, local AS 65002 BGP routing table entry for 10.0.2.0/24, version 1 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.124 65001 192.168.10.124 from 192.168.10.124 (200.200.200.202) Origin incomplete, metric 0, valid, external, otc 65001, best (First path received) Last update: Tue Dec 20 12:11:52 2022 BGP routing table entry for 10.10.100.0/24, version 2 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.124 65001 192.168.10.124 from 192.168.10.124 (200.200.200.202) Origin IGP, metric 0, valid, external, otc 65001, best (First path received) Last update: Tue Dec 20 12:11:52 2022 BGP routing table entry for 172.16.31.1/32, version 3 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.124 65001 192.168.10.124 from 192.168.10.124 (200.200.200.202) Origin incomplete, metric 0, valid, external, otc 65001, best (First path received) Last update: Tue Dec 20 12:11:52 2022 ``` Signed-off-by: Donatas Abraitis --- diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index 0b8e967264..f751eb3a75 100644 --- a/doc/user/bgp.rst +++ b/doc/user/bgp.rst @@ -4325,6 +4325,17 @@ structure is extended with :clicmd:`show bgp [afi] [safi]`. If ``json`` option is specified, output is displayed in JSON format. +.. clicmd:: show [ip] bgp [afi] [safi] [all] detail-routes + + Display the detailed version of all routes. The same format as using + ``show [ip] bgp [afi] [safi] PREFIX``, but for the whole BGP table. + + If ``all`` option is specified, ``ip`` keyword is ignored and, + routes displayed for all AFIs and SAFIs. + + If ``afi`` is specified, with ``all`` option, routes will be displayed for + each SAFI in the selected AFI. + .. _bgp-display-routes-by-community: Displaying Routes by Community Attribute