]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Deletion of a lsp is not a failure event
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 13 Feb 2019 17:49:59 +0000 (12:49 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 13 Feb 2019 17:49:59 +0000 (12:49 -0500)
FRR is reporting that a lsp deletion event as a failure
in the log messsages.  This will lead to confusion and
lots of fun debugging.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_mpls.c

index 0aac7d7b1253befcbf02ac59270ded3de5a7d1f5..78c07f9aafe518fee0dc72b0c72bbcf08a2e26a9 100644 (file)
@@ -1800,9 +1800,10 @@ void zebra_mpls_lsp_dplane_result(struct zebra_dplane_ctx *ctx)
                break;
 
        case DPLANE_OP_LSP_DELETE:
-               flog_warn(EC_ZEBRA_LSP_DELETE_FAILURE,
-                         "LSP Deletion Failure: in-label %u",
-                         dplane_ctx_get_in_label(ctx));
+               if (status != ZEBRA_DPLANE_REQUEST_SUCCESS)
+                       flog_warn(EC_ZEBRA_LSP_DELETE_FAILURE,
+                                 "LSP Deletion Failure: in-label %u",
+                                 dplane_ctx_get_in_label(ctx));
                break;
 
        default: