diff options
author | vivek <vivek@cumulusnetworks.com> | 2015-11-20 17:48:32 +0100 |
---|---|---|
committer | vivek <vivek@cumulusnetworks.com> | 2015-11-20 17:48:32 +0100 |
commit | 41ec92223a7dfc14eb8cb0b84c73ad09943213eb (patch) | |
tree | a533a74b37edb67130fa36ed96066f49933fa258 /zebra/connected.c | |
parent | Zebra: Fix replace route for uninstall scenario (diff) | |
download | frr-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/connected.c')
-rw-r--r-- | zebra/connected.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index b6dbad39b..98e0bb84a 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -214,7 +214,7 @@ connected_up_ipv4 (struct interface *ifp, struct connected *ifc) rib_add_ipv4 (ZEBRA_ROUTE_CONNECT, 0, 0, &p, NULL, NULL, ifp->ifindex, ifp->vrf_id, RT_TABLE_MAIN, ifp->metric, 0, SAFI_MULTICAST); - if (IS_ZEBRA_DEBUG_RIB) + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug ("%s: calling rib_update", __func__); rib_update (ifp->vrf_id); @@ -333,7 +333,7 @@ connected_down_ipv4 (struct interface *ifp, struct connected *ifc) rib_delete_ipv4 (ZEBRA_ROUTE_CONNECT, 0, 0, &p, NULL, ifp->ifindex, ifp->vrf_id, 0, SAFI_MULTICAST); - if (IS_ZEBRA_DEBUG_RIB) + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug ("%s: calling rib_update_static", __func__); rib_update_static (ifp->vrf_id); @@ -396,7 +396,7 @@ connected_delete_ipv4 (struct interface *ifp, int flags, struct in_addr *addr, connected_withdraw (ifc); - if (IS_ZEBRA_DEBUG_RIB) + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug ("%s: calling rib_update_static", __func__); rib_update_static(ifp->vrf_id); @@ -425,7 +425,7 @@ connected_up_ipv6 (struct interface *ifp, struct connected *ifc) rib_add_ipv6 (ZEBRA_ROUTE_CONNECT, 0, 0, &p, NULL, ifp->ifindex, ifp->vrf_id, RT_TABLE_MAIN, ifp->metric, 0, SAFI_UNICAST); - if (IS_ZEBRA_DEBUG_RIB) + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug ("%s: calling rib_update", __func__); rib_update (ifp->vrf_id); @@ -514,7 +514,7 @@ connected_down_ipv6 (struct interface *ifp, struct connected *ifc) rib_delete_ipv6 (ZEBRA_ROUTE_CONNECT, 0, 0, &p, NULL, ifp->ifindex, ifp->vrf_id, 0, SAFI_UNICAST); - if (IS_ZEBRA_DEBUG_RIB) + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug ("%s: calling rib_update_static", __func__); rib_update_static (ifp->vrf_id); @@ -538,7 +538,7 @@ connected_delete_ipv6 (struct interface *ifp, struct in6_addr *address, connected_withdraw (ifc); - if (IS_ZEBRA_DEBUG_RIB) + if (IS_ZEBRA_DEBUG_RIB_DETAILED) zlog_debug ("%s: calling rib_update_static", __func__); rib_update_static(ifp->vrf_id); |