sr-te policy

Function

The sr-te policy command creates an SR-MPLS TE Policy and displays the SR-MPLS TE Policy view.

The undo sr-te policy command deletes an SR-MPLS TE Policy.

By default, no SR-MPLS TE Policy is created.

Format

sr-te policy policy-name [ endpoint ipv4-address color color-value ]

undo sr-te policy policy-name [ endpoint ipv4-address color color-value ]

Parameters

Parameter Description Value
policy-name

Specifies the name of an SR-MPLS 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 ipv4-address

Specifies the endpoint of an SR-MPLS TE Policy.

The value is in dotted decimal notation.

color color-value

Specifies the color value of an SR-MPLS TE Policy.

The value is an integer ranging from 0 to 4294967295.

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

SR-MPLS TE Policies are used to direct traffic to traverse an SR-MPLS TE network. Each SR-MPLS TE Policy can have multiple candidate paths with different preferences. You can specify one of the paths to direct traffic forwarding. The candidate path with the highest preference can be selected as an active path.

After the endpoint and color attributes are configured for an SR-MPLS TE Policy, traffic can be steered into the SR-MPLS TE Policy only when the next-hop address and color in the route of the traffic match the two attributes of the SR-MPLS TE Policy, respectively. Each policy can be configured with only one endpoint and color.

Example

# Create an SR-MPLS TE Policy named policy1.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] sr-te policy p1 endpoint 1.1.1.1 color 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >