diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-02-19 14:23:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-19 14:23:32 +0100 |
| commit | 0bdcc3e3ef5f30f17211bd6519e8341f6de16982 (patch) | |
| tree | 45ad731490df277e30851c3516f708031d9e3f77 /zebra/zebra_rib.c | |
| parent | 709a3ecf54586357c845beee3f85c2f4bfcb55b7 (diff) | |
| parent | 137147c66a8a81025d26bd62d05641d18d7a0ad4 (diff) | |
Merge pull request #5809 from donaldsharp/vrf_name
Print out vrf name as well as id
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); |
