mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-08 19:06:09 +00:00
bgpd: Print afi/safi as strings when handling capability in zlog_debug
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
b6f2da4f81
commit
c386cdd8c9
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user