The approve command further filters the routes that meet the matching rules of the current if condition branch against the next if condition branch.
By default, no action is set for the routes that meet the matching rules of the current if condition branch.
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 further filter the routes that meet the matching rules of the current if condition branch against the next if condition branch, run the approve command; if the current if condition branch is the last one, these routes match the route-filter.
<HUAWEI> system [~HUAWEI] xpl route-filter r1 [~HUAWEI-xpl-filter] if local-preference GE 100 then [~HUAWEI-xpl-filter-if] approve [~HUAWEI-xpl-filter-if] endif [~HUAWEI-xpl-filter] end-filter