From 244e6cab3f9fc167530f6e827bca5f33ae30cd5b Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Fri, 9 Apr 2021 10:30:38 +0300 Subject: [PATCH] doc: Add `show [ip] bgp version ` command Signed-off-by: Donatas Abraitis --- doc/user/bgp.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index 7d8d84d6a0..adb87d386d 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. -- 2.39.5