]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: add bfd up event trace 4264/head
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 2 May 2019 07:36:06 +0000 (09:36 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 6 May 2019 11:50:50 +0000 (13:50 +0200)
that bfd trace is visible when using 'debug ospf nsm event' command.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
ospfd/ospf_bfd.c

index 594735a08f8021919240b920308d250e1ff82bcd..a4f66ab70aab49ceaf68f975e4f0c5b6037fd331 100644 (file)
@@ -251,6 +251,13 @@ static int ospf_bfd_interface_dest_update(int command, struct zclient *zclient,
 
                        OSPF_NSM_EVENT_SCHEDULE(nbr, NSM_InactivityTimer);
                }
+               if ((status == BFD_STATUS_UP)
+                   && (old_status == BFD_STATUS_DOWN)) {
+                       if (IS_DEBUG_OSPF(nsm, NSM_EVENTS))
+                               zlog_debug("NSM[%s:%s]: BFD Up",
+                                          IF_NAME(nbr->oi),
+                                          inet_ntoa(nbr->address.u.prefix4));
+               }
        }
 
        return 0;