diff options
author | Mark Stapp <mjs@voltanet.io> | 2020-06-01 18:24:14 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2020-07-07 19:14:01 +0200 |
commit | 0024ea8ecd5b0546abb0d9116ef439044f7d6306 (patch) | |
tree | 7beacdee2a19293b174ae34cb102629f647bfb69 /zebra/zebra_dplane.c | |
parent | zebra: add const to mpls and dplane nhlfe apis (diff) | |
download | frr-0024ea8ecd5b0546abb0d9116ef439044f7d6306.tar.xz frr-0024ea8ecd5b0546abb0d9116ef439044f7d6306.zip |
zebra: use fib nexthops for pseudowires
Make sure to use the installed/fib set of nexthops
when capturing info about pseudowire updates.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to '')
-rw-r--r-- | zebra/zebra_dplane.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index cc9868b92..68e068cb6 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -2043,6 +2043,7 @@ static int dplane_ctx_pw_init(struct zebra_dplane_ctx *ctx, struct route_table *table; struct route_node *rn; struct route_entry *re; + const struct nexthop_group *nhg; if (IS_ZEBRA_DEBUG_DPLANE_DETAIL) zlog_debug("init dplane ctx %s: pw '%s', loc %u, rem %u", @@ -2093,10 +2094,11 @@ static int dplane_ctx_pw_init(struct zebra_dplane_ctx *ctx, break; } - if (re) + if (re) { + nhg = rib_get_fib_nhg(re); copy_nexthops(&(ctx->u.pw.nhg.nexthop), - re->nhe->nhg.nexthop, NULL); - + nhg->nexthop, NULL); + } route_unlock_node(rn); } } |