template (SRv6 candidate path view)

Function

The template command configures an SR Policy attribute template to be referenced by a candidate path.

The undo template command deletes the SR Policy attribute template referenced by a candidate path.

By default, a candidate path does not reference any SR Policy attribute template.

Format

template template-value

undo template template-value

Parameters

Parameter Description Value
template-value

Specifies the ID of an SR Policy attribute template.

The value is an integer ranging from 1 to 4294967269.

Views

SRv6 candidate path view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

Each candidate path can reference an SR Policy attribute template. After a candidate path is preferentially selected, the attributes defined in the SR Policy attribute template referenced by the candidate path will be applied.

Example

# Configure a candidate path to reference an SR Policy attribute template.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] srv6-te policy p2 endpoint 2001:DB8:1::10 color 100
[*HUAWEI-segment-routing-ipv6-policy-p2] candidate-path preference 200
[*HUAWEI-segment-routing-ipv6-policy-p2-path] template 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >