application (PBR rule view)

Function

The application command sets the application type of packets as a matching condition of a PBR rule.

The undo application command deletes the configuration.

Format

application { any | app app-name &<1-6> | app-group app-group-name &<1-6> | category category-name [ sub-category sub-category-name &<1-6> ] | label label-name &<1-6> }

undo application { all | app app-name &<1-6> | app-group app-group-name &<1-6> | category category-name [ sub-category sub-category-name &<1-6> ] | label label-name &<1-6> }

Parameters

Parameter Description Value
any

Indicates all applications to which a PBR rule applies.

-

app app-name &<1-6>

Indicates the application to which a PBR rule applies.

The specified application must exist. You can add or delete a maximum of six applications at a time.

app-group app-group-name &<1-6>

Indicates the application group to which a PBR rule applies.

The specified application group must exist. You can add or delete a maximum of six application groups at a time.

category category-name

Indicates the category to which a PBR rule applies.

The specified category must exist.

sub-category sub-category-name &<1-6>

Indicates the sub-category to which a PBR rule applies.

The sub-category must exist. A maximum of six sub-categories can be added to or deleted from a PBR rule at a time.

label label-name

Indicates an application label to which a PBR rule applies.

The specified application label must already exist. You can add or delete a maximum of six application labels at a time.

all

Deletes all applications to which a PBR rule applies.

-

Views

PBR rule view

Default Level

2: Configuration level

Usage Guidelines

The application type of packets can be a matching condition of a PBR rule. Configure the applications or application groups before referencing them in the PBR rule.

Packets matching any of the specified applications match the PBR rule.

Example

# Set the application type to BT for PBR rule test.

<sysname> system-view
[sysname] policy-based-route
[sysname-policy-pbr] rule name test
[sysname-policy-pbr-rule-test] application app BT

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.