From 9cb8322ed99eabb94f76a7c2aeb1b60d105e7440 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 12 Feb 2019 09:51:08 -0500 Subject: [PATCH] zebra: If we copy re than the state has changed After we have evaluated the rnh for an import-check type and we copy the re then we know that the state has changed and we should be notifying the end user about it. Signed-off-by: Donald Sharp --- zebra/zebra_rnh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index d57087d462..a1519e45cd 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -495,6 +495,7 @@ static void zebra_rnh_eval_import_check_entry(struct zebra_vrf *zvrf, afi_t afi, if (compare_state(re, rnh->state)) { copy_state(rnh, re, nrn); + state_changed = 1; } if (state_changed || force) { -- 2.39.5