Merge pull request #17495 from Orange-OpenSource/ospf-sr

ospfd: Correct invalid SR-MPLS output label
This commit is contained in:
Donald Sharp 2024-11-24 08:48:36 -05:00 committed by GitHub
commit a7b25c47bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;