summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-15 22:44:26 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2022-01-19 14:02:08 +0100
commit31afff83f18b02fa0cc1b655de72e4159f53af90 (patch)
treea64d59dd2c05eb4afb3eade3d7fd3310e818b6c5 /bgpd/bgp_fsm.c
parenttests: Check if LLGR works with dynamic peers as well (diff)
downloadfrr-31afff83f18b02fa0cc1b655de72e4159f53af90.tar.xz
frr-31afff83f18b02fa0cc1b655de72e4159f53af90.zip
bgpd: Print function name for `(dynamic neighbor) deleted` debug messages
Just sometimes to properly understand where this is coming from. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index c2e3d0223..672fa4512 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -666,7 +666,8 @@ static void bgp_graceful_restart_timer_off(struct peer *peer)
if (peer_dynamic_neighbor(peer) &&
!(CHECK_FLAG(peer->flags, PEER_FLAG_DELETE))) {
if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s (dynamic neighbor) deleted", peer->host);
+ zlog_debug("%s (dynamic neighbor) deleted (%s)",
+ peer->host, __func__);
peer_delete(peer);
}
@@ -1391,7 +1392,8 @@ int bgp_stop(struct peer *peer)
if (peer_dynamic_neighbor_no_nsf(peer) &&
!(CHECK_FLAG(peer->flags, PEER_FLAG_DELETE))) {
if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s (dynamic neighbor) deleted", peer->host);
+ zlog_debug("%s (dynamic neighbor) deleted (%s)",
+ peer->host, __func__);
peer_delete(peer);
return -1;
}
@@ -1612,7 +1614,8 @@ static int bgp_stop_with_error(struct peer *peer)
if (peer_dynamic_neighbor_no_nsf(peer)) {
if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s (dynamic neighbor) deleted", peer->host);
+ zlog_debug("%s (dynamic neighbor) deleted (%s)",
+ peer->host, __func__);
peer_delete(peer);
return -1;
}
@@ -1630,7 +1633,8 @@ static int bgp_stop_with_notify(struct peer *peer, uint8_t code,
if (peer_dynamic_neighbor_no_nsf(peer)) {
if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s (dynamic neighbor) deleted", peer->host);
+ zlog_debug("%s (dynamic neighbor) deleted (%s)",
+ peer->host, __func__);
peer_delete(peer);
return -1;
}
@@ -1791,7 +1795,8 @@ static int bgp_connect_fail(struct peer *peer)
{
if (peer_dynamic_neighbor_no_nsf(peer)) {
if (bgp_debug_neighbor_events(peer))
- zlog_debug("%s (dynamic neighbor) deleted", peer->host);
+ zlog_debug("%s (dynamic neighbor) deleted (%s)",
+ peer->host, __func__);
peer_delete(peer);
return -1;
}