The apply behavior command configures a QoS traffic behavior for routes.
The undo apply behavior command restores the default setting.
By default, no QoS traffic behavior is configured.
Parameter | Description | Value |
---|---|---|
behavior-name |
Specifies the name of a QoS traffic behavior. |
The value is a string of 1 to 31 case-sensitive characters without spaces, and must start with a letter. |
Usage Scenario
When a large and complex network is deployed, traffic flows of different types, such as voice, video, and data, need to be managed separately, with different bandwidth and delays assigned to these traffic flows. In this case, class-based QoS needs to be configured and complex traffic classification needs to be performed. The apply behavior command is used to associate filtered route with a specific traffic behavior.
Prerequisites
Before running the apply behavior behavior-name command, you need to create a traffic behavior.
Meanwhile, certain matching conditions need to be configured to classify routes, such as the AS-Path lost, community attribute list, address prefix list, and route cost.
Precautions
The apply behavior command is mutually exclusive with the apply ip-precedence command and the apply qos-local-id command, and only one of these commands can be configured on a node of a routing policy. For example, if the apply behavior command is configured in the view created by the route-policy test permit node 10 command, configuring the apply qos-local-id command replaces apply behavior command.
# Configure the behavior named example in the system view, and then apply this QoS traffic behavior in the route-policy view.
<HUAWEI> system-view
[HUAWEI] traffic behavior example
[HUAWEI-behavior-example] quit
[HUAWEI] route-policy test permit node 10
[HUAWEI-route-policy] apply behavior example