diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-04-09 09:30:38 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-04-12 09:43:54 +0200 |
commit | 244e6cab3f9fc167530f6e827bca5f33ae30cd5b (patch) | |
tree | bbfa625474d19d52e600cf970bc34b8e005056c6 | |
parent | bgpd: Filter BGP routes by prefix version (diff) | |
download | frr-244e6cab3f9fc167530f6e827bca5f33ae30cd5b.tar.xz frr-244e6cab3f9fc167530f6e827bca5f33ae30cd5b.zip |
doc: Add `show [ip] bgp version <version>` command
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
-rw-r--r-- | doc/user/bgp.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index 7d8d84d6a..adb87d386 100644 --- a/doc/user/bgp.rst +++ b/doc/user/bgp.rst @@ -3234,6 +3234,26 @@ structure is extended with :clicmd:`show bgp [afi] [safi]`. Display flap statistics of routes of the selected afi and safi selected. +.. clicmd:: show bgp [afi] [safi] [all] version (1-4294967295) [wide|json] + + Display prefixes with matching version numbers. The version number and + above having prefixes will be listed here. + + It helps to identify which prefixes were installed at some point. + + Here is an example of how to check what prefixes were installed starting + with an arbitrary version:: + + .. code-block:: frr + + ~# vtysh -c 'show bgp ipv4 unicast json' | jq '.tableVersion' + 9 + ~# vtysh -c 'show ip bgp version 9 json' | jq -r '.routes | keys[]' + 192.168.3.0/24 + ~# vtysh -c 'show ip bgp version 8 json' | jq -r '.routes | keys[]' + 192.168.2.0/24 + 192.168.3.0/24 + .. clicmd:: show bgp [afi] [safi] statistics Display statistics of routes of the selected afi and safi. |