summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-02-14 14:41:04 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-02-14 14:41:42 +0100
commitc479e7566592d91bd98b5de061ec75ffce19d116 (patch)
treeff84acbe6cf6ecd5bb341099de001d9085ef684a /zebra/zebra_ptm.c
parentripngd: Add vrf name to debug output (diff)
downloadfrr-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.c6
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));
}
}