The segment-routing mpls command enables Segment Routing for an IS-IS process.
The undo segment-routing mpls command disables Segment Routing for an IS-ISF process.
By default, Segment Routing is disabled for IS-IS processes.
Usage Scenario
In Segment Routing implementation, an IGP is used to collect network-wide topology information and assign a label to each router. Therefore, Segment Routing must be enabled for the IGP. If IS-IS is used as the IGP, run the segment-routing mpls command in the IS-IS view to enable Segment Routing.
Prerequisites
Segment Routing has been enabled globally, and the device has been enabled to receive and send only the routes with the cost type being wide using the cost-style command.
Precautions
Segment-routing cannot work unless this configuration is done.