bfd enable (SR Policy template view)

Function

The bfd enable command enables the BFD function in an SR Policy attribute template.

The undo bfd enable command deletes the preceding configuration.

The bfd disable command disables the BFD function in an SR Policy attribute template.

The undo bfd disable command deletes the preceding configuration.

By default, the BFD function in an SR Policy attribute template is not enabled.

Format

bfd { seamless | unaffiliated } enable

bfd disable

undo bfd { seamless | unaffiliated } enable

undo bfd disable

Parameters

Parameter Description Value
seamless

Enables the SBFD function in an SR Policy attribute template.

-

unaffiliated

Enables the unaffiliated BFD function in an SR Policy attribute template.

-

disable

Disables the BFD function in an SR Policy attribute template.

-

Views

SR Policy template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

The bfd [ seamless | unaffiliated ] enable (SR Policy template view) command enables the SBFD or unaffiliated BFD function in an SR Policy attribute template, the srv6-te-policy bfd [ seamless | unaffiliated ] enable (Segment Routing IPv6 view) command globally enables the SBFD or unaffiliated BFD function for all SRv6 TE Policies in the Segment Routing IPv6 view, and the bfd [ seamless | unaffiliated ] enable (SRv6 TE Policy view) command enables the SBFD or unaffiliated BFD function for a single SRv6 TE Policy.

For the same SRv6 TE Policy, if both the srv6-te-policy bfd [ seamless | unaffiliated ] enable (Segment Routing IPv6 view) and bfd [ seamless | unaffiliated ] enable (SRv6 TE Policy view) commands are run and the template referenced by the primary path of the policy has BFD configurations, the bfd [ seamless | unaffiliated ] enable (SRv6 TE Policy view) command configuration has the highest priority. The bfd [ seamless | unaffiliated ] enable (SR Policy template view) command configuration has the second highest priority, followed by the srv6-te-policy bfd [ seamless | unaffiliated ] enable (Segment Routing IPv6 view) command configuration.

Example

# Enable SBFD in an SR Policy attribute template.
<HUAWEI> system-view
[~HUAWEI] segment-routing policy-template 1
[*HUAWEI-sr-policy-template-1] bfd seamless enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >