diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-05-02 09:36:06 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2019-05-06 13:50:50 +0200 |
commit | 4828ea7749f62d503ff0b322a39d0ecd452db601 (patch) | |
tree | 1435d27e651e95f52c08be3fa72dc16372f934b0 /ospfd/ospf_bfd.c | |
parent | bgpd: add bfd event trace (diff) | |
download | frr-4828ea7749f62d503ff0b322a39d0ecd452db601.tar.xz frr-4828ea7749f62d503ff0b322a39d0ecd452db601.zip |
ospfd: add bfd up event trace
that bfd trace is visible when using 'debug ospf nsm event' command.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'ospfd/ospf_bfd.c')
-rw-r--r-- | ospfd/ospf_bfd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c index 594735a08..a4f66ab70 100644 --- a/ospfd/ospf_bfd.c +++ b/ospfd/ospf_bfd.c @@ -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; |