match-type (SRv6 mapping policy view)

Function

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.

Format

match-type dscp

match-type service-class

undo match-type dscp

undo match-type service-class

Parameters

None

Views

SRv6 mapping policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
teflowgroup write

Usage Guidelines

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.

Example

# Set the type of an SRv6 mapping policy to 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 dscp
# Set the type of an SRv6 mapping policy to service class.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >