Merge pull request #12010 from opensourcerouting/fix/logging_for_route_refresh

bgpd: Print hostname for peer as well when marking as stale for route-refresh
This commit is contained in:
Russ White 2022-09-27 11:27:12 -04:00 committed by GitHub
commit ee42846bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5620,8 +5620,8 @@ void bgp_set_stale_route(struct peer *peer, afi_t afi, safi_t safi)
if (bgp_debug_neighbor_events(
peer))
zlog_debug(
"%s: route-refresh for %s/%s, marking prefix %pFX as stale",
peer->host,
"%pBP route-refresh for %s/%s, marking prefix %pFX as stale",
peer,
afi2str(afi),
safi2str(safi),
bgp_dest_get_prefix(
@ -5649,9 +5649,8 @@ void bgp_set_stale_route(struct peer *peer, afi_t afi, safi_t safi)
BGP_PATH_UNUSEABLE)) {
if (bgp_debug_neighbor_events(peer))
zlog_debug(
"%s: route-refresh for %s/%s, marking prefix %pFX as stale",
peer->host,
afi2str(afi),
"%pBP route-refresh for %s/%s, marking prefix %pFX as stale",
peer, afi2str(afi),
safi2str(safi),
bgp_dest_get_prefix(
dest));