summaryrefslogtreecommitdiff
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-03-29 11:13:29 -0400
committerGitHub <noreply@github.com>2022-03-29 11:13:29 -0400
commit8084c3325bf51a919b07b29b9b87394ae464ac4c (patch)
treed47c9baedbd6513101c9428ec495f5bc642c02f1 /bgpd/bgp_route.c
parenta790f7435b9ee8125822a097fddd86931797e9ea (diff)
parenta7d91a8c79f0b8b468de52d95d9f44a7ae95535a (diff)
Merge pull request #10845 from opensourcerouting/feature/unify_bgp_logging
bgpd: Print hostname along with IP for most useful debug messages
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 5255eb5800..01120ef44a 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -3433,9 +3433,9 @@ bool bgp_maximum_prefix_overflow(struct peer *peer, afi_t afi, safi_t safi,
return false;
zlog_info(
- "%%MAXPFXEXCEED: No. of %s prefix received from %s %u exceed, limit %u",
- get_afi_safi_str(afi, safi, false), peer->host, pcount,
- peer->pmax[afi][safi]);
+ "%%MAXPFXEXCEED: No. of %s prefix received from %s(%s) %u exceed, limit %u",
+ get_afi_safi_str(afi, safi, false), peer->host,
+ bgp_peer_hostname(peer), pcount, peer->pmax[afi][safi]);
SET_FLAG(peer->af_sflags[afi][safi], PEER_STATUS_PREFIX_LIMIT);
if (CHECK_FLAG(peer->af_flags[afi][safi],
@@ -3473,8 +3473,9 @@ bool bgp_maximum_prefix_overflow(struct peer *peer, afi_t afi, safi_t safi,
if (bgp_debug_neighbor_events(peer))
zlog_debug(
- "%s Maximum-prefix restart timer started for %d secs",
- peer->host, peer->v_pmax_restart);
+ "%s(%s) Maximum-prefix restart timer started for %d secs",
+ peer->host, bgp_peer_hostname(peer),
+ peer->v_pmax_restart);
BGP_TIMER_ON(peer->t_pmax_restart,
bgp_maximum_prefix_restart_timer,