The following processing rules apply for IP prefix resolution.
SPF calculates the next-hops, up to max-ecmp, to reach a destination node.
Each prefix inherits the next-hops of one or more destination nodes advertising it.
A prefix advertised by multiple nodes, all reachable with same cost, inherits up to max-ecmp next-hops from the advertising nodes.
The next-hop selection value, up to max-ecmp, is based on sorting the next-hops by:
lowest next-hop router ID
lowest interface index, for parallel links to same router ID
Each next hop keeps a reference to the destination nodes from which it was inherited.