mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
zebra: Improve debugging when we can't find a route to delete
Improve debugging when we cannot find a route to delete that we have been told to delete. New output: 2019/06/25 17:43:49 ZEBRA: default[0]:4.5.6.7/32 doesn't exist in rib 2019/06/25 17:43:49 ZEBRA: default[0]:4.5.6.8/32 doesn't exist in rib Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
eae1601c4d
commit
82d7d0e28a
@ -2741,11 +2741,14 @@ void rib_delete(afi_t afi, safi_t safi, vrf_id_t vrf_id, int type,
|
||||
else
|
||||
src_buf[0] = '\0';
|
||||
|
||||
if (IS_ZEBRA_DEBUG_RIB)
|
||||
zlog_debug("%u:%s%s%s doesn't exist in rib", vrf_id,
|
||||
dst_buf,
|
||||
if (IS_ZEBRA_DEBUG_RIB) {
|
||||
struct vrf *vrf = vrf_lookup_by_id(vrf_id);
|
||||
|
||||
zlog_debug("%s[%d]:%s%s%s doesn't exist in rib",
|
||||
vrf->name, table_id, dst_buf,
|
||||
(src_buf[0] != '\0') ? " from " : "",
|
||||
src_buf);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user