From: Mark Stapp Date: Wed, 14 Nov 2018 15:06:05 +0000 (-0500) Subject: zebra: fix get_old_instance api X-Git-Tag: frr-7.1-dev~156^2~8 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=675440ad5a969daa6831b974a1e6a04079ac715a;p=matthieu%2Ffrr.git zebra: fix get_old_instance api One of the dplane context accessors was returning the wrong value; correct it. Signed-off-by: Mark Stapp --- 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)