Merge pull request #9237 from donaldsharp/code_block

doc: Fix code-block display for example shell commands
This commit is contained in:
Donatas Abraitis 2021-07-30 10:18:14 +03:00 committed by GitHub
commit 6430836d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3541,15 +3541,15 @@ structure is extended with :clicmd:`show bgp [afi] [safi]`.
Here is an example of how to check what prefixes were installed starting Here is an example of how to check what prefixes were installed starting
with an arbitrary version:: with an arbitrary version::
.. code-block:: frr .. code-block:: shell
~# vtysh -c 'show bgp ipv4 unicast json' | jq '.tableVersion' # vtysh -c 'show bgp ipv4 unicast json' | jq '.tableVersion'
9 9
~# vtysh -c 'show ip bgp version 9 json' | jq -r '.routes | keys[]' # vtysh -c 'show ip bgp version 9 json' | jq -r '.routes | keys[]'
192.168.3.0/24 192.168.3.0/24
~# vtysh -c 'show ip bgp version 8 json' | jq -r '.routes | keys[]' # vtysh -c 'show ip bgp version 8 json' | jq -r '.routes | keys[]'
192.168.2.0/24 192.168.2.0/24
192.168.3.0/24 192.168.3.0/24
.. clicmd:: show bgp [afi] [safi] statistics .. clicmd:: show bgp [afi] [safi] statistics