A class-based traffic policy takes effect only after being applied to a BD/VPN.
Procedure
- Run system-view
The system view is displayed.
- Perform the following operations based on the type of the instance to which a traffic policy applies.
- To apply a traffic policy to a BD, perform the following operations:
- Run the bridge-domain bd-id command to enter the BD view.
- Run the traffic-policy policy-name { inbound [ link-layer ] | outbound } vxlan-mode command to apply the traffic policy to the BD.
- To apply a traffic policy to a VPN, perform the following operations:
- Run the ip [ dcn ] vpn-instance vpn-instance-name command to enter the VPN view.
- Run the traffic-policy policy-name { inbound [ link-layer ] | outbound } vxlan-mode command to apply the traffic policy to the VPN.
- Run commit
The configuration is committed.