summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-05-11 16:11:46 +0300
committerGitHub <noreply@github.com>2021-05-11 16:11:46 +0300
commit449e54fd12372273dcac68781eb77c1297aeb2ba (patch)
tree20ef420240625ffd9a872bfd727033ca6d018b6a
parent825f41b4860bcfea12aaf06767c9bbc68234e4d4 (diff)
parent6a89dd1ee66a7b45d84c23b7ffc3e8f825bbba5e (diff)
Merge pull request #8652 from ton31337/fix/doc_bgp_alias
doc: Move BGP community alias under a separate section
-rw-r--r--doc/user/bgp.rst50
1 files changed, 32 insertions, 18 deletions
diff --git a/doc/user/bgp.rst b/doc/user/bgp.rst
index 14b2389ca9..f6aa5d1ca0 100644
--- a/doc/user/bgp.rst
+++ b/doc/user/bgp.rst
@@ -2022,24 +2022,6 @@ expanded
attribute in BGP updates. The expanded community is only used to filter,
not `set` actions.
-.. clicmd:: bgp community alias NAME ALIAS
-
- This command creates an alias name for a community that will be used
- later in various CLI outputs in a human-readable format.
-
- .. code-block:: frr
-
- ~# show ip bgp 172.16.16.1/32
- BGP routing table entry for 172.16.16.1/32, version 21
- Paths: (2 available, best #2, table default)
- Advertised to non peer-group peers:
- 65030
- 192.168.0.2 from 192.168.0.2 (172.16.16.1)
- Origin incomplete, metric 0, valid, external, best (Neighbor IP)
- Community: 65001:12 65001:13 community-1 65001:65534
- Large Community: lcommunity-1 65001:123:2
- Last update: Fri Apr 16 12:51:27 2021
-
.. deprecated:: 5.0
It is recommended to use the more explicit versions of this command.
@@ -2097,6 +2079,38 @@ is called as named community lists.
This command defines a new expanded community list. The argument to
(100-199) defines the list identifier.
+.. _bgp-community-alias:
+
+Community alias
+^^^^^^^^^^^^^^^
+
+BGP community aliases are useful to quickly identify what communities are set
+for a specific prefix in a human-readable format. Especially handy for a huge
+amount of communities. Accurately defined aliases can help you faster spot
+things on the wire.
+
+.. clicmd:: bgp community alias NAME ALIAS
+
+ This command creates an alias name for a community that will be used
+ later in various CLI outputs in a human-readable format.
+
+ .. code-block:: frr
+
+ ~# vtysh -c 'show run' | grep 'bgp community alias'
+ bgp community alias 65001:14 community-1
+ bgp community alias 65001:123:1 lcommunity-1
+
+ ~# vtysh -c 'show ip bgp 172.16.16.1/32'
+ BGP routing table entry for 172.16.16.1/32, version 21
+ Paths: (2 available, best #2, table default)
+ Advertised to non peer-group peers:
+ 65030
+ 192.168.0.2 from 192.168.0.2 (172.16.16.1)
+ Origin incomplete, metric 0, valid, external, best (Neighbor IP)
+ Community: 65001:12 65001:13 community-1 65001:65534
+ Large Community: lcommunity-1 65001:123:2
+ Last update: Fri Apr 16 12:51:27 2021
+
.. _bgp-using-communities-in-route-map:
Using Communities in Route Maps