candidate-path preference

Function

The candidate-path preference command configures a candidate path and its preference for an SR-MPLS TE Policy.

The undo candidate-path preference command deletes the candidate path and its preference configured for an SR-MPLS TE Policy.

By default, no candidate path is configured for an SR-MPLS TE Policy.

Format

candidate-path preference preference

undo candidate-path preference preference

Parameters

Parameter Description Value
preference

Specifies the preference value of a candidate path. The lager the value, the higher the preference.

The value is an integer ranging from 1 to 65535.

Views

SR-MPLS TE policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

To configure a candidate path and candidate path preference for an SR-MPLS TE Policy, run the candidate-path preference command. A maximum of 64 candidate paths can be configured for an SR-MPLS TE Policy. The candidate path with the highest preference takes effect. For the candidate paths of a manually configured SR-MPLS TE Policy, the preference parameter is mandatory and must be unique.

Example

# Configure a candidate path and its preference for an SR-MPLS TE Policy named policy1.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] sr-te policy policy1 endpoint 1.1.1.1 color 100
[*HUAWEI-segment-routing-te-policy-policy1] candidate-path preference 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >