Micro-loops are avoided in computing shortest path first trees by considering whether links are within shared risk link group.