struct listnode *node, *nnode;
int ret;
- zlog_debug("%s: set gtsm_hops to %d for %s", __func__, gtsm_hops,
- peer->host);
+ if (bgp_debug_neighbor_events(peer))
+ zlog_debug("%s: set gtsm_hops to %d for %s", __func__,
+ gtsm_hops, peer->host);
/* We cannot configure ttl-security hops when ebgp-multihop is already
set. For non peer-groups, the check is simple. For peer-groups,
struct listnode *node, *nnode;
int ret = 0;
- zlog_debug("%s: set gtsm_hops to zero for %s", __func__, peer->host);
+ if (bgp_debug_neighbor_events(peer))
+ zlog_debug("%s: set gtsm_hops to zero for %s", __func__,
+ peer->host);
/* if a peer-group member, then reset to peer-group default rather than
* 0 */