]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: Make OSPF TE warnings be less chatty
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 23 May 2017 11:31:01 +0000 (07:31 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 2 Jun 2017 17:44:13 +0000 (13:44 -0400)
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>
ospfd/ospf_te.c

index 804b1fb652ee0c6fde9cac1fd7dcb0054adf5910..1afe20b958b960966f4cb618f45561cbed4f7593 100644 (file)
@@ -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;
     }