]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: If we copy re than the state has changed
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 12 Feb 2019 14:51:08 +0000 (09:51 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 27 Mar 2019 20:22:22 +0000 (16:22 -0400)
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 <sharpd@cumulusnetworks.com>
zebra/zebra_rnh.c

index d57087d462e1fb8cc6e2ac5116f71e560ac6e9e4..a1519e45cd6d7415471430a5d7ca5fdb7365d812 100644 (file)
@@ -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) {