diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c index 97dc5786795c..89db97922f87 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;