The srv6-te policy command creates an SRv6 TE Policy with a specified name, endpoint, and color and displays the SRv6 TE Policy view.
The undo srv6-te policy command deletes an SRv6 TE Policy.
By default, no SRv6 TE policy is created.
Parameter | Description | Value |
---|---|---|
name-value |
Specifies the name of an SRv6 TE 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. |
endpoint endpoint-ip |
Specifies the endpoint of an SRv6 TE Policy. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
color color-value |
Specifies the color value of an SRv6 TE Policy. |
The value is an integer that ranges from 0 to 4294967295. |
<HUAWEI> system-view [~HUAWEI] segment-routing ipv6 [*HUAWEI-segment-routing-ipv6] locator test1 ipv6-prefix 100::1 64 static 32 [*HUAWEI-segment-routing-ipv6-locator] quit [*HUAWEI-segment-routing-ipv6] srv6-te-policy locator test1 [*HUAWEI-segment-routing-ipv6] srv6-te policy policy1 endpoint 2001:db8:2::2 color 102 [*HUAWEI-segment-routing-ipv6-policy-policy1]