diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-14 14:41:04 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-14 14:41:42 +0100 |
commit | c479e7566592d91bd98b5de061ec75ffce19d116 (patch) | |
tree | ff84acbe6cf6ecd5bb341099de001d9085ef684a /zebra/zebra_ptm.c | |
parent | ripngd: Add vrf name to debug output (diff) | |
download | frr-c479e7566592d91bd98b5de061ec75ffce19d116.tar.xz frr-c479e7566592d91bd98b5de061ec75ffce19d116.zip |
zebra: Add vrf name to debug output
The vrf id is insufficient of a discriminator in people's head
Give them what they need.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r-- | zebra/zebra_ptm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index 681b4d1ab..b80c9026a 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -441,15 +441,17 @@ static void if_bfd_session_update(struct interface *ifp, struct prefix *dp, dp->prefixlen, ifp->name, bfd_get_status_str(status)); } else { + struct vrf *vrf = vrf_lookup_by_id(vrf_id); + zlog_debug( "MESSAGE: ZEBRA_INTERFACE_BFD_DEST_UPDATE %s/%d " - "with src %s/%d and vrf %u %s event", + "with src %s/%d and vrf %s(%u) %s event", inet_ntop(dp->family, &dp->u.prefix, buf[0], INET6_ADDRSTRLEN), dp->prefixlen, inet_ntop(sp->family, &sp->u.prefix, buf[1], INET6_ADDRSTRLEN), - sp->prefixlen, vrf_id, + sp->prefixlen, VRF_LOGNAME(vrf), vrf_id, bfd_get_status_str(status)); } } |