candidate-path preference (SRv6 TE Policy view)

Function

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

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

By default, no candidate path is configured for the SRv6 TE Policy.

Format

candidate-path preference pref-value

undo candidate-path preference pref-value

Parameters

Parameter Description Value
pref-value

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

The value is an integer that ranges from 1 to 65535.

Views

SRv6 TE policy view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

One SRv6 TE Policy may contain multiple candidate paths with the preference attribute. The valid candidate path with the highest preference functions as the primary path of the SRv6 TE Policy.

Candidate paths can be delivered by the controller or statically configured. For the candidate paths of a manually configured SRv6 TE Policy, the preference parameter is mandatory and must be unique.

Example

# Configure a candidate path.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] srv6-te policy policy1 endpoint 1::1 color 100
[*HUAWEI-segment-routing-ipv6-policy-policy1] candidate-path preference 60000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >