]> git.puffer.fish Git - matthieu/frr.git/commitdiff
doc: Move BGP community alias under a separate section
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 10 May 2021 06:18:54 +0000 (09:18 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 11 May 2021 11:06:05 +0000 (14:06 +0300)
There are more useful CLI commands comming, thus it's desired to have it's
own section.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
doc/user/bgp.rst

index 14b2389ca921d7e5c9c23389f3f1303aee32b805..f6aa5d1ca089b2ccd57af61adda8282010f18d4a 100644 (file)
@@ -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