The if-match extcommunity-list encapsulation command configures a matching rule based on an encapsulation extended community filter.
The undo if-match extcommunity-list encapsulation command cancels the configuration.
By default, no matching rule based on an encapsulation extended community filter is configured.
Parameter | Description | Value |
---|---|---|
encapsulation-name |
Specifies the name of an encapsulation extended community filter. |
The value is a string of 1 to 51 case-sensitive characters. It cannot be comprised of only digits. If spaces are used, the string must start and end with double quotation marks ("). |
Usage Scenario
Extended community attributes help flexibly control a route-policy. To configure a matching rule based on an encapsulation extended community filter, run the if-match extcommunity-list encapsulation command.
Prerequisites
An encapsulation extended community filter has been configured using the ip extcommunity-list encapsulation command.
<HUAWEI> system-view [~HUAWEI] ip extcommunity-list encapsulation basic aaa index 10 permit 0:1 0:2 0:3 [*HUAWEI] route-policy policy permit node 10 [*HUAWEI-route-policy] if-match extcommunity-list encapsulation aaa