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.
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. |
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] mapping-policy MapPoliy1 color 100
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] undo mapping-policy MapPolicy1 color 100