]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_fsm.c
This patch changes BGP from only listening mode for BFD status updates to interactive...
[mirror_frr.git] / bgpd / bgp_fsm.c
index 6089cbd94a88d9187e5b8155fa846a7133049300..33c5066cd335c4b56f821fe5289e8b9fca1416da 100644 (file)
@@ -48,6 +48,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 #endif /* HAVE_SNMP */
 #include "bgpd/bgp_updgrp.h"
 #include "bgpd/bgp_nht.h"
+#include "bgpd/bgp_bfd.h"
 
 /* Definition of display strings corresponding to FSM events. This should be
  * kept consistent with the events defined in bgpd.h
@@ -1059,6 +1060,8 @@ bgp_stop (struct peer *peer)
 
       /* Reset peer synctime */
       peer->synctime = 0;
+
+      bgp_bfd_deregister_peer(peer);
     }
 
   /* Stop read and write threads when exists. */
@@ -1548,6 +1551,7 @@ bgp_establish (struct peer *peer)
        peer_delete(peer->doppelganger);
     }
 
+  bgp_bfd_register_peer(peer);
   return ret;
 }