traffic-policy

Use traffic-policy to nest a policy in a traffic behavior.

Use undo traffic-policy to remove child policies from a traffic behavior.

Syntax

traffic-policy policy-name

undo traffic-policy

Default

No policy is nested in a traffic behavior.

Views

Traffic behavior view

Predefined user roles

network-admin

Parameters

policy-name: Specifies a policy by its name, a string of 1 to 31 characters. If the policy does not exist, it is automatically created.

Usage guidelines

After you nest a child policy in a behavior of a parent policy, the system performs the following operations:

When you nest QoS policies, follow these guidelines:

Examples

# Nest child policy child in traffic behavior database of the parent policy.

<Sysname> system-view
[Sysname] traffic behavior database
[Sysname-behavior-database] traffic-policy child

Related commands

traffic behavior

traffic classifier