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.
<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