Symptom
SID computed by SR-TE or PCE for SR-TE policy is not computed correctly with redistributed prefixes (Prefixes with X flag set - redistributed between IGP protocols - e.g. OSPF->ISIS)
One example of such computed path can be - repeated same Prefix SID 2 times in computed path.
Conditions
All of conditions bellow:
- At least one SR-TE or ODN policy ("segment-routing traffic-eng policy ..." or "segment-routing on-deman color ...")
- Path computed dynamically (using PCE or SR-TE)
- Redistributed prefixes in PCE or SR-TE topology (can be checked in "show pce topology detail" or "show segment-routing topology detail") - leaked prefixes are not impacted (R flag set, e.g. leaked between ISIS levels)
Workaround
Do not use prefixes redistribution or use explicit SL
Further Problem Description
If prefix is visible in PCE or SR-TE topology as local and also as redistributed (multi-homed), then in specific cases there was not consistent logic to consider both.