From 675440ad5a969daa6831b974a1e6a04079ac715a Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 14 Nov 2018 10:06:05 -0500 Subject: [PATCH] zebra: fix get_old_instance api One of the dplane context accessors was returning the wrong value; correct it. Signed-off-by: Mark Stapp --- zebra/zebra_dplane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 98db3ca7e5..6cd52f7bb8 100644 --- a/zebra/zebra_dplane.c +++ b/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) -- 2.39.5