The bgp-ls identifier command configures an OSPF topology ID.
The undo bgp-ls identifier command deletes an OSPF topology ID.
The bgp-ls enable command enables OSPF topology advertisement to BGP.
The undo bgp-ls enable command disables OSPF topology advertisement to BGP.
By default, the OSPF topology ID is 0.
By default, OSPF topology advertisement to BGP is disabled.
Usage Scenario
Each BGP node identifies topologies based on their IDs and reports topology information to the controller.
The topology information saved on all OSPF devices in the same area is the same. Therefore, the topology information about the area can be reported to the controller as long as BGP-LS is enabled on one BGP node. Deploying BGP-LS on two BGP nodes is recommended because they can back up each other. If BGP-LS is deployed on more than one node, identifier-value must remain the same on all these nodes to ensure that the collected topology information is correct. BGP-LS is a new method of collecting topology information. Without BGP-LS, forwarders use an IGP (OSPF or IS-IS) to collect topology information of each AS, and the IGP reports the information to the controller. This topology information collection method has the following disadvantages:Prerequisites
OSPF topology advertisement to BGP has been enabled using the bgp-ls enable command.
Implementation Procedure
OSPF topology information can be flooded only within an area. As a result, the controller can obtain OSPF topology information about only one area. To address this problem, deploy at least one BGP node in each OSPF area and establish a BGP peer relationship between each BGP node and the controller so that BGP-LS collects and reports topology information to the controller.
Configuration Impact
Precautions
The bgp-ls enable command is inapplicable to VPN views.
<HUAWEI> system-view [~HUAWEI] ospf [*HUAWEI-ospf-1] bgp-ls enable [*HUAWEI-ospf-1] bgp-ls identifier 20
<HUAWEI> system-view [~HUAWEI] ospf [*HUAWEI-ospf-1] bgp-ls enable