From 9ce0f6a5df11f50da67c035b2f4eae3838f72106 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 23 May 2017 07:31:01 -0400 Subject: [PATCH] ospfd: Make OSPF TE warnings be less chatty If you are not using OSPF-TE than there is no need to be warned that we cannot find anything about it. Signed-off-by: Donald Sharp --- ospfd/ospf_te.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ospfd/ospf_te.c b/ospfd/ospf_te.c index 804b1fb652..1afe20b958 100644 --- a/ospfd/ospf_te.c +++ b/ospfd/ospf_te.c @@ -838,8 +838,9 @@ initialize_linkparams (struct mpls_te_link *lp) if ((oi = lookup_oi_by_ifp (ifp, NULL, OI_ANY)) == NULL) { - zlog_warn("MPLS-TE(initialize_linkparams) Could not find corresponding OSPF Interface for %s", - ifp->name); + if (IS_DEBUG_OSPF_TE) + zlog_warn("MPLS-TE(initialize_linkparams) Could not find corresponding OSPF Interface for %s", + ifp->name); return; } @@ -991,7 +992,8 @@ ospf_mpls_te_update_if (struct interface *ifp) /* Get Link context from interface */ if ((lp = lookup_linkparams_by_ifp(ifp)) == NULL) { - zlog_warn ("OSPF MPLS-TE Update: Did not find Link Parameters context for interface %s", ifp->name); + if (IS_DEBUG_OSPF_TE) + zlog_warn ("OSPF MPLS-TE Update: Did not find Link Parameters context for interface %s", ifp->name); return; } -- 2.39.5