]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: Add `show [ip] bgp version <version>` command 8431/head
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 9 Apr 2021 07:30:38 +0000 (10:30 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 12 Apr 2021 07:43:54 +0000 (10:43 +0300)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
doc/user/bgp.rst

index 7d8d84d6a0f013adec79e850f6280fded07102f0..adb87d386d02d733ced5fd34248a796e9402eaa4 100644 (file)
@@ -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.