]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Mark nhe valid if installed
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 25 Jul 2019 17:25:21 +0000 (13:25 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:41 +0000 (11:13 -0400)
If the nhe was successfully installed, make sure its marked
as valid. Not fully sure how/where the valid flag is going to
be used yet.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c

index a02df6b168c72053e4d2a4fa02dfaaf8360be263..24eae603f2cf8eeafd10c47709fe92d4052acd68 100644 (file)
@@ -1588,6 +1588,7 @@ void zebra_nhg_dplane_result(struct zebra_dplane_ctx *ctx)
                case DPLANE_OP_NH_INSTALL:
                case DPLANE_OP_NH_UPDATE:
                        if (status == ZEBRA_DPLANE_REQUEST_SUCCESS) {
+                               SET_FLAG(nhe->flags, NEXTHOP_GROUP_VALID);
                                SET_FLAG(nhe->flags, NEXTHOP_GROUP_INSTALLED);
                        } else {
                                flog_err(