A non-transitory computer-readable storage medium having instructions which, when executed by one or more processors of an electronic device, cause the electronic device to implement a router network element that performs operations and that is to be part of a network including a Segment Routing (SR) network portion and a Multiprotocol Label Switching (MPLS) network portion, wherein the router network element is to be part of both the SR network portion and the MPLS network portion, and wherein the network also utilizes an Open Shortest Path First (OSPF) protocol for exchanging routing information, the operations comprising:
- receiving an OSPF advertisement message originated by a mapping server, wherein the OSPF advertisement message includes a sub-Type-length-value (sub-TLV) element that identifies a preferred type of path across the MPLS network portion for an identifiable set of traffic that is to be received from the SR network portion;
- identifying, based at least in part upon the sub-TLV element, one path of a plurality of available paths across the MPLS network portion for the identifiable set of traffic;
- and
- configuring a forwarding plane of the router network element to utilize the identified one path to forward any received traffic from the SR network portion that can be determined to belong to the identifiable set of traffic.