endif

Function

The endif command concludes the configuration of an if condition branch.

By default, the endif command is not run.

Format

endif

Parameters

None

Views

Route-filter policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

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. Route-filters use if condition branches to filter routes. To conclude the configuration of an if condition branch, run the endif command.

Prerequisites

A matching rule has been configured for the route-filter using the if command.

Example

# Configure a route-filter named r1.
<HUAWEI> system
[~HUAWEI] xpl route-filter r1
[~HUAWEI-xpl-filter] if ip route-destination in { 1.1.1.1 32 } then
[~HUAWEI-xpl-filter-if] apply preference 200
[~HUAWEI-xpl-filter-if] endif
[~HUAWEI-xpl-filter] end-filter
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >