srv6-te policy

Function

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.

Format

srv6-te policy name-value [ endpoint endpoint-ip color color-value ]

undo srv6-te policy name-value [ endpoint endpoint-ip color color-value ]

Parameters

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.

Views

Segment routing IPv6 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

After an SRv6 TE Policy is created, traffic can be steered into the policy based on the specified endpoint and color. Each policy can be configured with only one endpoint and color.

Example

# Configure SRv6 TE Policy.
<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]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >