diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-12-16 15:32:44 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-16 15:32:44 +0100 |
commit | 4d4187c1f0f62aff2da74295797524e158362760 (patch) | |
tree | ce4778c1fd4edba8fc03a368e10605b4d8a1ce1b /bgpd/bgp_addpath.c | |
parent | Merge pull request #10576 from louis-6wind/fix-l3vpn-igmetric (diff) | |
download | frr-4d4187c1f0f62aff2da74295797524e158362760.tar.xz frr-4d4187c1f0f62aff2da74295797524e158362760.zip |
bgpd: Print out useful information about peer
I am seeing this output:
2022/12/16 09:16:00.206 BGP: [MNE5N-K0G4Z] Resetting peer (null) due to change in addpath config
Switch over to %pBP
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd/bgp_addpath.c')
-rw-r--r-- | bgpd/bgp_addpath.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_addpath.c b/bgpd/bgp_addpath.c index 9784943b4..461e60dbf 100644 --- a/bgpd/bgp_addpath.c +++ b/bgpd/bgp_addpath.c @@ -406,9 +406,9 @@ void bgp_addpath_set_peer_type(struct peer *peer, afi_t afi, safi_t safi, } } - zlog_info("Resetting peer %s%s due to change in addpath config", + zlog_info("Resetting peer %s%pBP due to change in addpath config", CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP) ? "group " : "", - peer->host); + peer); if (CHECK_FLAG(peer->sflags, PEER_STATUS_GROUP)) { group = peer->group; |