summaryrefslogtreecommitdiff
path: root/pimd/pim_nht.c
diff options
context:
space:
mode:
authorSai Gomathi <nsaigomathi@vmware.com>2021-12-01 21:07:02 -0800
committerSai Gomathi <nsaigomathi@vmware.com>2022-03-03 22:33:20 -0800
commit6d733f0dbc038f9daaa84468a5e024bb647e1398 (patch)
tree80be5dde2fda097fa9f1dd3f06fbd9a502baf4f7 /pimd/pim_nht.c
parent7469f084f3b82e47f72a173570e0d9045f1ac171 (diff)
pimd: Added new option "detail" in the "debug pim nht" CLI
Problem Statement: ================= PIM Logs are coming at interval of 1 minute although pim is not enabled. Root Cause Analysis: ==================== By default, RCPM configures the PIM debugs when router comes up via script. The product cannot disable PIM even though it is not required. Hence moving these logs under a new debug option which will not be enabled by default. Fix: ==== Added a new option "detail" in the cli: debug pim nht detail Co-author: Mobashshera Rasool <mrasool@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_nht.c')
-rw-r--r--pimd/pim_nht.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c
index 48dd565b25..01ca6d6934 100644
--- a/pimd/pim_nht.c
+++ b/pimd/pim_nht.c
@@ -121,7 +121,7 @@ static struct pim_nexthop_cache *pim_nht_get(struct pim_instance *pim,
pnc = pim_nexthop_cache_add(pim, &rpf);
pim_sendmsg_zebra_rnh(pim, zclient, pnc,
ZEBRA_NEXTHOP_REGISTER);
- if (PIM_DEBUG_PIM_NHT)
+ if (PIM_DEBUG_PIM_NHT_DETAIL)
zlog_debug(
"%s: NHT cache and zebra notification added for %pFX(%s)",
__func__, addr, pim->vrf->name);
@@ -899,7 +899,7 @@ int pim_ecmp_nexthop_lookup(struct pim_instance *pim,
uint32_t num_nbrs = 0;
pim_addr src_addr = pim_addr_from_prefix(src);
- if (PIM_DEBUG_PIM_NHT)
+ if (PIM_DEBUG_PIM_NHT_DETAIL)
zlog_debug("%s: Looking up: %pPA(%s), last lookup time: %lld",
__func__, &src_addr, pim->vrf->name,
nexthop->last_lookup_time);
@@ -1052,7 +1052,7 @@ int pim_ecmp_fib_lookup_if_vif_index(struct pim_instance *pim,
ifindex_t ifindex;
pim_addr src_addr;
- if (PIM_DEBUG_PIM_NHT) {
+ if (PIM_DEBUG_PIM_NHT_DETAIL) {
src_addr = pim_addr_from_prefix(src);
}