mapping-policy (Segment routing IPv6 view)

Function

The mapping-policy command creates an SRv6 mapping policy with a specified name, color and displays the SRv6 mapping policy view.

The undo mapping-policy command deletes an SRv6 mapping policy.

By default, no SRv6 mapping policy is created.

Format

mapping-policy name-value [ color color-value ]

undo mapping-policy name-value [ color color-value ]

Parameters

Parameter Description Value
name-value

Specifies the name of an SRv6 mapping policy.

The value is a string of 1 to 31 case-sensitive characters. When double quotation marks are used around the string, spaces are allowed in the string.

color color-value

Specifies the color value of an SRv6 mapping policy.

The value is an integer that ranges from 0 to 4294967295.

Views

Segment routing IPv6 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
teflowgroup write

Usage Guidelines

Usage Scenario

The mapping-policy command creates an SRv6 mapping policy with a specified name, color and displays the SRv6 mapping policy view.

Example

# Configure an SRv6 mapping policy.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] mapping-policy MapPoliy1 color 100
# Delete an SRv6 mapping policy configuration.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] undo mapping-policy MapPolicy1 color 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >