summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_routemap.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2015-11-20 17:48:32 +0100
committervivek <vivek@cumulusnetworks.com>2015-11-20 17:48:32 +0100
commit41ec92223a7dfc14eb8cb0b84c73ad09943213eb (patch)
treea533a74b37edb67130fa36ed96066f49933fa258 /zebra/zebra_routemap.c
parentZebra: Fix replace route for uninstall scenario (diff)
downloadfrr-41ec92223a7dfc14eb8cb0b84c73ad09943213eb.tar.xz
frr-41ec92223a7dfc14eb8cb0b84c73ad09943213eb.zip
Zebra: Cleanup RIB debugs
Some of the changes include: - ensuring IPv6 addresses are printed correctly - say 'updating' or 'deleting' etc. only when that is actually done - say 'queuing' or 'dequeuing' only when that is actually done - print useful info for 'detailed' debug - that now subsumes 'rib queue' - delete various useless logs - VRF-specific - print VRF id in RIB debugs prior to prefix (e.g., 4:37.1.1.0/28) Ticket: CM-8110 Reviewed By: CCR-3765 Testing Done: Manual testing (2.5-br)
Diffstat (limited to 'zebra/zebra_routemap.c')
-rw-r--r--zebra/zebra_routemap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c
index 64d6fda24..20ac1d035 100644
--- a/zebra/zebra_routemap.c
+++ b/zebra/zebra_routemap.c
@@ -775,7 +775,7 @@ DEFUN (ip_protocol,
}
proto_rm[AFI_IP][i] = XSTRDUP (MTYPE_ROUTE_MAP_NAME, argv[1]);
- if (IS_ZEBRA_DEBUG_RIB)
+ if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug ("%s: calling rib_update", __func__);
rib_update(VRF_DEFAULT);
@@ -812,7 +812,7 @@ DEFUN (no_ip_protocol,
XFREE (MTYPE_ROUTE_MAP_NAME, proto_rm[AFI_IP][i]);
proto_rm[AFI_IP][i] = NULL;
- if (IS_ZEBRA_DEBUG_RIB)
+ if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug ("%s: calling rib_update", __func__);
rib_update(VRF_DEFAULT);
@@ -887,7 +887,7 @@ DEFUN (ipv6_protocol,
}
proto_rm[AFI_IP6][i] = XSTRDUP (MTYPE_ROUTE_MAP_NAME, argv[1]);
- if (IS_ZEBRA_DEBUG_RIB)
+ if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug ("%s: calling rib_update", __func__);
rib_update(VRF_DEFAULT);
@@ -924,7 +924,7 @@ DEFUN (no_ipv6_protocol,
XFREE (MTYPE_ROUTE_MAP_NAME, proto_rm[AFI_IP6][i]);
proto_rm[AFI_IP6][i] = NULL;
- if (IS_ZEBRA_DEBUG_RIB)
+ if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug ("%s: calling rib_update", __func__);
rib_update(VRF_DEFAULT);
@@ -1598,7 +1598,7 @@ zebra_route_map_update_timer (struct thread *thread)
if (IS_ZEBRA_DEBUG_EVENT)
zlog_debug("Event driven route-map update triggered");
- if (IS_ZEBRA_DEBUG_RIB)
+ if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug ("%s: calling rib_update", __func__);
rib_update(VRF_DEFAULT);