]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: Update BGP community-list handling example 12440/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 4 Dec 2022 20:28:26 +0000 (22:28 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 4 Dec 2022 20:28:26 +0000 (22:28 +0200)
Documentation ways that community-list works as OR when multiple community
values specified per entry, but it's wrong. It must be AND, let's fix this.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
doc/user/bgp.rst

index 98338ebf3205795c53e9b11fca27f5fb33f49176..830d3c5762a336b6b7eb6d0ed50d4b8d6f0e0b85 100644 (file)
@@ -2418,9 +2418,9 @@ in AS 7675, the announced routes' local preference value will be set to 80.
 
 The following configuration is an example of BGP route filtering using
 communities attribute. This configuration only permit BGP routes which has BGP
-communities value ``0:80`` or ``0:90``. The network operator can set special
-internal communities value at BGP border router, then limit the BGP route
-announcements into the internal network.
+communities value (``0:80`` and ``0:90``) or ``0:100``. The network operator can
+set special internal communities value at BGP border router, then limit the
+BGP route announcements into the internal network.
 
 .. code-block:: frr
 
@@ -2431,6 +2431,7 @@ announcements into the internal network.
     exit-address-family
    !
    bgp community-list 1 permit 0:80 0:90
+   bgp community-list 1 permit 0:100
    !
    route-map RMAP permit in
     match community 1