]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: debug log for redistribute_del
authorEmanuele Di Pascale <emanuele@voltanet.io>
Fri, 23 Apr 2021 08:49:07 +0000 (10:49 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Mon, 26 Apr 2021 08:00:37 +0000 (10:00 +0200)
We're firing an event debug log for zebra_redistribute_add, but not one
for zebra_redistribute_delete. Let's make it symmetric.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
zebra/redistribute.c

index 104f952b3b71c56d163f9452b6a5df0c32f55f0d..6f24ec422529abb8d4d3f20e385b7abbb0ce24e7 100644 (file)
@@ -369,6 +369,14 @@ void zebra_redistribute_delete(ZAPI_HANDLER_ARGS)
        STREAM_GETC(msg, type);
        STREAM_GETW(msg, instance);
 
+       if (IS_ZEBRA_DEBUG_EVENT)
+               zlog_debug(
+                       "%s: client proto %s afi=%d, no longer wants %s, vrf %s(%u), instance=%d",
+                       __func__, zebra_route_string(client->proto), afi,
+                       zebra_route_string(type), VRF_LOGNAME(zvrf->vrf),
+                       zvrf_id(zvrf), instance);
+
+
        if (afi == 0 || afi >= AFI_MAX) {
                flog_warn(EC_ZEBRA_REDISTRIBUTE_UNKNOWN_AF,
                          "%s: Specified afi %d does not exist", __func__, afi);