The traffic-policy ac-mode command applies an AC-side traffic policy to a VSI.
The undo traffic-policy ac-mode command deletes an AC-side traffic policy from a VSI.
By default, no traffic policy is applied in the VSI view.
Parameter | Description | Value |
---|---|---|
policy-name |
Specifies the name of a traffic policy. |
The value is a string of 1 to 127 case-sensitive characters. |
inbound |
Applies a traffic policy to incoming traffic of a VSI. |
- |
outbound |
Applies a traffic policy to outgoing traffic of a VSI. |
- |
link-layer |
Indicates that an interface matches packets against rules and performs actions based on Layer 2 information about packets. |
- |
all-layer |
Indicates that an interface matches packets against rules and performs actions based on Layer 2 information about packets when an AC-side traffic policy is applied to its VSI. If Layer 2 information about packets fails to match rules, the interface matches the packets against rules and performs corresponding actions based on Layer 3 information about the packets. |
- |
Usage Scenario
When a VSI is bound to multiple AC interfaces, multi-field (MF) classification needs to be configured on multiple AC interfaces if required. To reduce workload, run the traffic-policy ac-mode command in the VSI view to deliver MF classification configuration to all AC interfaces to which a VSI is bound.
Prerequisites
A traffic policy has been configured.
Precautions
VSI ACLs support only traffic actions of permit, deny, car, broadcast-suppression , multicast-suppression, and unknown-unicast-suppression. If any other traffic action is configured in a VSI ACL, a message is displayed, indicating that the traffic policy cannot be applied to the VSI.
When a VSI is bound to an AC interface that is a global VE interface, VLANIF interface, or dot1q termination sub-interface of a Layer 2 VE interface, this command cannot be configured.