segment-routing policy-template

Function

The segment-routing policy-template command creates an SR Policy attribute template.

The undo segment-routing policy-template command deletes an SR Policy attribute template.

By default, no SR Policy attribute template is created.

Format

segment-routing policy-template template-value

undo segment-routing policy-template template-value

Parameters

Parameter Description Value
template-value

Specifies the ID of an SR Policy template.

The value is an integer ranging from 1 to 4294967269.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

An SR Policy attribute template can be configured to enable or disable the traffic statistics collection, fault detection, BFD, BFD bypass, and hot standby functions for an SR Policy. After the configuration is complete, the candidate paths of the SR Policy can reference the SR Policy attribute template.

Example

# Configure an SR Policy attribute template.
<HUAWEI> system-view
[~HUAWEI] segment-routing policy-template 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >