diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-01-16 16:50:14 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-01-17 22:24:35 +0200 | 
| commit | 1d6925e02f821fbc27f7ba217ae011dc3c6ba01e (patch) | |
| tree | cb97c4cb9ec63a712e2f3712b7c7d2c5b57c882e /doc | |
| parent | acc3cfe3349696be4d06137328c48e4ae97adc4a (diff) | |
bgpd: Show internal data for BGP routes
Sometimes it's very useful to compare pointers from the gdb (and/or from the
logs) or just do some quick adhoc analysis.
```
donatas# sh ip bgp 1.1.1.0/24 internal
BGP routing table entry for 1.1.1.0/24, version 0
Paths: (1 available, no best path)
  Not advertised to any peer
  65002
    127.0.0.1 (inaccessible, import-check enabled) from 127.0.0.1 (127.0.0.2)
      Origin IGP, invalid, external
      Last update: Thu Jan 16 16:49:53 2025
      net: 0x63f3e6fc2ea0, path: 0x63f3e6fc2f50, pathext: 0x63f3e6faed00, attr: 0x63f3e6e8c550
      flags net: 0x0, path: 0x1024, attr: 0x7
donatas#
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/user/bgp.rst | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index d07bb65035..3bf21a6ef5 100644 --- a/doc/user/bgp.rst +++ b/doc/user/bgp.rst @@ -2932,7 +2932,7 @@ BGP Extended Communities in Route Map  ``CO:COLOR``     This is a format to define colors value. ``CO`` part is always 00 (default), -   it can be used to support the requirements of Color-Only steering when using  +   it can be used to support the requirements of Color-Only steering when using     a Null Endpoint in the SR-TE Policy as specified in Section 8.8 of [RFC9256].     The below shows in detail what the different combinations of ``CO`` bits can     match on to for the purpose of determining what type of SR-TE Policy Tunnel @@ -4630,7 +4630,7 @@ incoming/outgoing directions.     If ``json`` option is specified, output is displayed in JSON format. -.. clicmd:: show [ip] bgp [afi] [safi] [all] detail-routes +.. clicmd:: show [ip] bgp [afi] [safi] [all] detail-routes [internal]     Display the detailed version of all routes. The same format as using     ``show [ip] bgp [afi] [safi] PREFIX``, but for the whole BGP table. @@ -4638,6 +4638,9 @@ incoming/outgoing directions.     If ``all`` option is specified, ``ip`` keyword is ignored and,     routes displayed for all AFIs and SAFIs. +   ``internal`` option is used to display internal data additionally. JSON +   output is not supported with this option. +     If ``afi`` is specified, with ``all`` option, routes will be displayed for     each SAFI in the selected AFI.  | 
