The if-match qos-local-id command configures a matching rule to classify traffic based on the QoS policy ID.
The undo if-match qos-local-id command deletes a matching rule that is configured based on the QoS policy ID.
By default, the matching rule to classify traffic based on the QoS policy ID is not configured in traffic classifier view.
Usage Scenario
You can set different qos-local-id values for routes based on the BGP route attributes. If traffic classification must be implemented based on qos-local-id values of routes, run the if-match qos-local-id command to configure a matching rule based on the QoS policy ID, configure a traffic behavior, and then configure and apply a traffic policy to the related interface.
Prerequisites
The mapping between BGP routes and QoS local route tags has been defined in a routing policy, and QPPB has been enabled on an inbound interface.
Configuration Impact
Traffic is classified according to the matched rule and corresponding traffic behaviors are implemented.
Follow-up Procedure
If the if-match qos-local-id <qos-local-id> command is configured, run the qppb-policy qos-local-id { destination | source } inbound command to apply a QPPB traffic policy to incoming traffic on the interface.
Precautions
When QPPB and MF classification are configured on both the inbound and outbound interfaces and CAR behaviors are configured, the lower rate limit takes effect.
When QPPB and MF classification are configured on both the inbound and outbound interfaces and non-CAR traffic behaviors are configured, the behavior configured in QPPB takes effect for incoming packets, and the behavior configured in MF classification takes effect for outgoing packets. When QPPB and MF classification are configured on both the inbound and outbound interfaces and different traffic behaviors are configured for QPPB and MF classification, both behaviors take effect.