To enable LDP to allocate labels for BGP, you need first import BGP routes to the relevant IGP routing table.
Import BGP routes to the IGP routing table. IS-IS is used as an example. Perform the following steps on the Level 1 carrier CE.
The system view is displayed.
The BGP view is displayed.
Labeled routes are imported to the routing table of the public network unicast address family.
Return to the upper-level view.
The IS-IS view is displayed.
BGP routes are imported to the IGP routing table.
The configuration is committed.