traffic-policy command applies a traffic policy to an SSID profile.
undo traffic-policy command deletes a traffic policy from an SSID profile.
By default, no traffic policy is applied to an SSID profile.
traffic-policy policy-name { inbound | outbound }
undo traffic-policy [ policy-name ] { inbound | outbound }
Only the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H support this command.
Parameter |
Description |
Value |
---|---|---|
policy-name |
Specifies the name of a user-defined traffic policy. |
The value must be the name of an existing traffic policy. |
inbound |
Applies a traffic policy to the inbound direction of an SSID profile. |
- |
outbound |
Applies a traffic policy to the outbound direction of an SSID profile. |
- |
Usage Scenario
Packets are classified based on Layer 2 information, Layer 3 information, or ACLs. To provide differentiated services for service flows, bind a traffic classifier and a traffic behavior to a traffic policy and apply the traffic policy. You can use the traffic-policy command to apply a traffic policy to an SSID profile.
Prerequisites
A traffic policy has been created using the traffic policy command, and traffic classifiers and traffic behaviors have been bound to the traffic policy.
Precautions
Only one traffic policy can be applied to each direction in an SSID profile, but a traffic policy can be applied to different directions in different SSID profiles.
After a traffic policy is applied to an SSID profile, you cannot directly delete the traffic policy, the traffic classifier and traffic behavior bound to the traffic policy. In addition, you cannot modify the matching order of the rules in the traffic policy. However, you can modify the relationship between matching rules in the traffic classifier, matching rules in the traffic classifier, priority of the traffic classifier, traffic action in the traffic behavior, and binding between the traffic classifier and the traffic behavior.
If the traffic policy that you want to delete has been applied to an SSID profile, run the undo traffic-policy command to unbind the traffic policy from the SSID profile. Then run the undo traffic policy command in the system view to delete the traffic policy.
Run the undo traffic-policy { inbound | outbound } command without policy-name specified to delete the traffic policy that has been applied to an SSID profile and has the following names: i, in, inb, inbo, inbou, inboun, inbound, o, ou, out, outb, outbo, outbou, outboun, and outbound.
# Create a traffic policy p1, bind the created traffic classifier c1 and traffic behavior b1 to the traffic policy, and apply the traffic policy to the inbound direction in the SSID profile named test.
<HUAWEI> system-view [HUAWEI] traffic policy p1 [HUAWEI-trafficpolicy-p1] classifier c1 behavior b1 [HUAWEI-trafficpolicy-p1] quit [HUAWEI] wlan [HUAWEI-wlan-view] ssid-profile name test [HUAWEI-wlan-ssid-prof-test] traffic-policy p1 inbound