diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2024-11-24 08:48:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-24 08:48:36 -0500 |
| commit | a7b25c47bdb2c7209b38151d8cf62429b5669072 (patch) | |
| tree | 65d5ee6e66177003d4c717fdee889c3236865ccd | |
| parent | d745f4eae5d6e8df84de930632a3bcf3044408d3 (diff) | |
| parent | 1bcccb87cdc5de9dfe0573c0b2faf57d7043ac17 (diff) | |
Merge pull request #17495 from Orange-OpenSource/ospf-sr
ospfd: Correct invalid SR-MPLS output label
| -rw-r--r-- | ospfd/ospf_sr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c index 97dc578679..89db97922f 100644 --- a/ospfd/ospf_sr.c +++ b/ospfd/ospf_sr.c @@ -1334,6 +1334,12 @@ static void update_out_nhlfe(struct hash_bucket *bucket, void *args) continue; for (ALL_LIST_ELEMENTS_RO(srp->route->paths, pnode, path)) { + /* Compute NHFLE if path has not been initialized */ + if (!path->srni.nexthop) { + compute_prefix_nhlfe(srp); + continue; + } + /* Skip path that has not next SR-Node as nexthop */ if (path->srni.nexthop != srnext) continue; |
