mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-14 20:00:42 +00:00
Merge pull request #7716 from ton31337/fix/print_string_for_afi_safi_mp_bgp
bgpd: Print afi/safi as strings for some zlog_debug outputs
This commit is contained in:
commit
f23e82838b
@ -2219,12 +2219,13 @@ static int bgp_capability_msg_parse(struct peer *peer, uint8_t *pnt,
|
||||
/* Address family check. */
|
||||
if (bgp_debug_neighbor_events(peer))
|
||||
zlog_debug(
|
||||
"%s CAPABILITY has %s MP_EXT CAP for afi/safi: %u/%u",
|
||||
"%s CAPABILITY has %s MP_EXT CAP for afi/safi: %s/%s",
|
||||
peer->host,
|
||||
action == CAPABILITY_ACTION_SET
|
||||
? "Advertising"
|
||||
: "Removing",
|
||||
pkt_afi, pkt_safi);
|
||||
iana_afi2str(pkt_afi),
|
||||
iana_safi2str(pkt_safi));
|
||||
|
||||
if (action == CAPABILITY_ACTION_SET) {
|
||||
peer->afc_recv[afi][safi] = 1;
|
||||
|
@ -888,9 +888,12 @@ struct bpacket *subgroup_update_packet(struct update_subgroup *subgrp)
|
||||
pkt_afi = afi_int2iana(afi);
|
||||
pkt_safi = safi_int2iana(safi);
|
||||
zlog_debug(
|
||||
"u%" PRIu64 ":s%" PRIu64" send MP_REACH for afi/safi %d/%d",
|
||||
"u%" PRIu64 ":s%" PRIu64
|
||||
" send MP_REACH for afi/safi %s/%s",
|
||||
subgrp->update_group->id,
|
||||
subgrp->id, pkt_afi, pkt_safi);
|
||||
subgrp->id,
|
||||
iana_afi2str(pkt_afi),
|
||||
iana_safi2str(pkt_safi));
|
||||
}
|
||||
|
||||
send_attr_printed = 1;
|
||||
@ -1046,9 +1049,12 @@ struct bpacket *subgroup_withdraw_packet(struct update_subgroup *subgrp)
|
||||
if (bgp_debug_update(NULL, NULL,
|
||||
subgrp->update_group, 0))
|
||||
zlog_debug(
|
||||
"u%" PRIu64 ":s%" PRIu64" send MP_UNREACH for afi/safi %d/%d",
|
||||
"u%" PRIu64 ":s%" PRIu64
|
||||
" send MP_UNREACH for afi/safi %s/%s",
|
||||
subgrp->update_group->id,
|
||||
subgrp->id, pkt_afi, pkt_safi);
|
||||
subgrp->id,
|
||||
iana_afi2str(pkt_afi),
|
||||
iana_safi2str(pkt_safi));
|
||||
}
|
||||
|
||||
bgp_packet_mpunreach_prefix(s, dest_p, afi, safi, prd,
|
||||
|
Loading…
Reference in New Issue
Block a user