The application command sets the application type of packets as a matching condition of a PBR rule.
The undo application command deletes the configuration.
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> | software software-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> | software software-name &<1-6> }
| 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 &<1-6> | 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. |
| software software-name &<1-6> | Specifies the software name referenced by the PBR rule. |
The value must be an existing software name. You can add or delete a maximum of six software programs at a time. |
| all | Deletes all applications to which a PBR rule applies. |
- |
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.
# 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
# Set the application software to eSpace in PBR rule test1.
<sysname> system-view [sysname] policy-based-route [sysname-policy-pbr] rule name test1 [sysname-policy-pbr-rule-test1] application software espace