A method comprising: receiving, by a first router in a network, a first advertisement originated by a second router in a first Interior Gateway Protocol, IGP, level of the network, wherein the first advertisement specifies a first prefix and a segment identifier, SID and wherein the first advertisement belongs to a first routing protocol; receiving, by the first router, a second advertisement originated by a third router in a second Interior Gateway Protocol, IGP, level of the network, wherein the second advertisement specifies a second prefix and the SID, and the second advertisement belongs to a second routing protocol different from the first routing protocol; and based on: the first advertisement and the second advertisement specifying the same SID and based on the first IGP level having less visibility than the second IGP level; the first prefix is not leaked from a higher-visibility IGP level than the IGP level to which the first router belongs; the second prefix is not leaked from an IGP level having higher visibility than the IGP level to which the first router belongs; and the first advertisement and the second advertisement specifying the same SID and based on the first routing protocol being associated with a lower administrative distance than the second routing protocol: selecting, by the first router, the SID to be associated with a route to the first prefix instead of the SID being associated with a route to the second prefix; generating, by the first router, data associating the SID with the route to the first prefix; and installing, by the first router, the route to the first prefix as an active route. receiving, by a first router in a network, a first advertisement originated by a second router in a first Interior Gateway Protocol, IGP, level of the network, wherein the first advertisement specifies a first prefix and a segment identifier, SID and wherein the first advertisement belongs to a first routing protocol; receiving, by the first router, a second advertisement originated by a third router in a second Interior Gateway Protocol, IGP, level of the network, wherein the second advertisement specifies a second prefix and the SID, and the second advertisement belongs to a second routing protocol different from the first routing protocol; and based on: the first advertisement and the second advertisement specifying the same SID and based on the first IGP level having less visibility than the second IGP level; the first prefix is not leaked from a higher-visibility IGP level than the IGP level to which the first router belongs; the second prefix is not leaked from an IGP level having higher visibility than the IGP level to which the first router belongs; and the first advertisement and the second advertisement specifying the same SID and based on the first routing protocol being associated with a lower administrative distance than the second routing protocol: selecting, by the first router, the SID to be associated with a route to the first prefix instead of the SID being associated with a route to the second prefix; generating, by the first router, data associating the SID with the route to the first prefix; and installing, by the first router, the route to the first prefix as an active route. the first advertisement and the second advertisement specifying the same SID and based on the first IGP level having less visibility than the second IGP level; the first prefix is not leaked from a higher-visibility IGP level than the IGP level to which the first router belongs; the second prefix is not leaked from an IGP level having higher visibility than the IGP level to which the first router belongs; and the first advertisement and the second advertisement specifying the same SID and based on the first routing protocol being associated with a lower administrative distance than the second routing protocol: selecting, by the first router, the SID to be associated with a route to the first prefix instead of the SID being associated with a route to the second prefix; generating, by the first router, data associating the SID with the route to the first prefix; and installing, by the first router, the route to the first prefix as an active route. selecting, by the first router, the SID to be associated with a route to the first prefix instead of the SID being associated with a route to the second prefix; generating, by the first router, data associating the SID with the route to the first prefix; and installing, by the first router, the route to the first prefix as an active route.