srv6-te-policy bgp-ls enable

Function

The srv6-te-policy bgp-ls enable command enables a device to report path information about an SRv6 TE Policy to the BGP-LS module.

The undo srv6-te-policy bgp-ls enable command disables a device from reporting path information about an SRv6 TE Policy to the BGP-LS module.

By default, the switch that the SRv6 TE policy reports to BGP-LS is not enabled.

Format

srv6-te-policy bgp-ls enable

undo srv6-te-policy bgp-ls enable

Parameters

None

Views

Segment routing IPv6 view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
srpolicy write

Usage Guidelines

Usage Scenario

After the srv6-te-policy bgp-ls enable command is run in the segment routing IPv6 view, the device reports candidate path-specific information about the SRv6 TE Policy to the BGP-LS module. If a controller exists, the BGP-LS module can send the path information to the controller through the BGP-LS peer relationship.

Example

# Enable a device to run BGP-LS to report SRv6 TE Policy information.
<HUAWEI> system-view
[~HUAWEI] segment-routing ipv6
[*HUAWEI-segment-routing-ipv6] srv6-te-policy bgp-ls enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >