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 <sharpd@cumulusnetworks.com>
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;
}
/* 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;
}