Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Defining a Routing Policy Based on the Number of BGP Communities

    Create a policy that accepts BGP routes based on the number of BGP communities. In this example, routes can contain two, three, or four communities to be considered a match. For example, if a route contains three communities, it is considered a match and is accepted. If a route contains one community, it is not considered a match and is rejected.

    Note: The community-count attribute only works with standard communities. It does not work with extended communities.

    [edit]
    policy-options {policy-statement import-bgp {term community {from {community-count 2 orhigher;community-count 4 orlower;}then {accept;}}}}

    Published: 2013-02-10