bgpd: Convert warn to debug

There exists a few places where actual debugs were being
displayed as warns.  Convert them over to debugs and
guard as appropriate.

Signed-off-by: Donald Sharp <sharpd@cumulsunetworks.com>
This commit is contained in:
Donald Sharp 2018-08-15 20:37:45 -04:00
parent b7cd3069c0
commit deff24cad5

View File

@ -493,16 +493,18 @@ static int bgp_info_cmp(struct bgp *bgp, struct bgp_info *new,
} }
if (newattr->sticky && !existattr->sticky) { if (newattr->sticky && !existattr->sticky) {
zlog_warn( if (debug)
"%s: %s wins over %s due to sticky MAC flag", zlog_debug(
pfx_buf, new_buf, exist_buf); "%s: %s wins over %s due to sticky MAC flag",
pfx_buf, new_buf, exist_buf);
return 1; return 1;
} }
if (!newattr->sticky && existattr->sticky) { if (!newattr->sticky && existattr->sticky) {
zlog_warn( if (debug)
"%s: %s loses to %s due to sticky MAC flag", zlog_debug(
pfx_buf, new_buf, exist_buf); "%s: %s loses to %s due to sticky MAC flag",
pfx_buf, new_buf, exist_buf);
return 0; return 0;
} }
} }