diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-02-10 08:31:08 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-03-14 18:25:02 +0100 |
commit | 65c0fc12b64135f1816c6d62b53f5205b486799b (patch) | |
tree | 975c20fefedac04cebfd27c376227e8b79a343b8 /doc | |
parent | bgpd: Add JSON output for `show ip bgp peer-group` command (diff) | |
download | frr-65c0fc12b64135f1816c6d62b53f5205b486799b.tar.xz frr-65c0fc12b64135f1816c6d62b53f5205b486799b.zip |
doc: Add `show [ip] bgp peer-group [json]` command
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/user/bgp.rst | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst index da6c0d982..a12159597 100644 --- a/doc/user/bgp.rst +++ b/doc/user/bgp.rst @@ -1667,6 +1667,74 @@ and will share updates. should not be reflected back to the peer. This command only is only meaningful when there is a single peer defined in the peer-group. +.. clicmd:: show [ip] bgp peer-group [json] + + This command displays configured BGP peer-groups. + + .. code-block:: frr + + exit1-debian-9# show bgp peer-group + + BGP peer-group test1, remote AS 65001 + Peer-group type is external + Configured address-families: IPv4 Unicast; IPv6 Unicast; + 1 IPv4 listen range(s) + 192.168.100.0/24 + 2 IPv6 listen range(s) + 2001:db8:1::/64 + 2001:db8:2::/64 + Peer-group members: + 192.168.200.1 Active + 2001:db8::1 Active + + BGP peer-group test2 + Peer-group type is external + Configured address-families: IPv4 Unicast; + + Optional ``json`` parameter is used to display JSON output. + + .. code-block:: frr + + { + "test1":{ + "remoteAs":65001, + "type":"external", + "addressFamiliesConfigured":[ + "IPv4 Unicast", + "IPv6 Unicast" + ], + "dynamicRanges":{ + "IPv4":{ + "count":1, + "ranges":[ + "192.168.100.0\/24" + ] + }, + "IPv6":{ + "count":2, + "ranges":[ + "2001:db8:1::\/64", + "2001:db8:2::\/64" + ] + } + }, + "members":{ + "192.168.200.1":{ + "status":"Active" + }, + "2001:db8::1":{ + "status":"Active" + } + } + }, + "test2":{ + "type":"external", + "addressFamiliesConfigured":[ + "IPv4 Unicast" + ] + } + } + Capability Negotiation ^^^^^^^^^^^^^^^^^^^^^^ |