The match-type dscp command sets the type of an SRv6 mapping policy to DSCP.
The undo match-type dscp command deletes the type of an SRv6 mapping policy.
The match-type service-class command sets the type of an SRv6 mapping policy to service class.
The undo match-type service-class command deletes the type of an SRv6 mapping policy.
By default, the type of an SRv6 mapping policy is not set.
Usage Scenario
To set the policy type to DSCP, run the match-type dscp command. Then, run the index dscp { ipv4 | ipv6 } match and { ipv4 | ipv6 } default match commands to specify the mapping between SRv6 TE Policies or native IP links and DSCP values.
To set the policy type to service class, run the match-type service-class command. Then, run the index service-classmatch and default match commands to specify the mapping between SRv6 TE Policies or native IP links and service classes.Precautions
When the match type configuration is deleted, the related mapping configuration is also deleted.
When the match type is switched, the old mapping configuration is deleted.<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6-mapping-policy-MapPolicy] mapping-policy MapPolicy color 100 [*HUAWEI-segment-routing-ipv6-mapping-policy-MapPolicy] match-type dscp
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6-mapping-policy-MapPolicy] mapping-policy MapPolicy color 100 [*HUAWEI-segment-routing-ipv6-mapping-policy-MapPolicy] match-type service-class