diff options
| author | b29332 <bao.zhen@h3c.com> | 2024-09-27 15:51:17 +0800 |
|---|---|---|
| committer | b29332 <bao.zhen@h3c.com> | 2024-09-27 16:12:45 +0800 |
| commit | 06b5601c62e65b05adbcd1b7876970d80be0b2fb (patch) | |
| tree | 050514a67239ba1b518a3b6f423de38c50a048f9 | |
| parent | 93032f183ae7f98f68fa97855015ac16c44c0065 (diff) | |
isisd: Fix the PQ space computation error in TI-LFA
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>
| -rw-r--r-- | isisd/isis_lfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_lfa.c b/isisd/isis_lfa.c index 887f27eec5..e0b3a4dca1 100644 --- a/isisd/isis_lfa.c +++ b/isisd/isis_lfa.c @@ -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. */ |
