The apply command sets a route attribute for the routes that meet matching rules.
By default, no route attribute is set for the routes that meet matching rules.
Parameter | Description | Value |
---|---|---|
action-clause |
Specifies an action clause. |
The value can be as follows:
|
Usage Scenario
Route-filters are used to filter routes based on sets or a single element and modify route attributes of the routes that meet matching rules. To set a route attribute for the routes that meet matching rules, run the apply command.
The parameters in action clauses can be specific values or global variables referenced using $+global variable name. The parameters in a route-filter with pre-defined variables can be those defined in this route-filter. Global variables cannot be referenced by the route attribute sets in the format of {element A, element B...}.<HUAWEI> system [~HUAWEI] xpl route-filter route-filter [~HUAWEI-xpl-filter] if med eq 100 then [~HUAWEI-xpl-filter-if] apply as-path '100 200 300' overwrite [~HUAWEI-xpl-filter-if] endif [~HUAWEI-xpl-filter] end-filter