summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-09-10 10:04:08 -0400
committerGitHub <noreply@github.com>2024-09-10 10:04:08 -0400
commitadd56c61dd510aec79aa62838b090bb43a54c8a9 (patch)
treed1a07e5695c0b2ea8d5442f5b586d51d041ac892 /zebra/zebra_rib.c
parentb774fc683a636e844f7e6456ba3651c3d6173410 (diff)
parentb2c2113f29ddc20affdf349300a5a54e24568634 (diff)
Merge pull request #15259 from dmytroshytyi-6WIND/nexthop_resolution
zebra: add LSP entry to nexthop via recursive (part 2)
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 075cc2ffb4..8bec32b85d 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -651,8 +651,10 @@ struct route_entry *rib_lookup_ipv4(struct prefix_ipv4 *p, vrf_id_t vrf_id)
int zebra_rib_labeled_unicast(struct route_entry *re)
{
struct nexthop *nexthop = NULL;
+ struct zebra_vrf *zvrf = vrf_info_lookup(re->vrf_id);
- if (re->type != ZEBRA_ROUTE_BGP)
+ if ((re->type != ZEBRA_ROUTE_BGP) &&
+ !zvrf->zebra_mpls_fec_nexthop_resolution)
return 0;
for (ALL_NEXTHOPS(re->nhe->nhg, nexthop))