xpl large-community-list

Function

The xpl large-community-list command creates a Large-Community set and displays the Large-Community set view.

The undo xpl large-community-list command deletes a specified Large-Community set.

By default, no Large-Community sets are configured.

Format

xpl large-community-list large-community-list-name

undo xpl large-community-list large-community-list-name

Parameters

Parameter Description Value
large-community-list-name

Specifies the name of a Large-Community set.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The string can contain letters, digits, underscores (_), hyphens (-), and dots (.). It must start with a letter or digit.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

A Large-Community set is a group of data related to the Large-Community attribute and can be used by route-filters to filter BGP routes. To create a Large-Community set and enter the Large-Community set view, run the xpl large-community-list command.

Follow-up Procedure

  1. In the Large-Community set view, configure elements in the format of aa:bb:cc (1:1:1 for example) for the Large-Community set and separate every two neighboring elements with a comma (,). Alternatively, configure elements in the format of regular regular-expression, which matches routes with the large-community attribute in the specified regular expression. An asterisk () can be used in an element to represent any digit; for example, an element can be set to 10:10:. For detailed description about regular expressions, see Configuration Guide – Basic Configuration.

    Regular expression processing is computing-intensive. When a large number of regular expressions are configured in an XPL policy to match a BGP route attribute and the length of the route attribute is long, the processing performance of the XPL policy deteriorates. To improve the processing performance of the routing policy, decrease the number of regular expressions or use a non-regular expression matching command.

    It is recommended that a maximum of 100 regular expressions be configured for each policy.
  2. In the Large-Community set view, run the end-list command to configure an end clause for the Large-Community set.

Precautions

A Large-Community set is only a group of data used as matching rules and does not have the permit or deny function. Therefore, a Large-Community set can be used to filter routes only after it is referenced by a route-filter.

To exit the Large-Community set view, run the abort command in the Large-Community set view.

Example

# Configure a Large-Community set named large-community1.
<HUAWEI> system-view
[~HUAWEI] xpl large-community-list large-community1
[~HUAWEI-xpl-large-community] 1:1:1,
[~HUAWEI-xpl-large-community] 2:1:1,
[~HUAWEI-xpl-large-community] 3:1:1
[~HUAWEI-xpl-large-community] end-list
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >