summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2021-04-13 17:33:22 +0200
committerGitHub <noreply@github.com>2021-04-13 17:33:22 +0200
commita9d5dbe34b6a01f7545df86e7a7781195d130155 (patch)
tree897dbb633bb4d06aac0575fe7a8dba500b48ecdb /doc
parentMerge pull request #8426 from idryzhov/fix-interface-nb-stale-pointers (diff)
parentdoc: Add `show [ip] bgp version <version>` command (diff)
downloadfrr-a9d5dbe34b6a01f7545df86e7a7781195d130155.tar.xz
frr-a9d5dbe34b6a01f7545df86e7a7781195d130155.zip
Merge pull request #8431 from ton31337/feature/show_bgp_version_per_prefix
bgpd: Add `show bgp version <version>` command
Diffstat (limited to 'doc')
-rw-r--r--doc/user/bgp.rst20
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.