diff options
Diffstat (limited to 'zebra/redistribute.c')
| -rw-r--r-- | zebra/redistribute.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/zebra/redistribute.c b/zebra/redistribute.c index 5a239306fb..3a66aea45f 100644 --- a/zebra/redistribute.c +++ b/zebra/redistribute.c @@ -115,11 +115,12 @@ static void zebra_redistribute(struct zserv *client, int type, u_short instance, if (IS_ZEBRA_DEBUG_EVENT) zlog_debug( - "%s: checking: selected=%d, type=%d, distance=%d, " + "%s: client %s vrf %d checking: selected=%d, type=%d, distance=%d, " "zebra_check_addr=%d", __func__, - CHECK_FLAG(newre->flags, - ZEBRA_FLAG_SELECTED), + zebra_route_string(client->proto), + vrf_id, CHECK_FLAG(newre->flags, + ZEBRA_FLAG_SELECTED), newre->type, newre->distance, zebra_check_addr(dst_p)); @@ -253,6 +254,12 @@ void zebra_redistribute_add(ZAPI_HANDLER_ARGS) STREAM_GETC(msg, type); STREAM_GETW(msg, instance); + if (IS_ZEBRA_DEBUG_EVENT) + zlog_debug( + "%s: client proto %s afi=%d, wants %s, vrf %d, instance=%d", + __func__, zebra_route_string(client->proto), afi, + zebra_route_string(type), zvrf_id(zvrf), instance); + if (afi == 0 || afi > AFI_MAX) { zlog_warn("%s: Specified afi %d does not exist", __PRETTY_FUNCTION__, afi); @@ -276,6 +283,9 @@ void zebra_redistribute_add(ZAPI_HANDLER_ARGS) } else { if (!vrf_bitmap_check(client->redist[afi][type], zvrf_id(zvrf))) { + if (IS_ZEBRA_DEBUG_EVENT) + zlog_debug("%s: setting vrf %d redist bitmap", + __func__, zvrf_id(zvrf)); vrf_bitmap_set(client->redist[afi][type], zvrf_id(zvrf)); zebra_redistribute(client, type, 0, zvrf_id(zvrf), afi); |
