Skip to content
Permalink
Browse files

zebra: fix get_old_instance api

One of the dplane context accessors was returning the wrong value;
correct it.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
  • Loading branch information...
mjstapp committed Nov 14, 2018
1 parent d8c16a9 commit 675440ad5a969daa6831b974a1e6a04079ac715a
Showing with 1 addition and 1 deletion.
  1. +1 −1 zebra/zebra_dplane.c
@@ -444,7 +444,7 @@ uint16_t dplane_ctx_get_old_instance(const struct zebra_dplane_ctx *ctx)
{
DPLANE_CTX_VALID(ctx);

return ctx->zd_instance;
return ctx->zd_old_instance;
}

uint32_t dplane_ctx_get_metric(const struct zebra_dplane_ctx *ctx)

0 comments on commit 675440a

Please sign in to comment.
You can’t perform that action at this time.