When there are pseudo-nodes on the device, during TI-LFA calculation of PQ space, even if this IS vertex is not originally a P/Q node, it might be calculated as a P/Q node due to the presence of pseudo-nodes, causing this IS vertex to become a P/Q node.
Signed-off-by: baozhen-H3C <bao.zhen@h3c.com>
for (ALL_QUEUE_ELEMENTS_RO(&spftree->paths, node, vertex)) {
char buf[VID2STR_BUFFER];
- if (!VTYPE_IS(vertex->type))
+ if (vertex->type != VTYPE_NONPSEUDO_IS && vertex->type != VTYPE_NONPSEUDO_TE_IS)
continue;
/* Skip root node. */