diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-02 16:42:51 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-02 16:42:51 +0100 |
commit | 1a35e2e56533f75d68ed30bf24b3c131da4ba950 (patch) | |
tree | 068c7730ed7a58d5374d8123d81720597b40bbcd /bgpd/bgp_bfd.c | |
parent | Merge pull request #135 from LabNConsulting/working/master/patch-set/misc+vrf (diff) | |
parent | Merge pull request #153 from LabNConsulting/working/2.0/patch-set/rr-part2 (diff) | |
download | frr-1a35e2e56533f75d68ed30bf24b3c131da4ba950.tar.xz frr-1a35e2e56533f75d68ed30bf24b3c131da4ba950.zip |
Merge remote-tracking branch 'origin/stable/2.0'
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r-- | bgpd/bgp_bfd.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index 7892005f0..b8158dc31 100644 --- a/bgpd/bgp_bfd.c +++ b/bgpd/bgp_bfd.c @@ -171,6 +171,9 @@ bgp_bfd_deregister_peer (struct peer *peer) if (!CHECK_FLAG(bfd_info->flags, BFD_FLAG_BFD_REG)) return; + bfd_info->status = BFD_STATUS_DOWN; + bfd_info->last_update = bgp_clock(); + bgp_bfd_peer_sendmsg(peer, ZEBRA_BFD_DEST_DEREGISTER); } @@ -311,14 +314,14 @@ bgp_bfd_dest_update (int command, struct zclient *zclient, prefix2str(&dp, buf[0], sizeof(buf[0])); if (ifp) { - zlog_debug("Zebra: interface %s bfd destination %s %s", - ifp->name, buf[0], bfd_get_status_str(status)); + zlog_debug("Zebra: vrf %d interface %s bfd destination %s %s", + vrf_id, ifp->name, buf[0], bfd_get_status_str(status)); } else { prefix2str(&sp, buf[1], sizeof(buf[1])); - zlog_debug("Zebra: source %s bfd destination %s %s", - buf[1], buf[0], bfd_get_status_str(status)); + zlog_debug("Zebra: vrf %d source %s bfd destination %s %s", + vrf_id, buf[1], buf[0], bfd_get_status_str(status)); } } |