The peer virtual-link te srlg command adds a peer virtual link to an SRLG.
The undo peer virtual-link te srlg command removes a peer virtual link from an SRLG.
By default, a peer virtual link does not belong to any SRLG.
Usage Scenario
An SRLG is a group of links that share a common physical resource (or an optical fiber). Links in the same SRLG have the same risk level. If one link fails, other links in the SRLG may also fail and cannot provide protection. You can run the peer virtual-link te srlg command to set the SRLG value for a BGP peer on a virtual link. The SRLG value is used to enhance the reliability of hot-standby LSPs and backup tunnels. A BGP peer can belong to multiple SRLGs.
Prerequisites
A virtual link has been constructed across an L3 network using the peer virtual-link command so that topology information is reported to the controller based on the virtual link for path computation.