traffic-policy ac-mode

Function

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.

Format

traffic-policy policy-name ac-mode { inbound | outbound } [ link-layer | all-layer ]

undo traffic-policy [ policy-name ] ac-mode { inbound | outbound } [ link-layer | all-layer ]

Parameters

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.

-

Views

VSI view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

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.

Example

# Apply the AC-side traffic policy named p1 to the VSI named vsi1.
<HUAWEI> system-view
[~HUAWEI] mpls
[~HUAWEI-mpls] quit
[~HUAWEI] mpls l2vpn
[~HUAWEI-l2vpn] quit
[~HUAWEI] vsi vsi1
[*HUAWEI-vis-vsi1] traffic-policy p1 ac-mode inbound link-layer
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >