diff options
author | radhika <radhika@cumulusnetworks.com> | 2016-05-09 05:11:18 +0200 |
---|---|---|
committer | radhika <radhika@cumulusnetworks.com> | 2016-05-09 05:11:18 +0200 |
commit | 567b877d7ff2c04ccf62bca75338cec7a560f184 (patch) | |
tree | 216b7fa0e0cb090fd081c5810b2be507acd0ff59 /bgpd/bgp_bfd.c | |
parent | BGP: At exit, remove callbacks before invoking vrf_terminate() (diff) | |
download | frr-567b877d7ff2c04ccf62bca75338cec7a560f184.tar.xz frr-567b877d7ff2c04ccf62bca75338cec7a560f184.zip |
zebra - BFD client de-registration support
CM-10680
Issue: When BGP daemon is stopped, all the BGP BFD sessions are not getting deleted from PTM.
Root cause: BGP daemon stop causes BFD de-register message to be sent for every peer on which BFD is enabled. But, all the de-register messages from bgpd to zebra are not processed before the socket close. This results in some stale BGP BFD sessions.
Fix: Support for client de-register message has been added in PTM/BFD. Changes in Quagga to support BFD client de-registrations:
− The BFD clients de-registration is sent directly from zebra daemon when zebra client (bgpd, ospfd and ospf6d) socket close is detected.
− Introduced a BFD flag for the zebra clients to prevent BFD de-registration messages from being sent to zebra daemon when the client is shutting down. This reduces the BFD messaging.
CM-10540
Issue: Invalid ptm status “fail” instead of “n/a” being displayed for VRF interfaces.
Root cause: ptm status is not being initialized to “unknown” status when VRF interface is added or changed. The uninitialized value is ‘0’ which is the value for “fail”
Fix: Initialized the ptm status to the correct value.
Signed-off-by: Radhika Mahankali <radhika@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Kanna Rajagopal <kanna@cumulusnetworks.com>
Ticket: CM-10680, CM-10540
Reviewed By: CCR-4653
Testing Done: PTM smoke, BGP smoke and ptmd_test.py:TestMultipleAddrsIntfOspfBgp
Diffstat (limited to 'bgpd/bgp_bfd.c')
-rw-r--r-- | bgpd/bgp_bfd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_bfd.c b/bgpd/bgp_bfd.c index da50fd2ba..b64fbee04 100644 --- a/bgpd/bgp_bfd.c +++ b/bgpd/bgp_bfd.c @@ -698,6 +698,8 @@ DEFUN_HIDDEN (no_neighbor_bfd_type, void bgp_bfd_init(void) { + bfd_gbl_init(); + /* Initialize BFD client functions */ zclient->interface_bfd_dest_update = bgp_bfd_dest_update; zclient->bfd_dest_replay = bgp_bfd_dest_replay; |