diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-14 08:41:04 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-14 08:41:42 -0500 |
| commit | c479e7566592d91bd98b5de061ec75ffce19d116 (patch) | |
| tree | ff84acbe6cf6ecd5bb341099de001d9085ef684a /zebra/zebra_rib.c | |
| parent | 24c4ee4a1f559f1eb1f6dec404658542984b6331 (diff) | |
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_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 57bd986872..7f919e47e1 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -2408,13 +2408,14 @@ void _route_entry_dump(const char *func, union prefixconstptr pp, char srcaddr[PREFIX_STRLEN]; char nhname[PREFIX_STRLEN]; struct nexthop *nexthop; + struct vrf *vrf = vrf_lookup_by_id(re->vrf_id); - zlog_debug("%s: dumping RE entry %p for %s%s%s vrf %u", func, + zlog_debug("%s: dumping RE entry %p for %s%s%s vrf %s(%u)", func, (const void *)re, prefix2str(pp, straddr, sizeof(straddr)), is_srcdst ? " from " : "", is_srcdst ? prefix2str(src_pp, srcaddr, sizeof(srcaddr)) : "", - re->vrf_id); + VRF_LOGNAME(vrf), re->vrf_id); zlog_debug("%s: uptime == %lu, type == %u, instance == %d, table == %d", straddr, (unsigned long)re->uptime, re->type, re->instance, re->table); |
