]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: Fix the PQ space computation error in TI-LFA 16942/head
authorb29332 <bao.zhen@h3c.com>
Fri, 27 Sep 2024 07:51:17 +0000 (15:51 +0800)
committerb29332 <bao.zhen@h3c.com>
Fri, 27 Sep 2024 08:12:45 +0000 (16:12 +0800)
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>
isisd/isis_lfa.c

index 887f27eec5d91e630b905c1c89a0e22d90c40e5e..e0b3a4dca10b8fa60b5b6ff70c52c65d17fd0f17 100644 (file)
@@ -1064,7 +1064,7 @@ static void lfa_calc_reach_nodes(struct isis_spftree *spftree,
        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. */