Skip to content

Commit

Permalink
bgpd: Print a hostname also for GR logs under dynamic capability
Browse files Browse the repository at this point in the history
Just to be consistent with other zlog_ stuff for dynamic capabilities.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
  • Loading branch information
ton31337 committed Aug 30, 2023
1 parent 7d5873c commit 14e3452
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bgpd/bgp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2861,20 +2861,18 @@ static void bgp_dynamic_capability_graceful_restart(uint8_t *pnt, int action,
if (bgp_map_afi_safi_iana2int(pkt_afi, pkt_safi, &afi,
&safi)) {
if (bgp_debug_neighbor_events(peer))
zlog_debug("%s Addr-family %s/%s(afi/safi) not supported. Ignore the Graceful Restart capability for this AFI/SAFI",
peer->host,
iana_afi2str(pkt_afi),
zlog_debug("%pBP: Addr-family %s/%s(afi/safi) not supported. Ignore the Graceful Restart capability for this AFI/SAFI",
peer, iana_afi2str(pkt_afi),
iana_safi2str(pkt_safi));
} else if (!peer->afc[afi][safi]) {
if (bgp_debug_neighbor_events(peer))
zlog_debug("%s Addr-family %s/%s(afi/safi) not enabled. Ignore the Graceful Restart capability",
peer->host,
iana_afi2str(pkt_afi),
zlog_debug("%pBP: Addr-family %s/%s(afi/safi) not enabled. Ignore the Graceful Restart capability",
peer, iana_afi2str(pkt_afi),
iana_safi2str(pkt_safi));
} else {
if (bgp_debug_neighbor_events(peer))
zlog_debug("%s Address family %s is%spreserved",
peer->host,
zlog_debug("%pBP: Address family %s is%spreserved",
peer,
get_afi_safi_str(afi, safi,
false),
CHECK_FLAG(peer->af_cap[afi]
Expand Down

0 comments on commit 14e3452

Please sign in to comment.