]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd, zebra: Fix for ignored non-default VRF single-hop BFD status messages in Quagga
authorradhika <radhika@cumulusnetworks.com>
Fri, 6 Jan 2017 20:54:25 +0000 (12:54 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 30 Jan 2017 18:40:21 +0000 (13:40 -0500)
commit3fa113f00cf15f8248db399b6da7210e8db3ceb4
treec610cb9cb03f5c490127612ae78a61044f3c48b7
parent78e31f4663d413a7ab18bb9c4b77e55fc8007396
bgpd, zebra: Fix for ignored non-default VRF single-hop BFD status messages in Quagga

Ticket: CM-13425
Reviewed By: Donald, Kanna
Testing Done: Unit, Min tests, PTM Smoke and Nightly, BGP Smoke

Issue: BFD status up/down not reflected in the Quagga for non-default VRF single-hop BFD sessions.

Root Cause: PTM doesn’t keep track of VRF for Single hop BFD sessions since they are interface-based sessions. The status up/down messages to the quagga for single hop sessions do not have VRF information. In zebra daemon, the interface search based on the interface name extracted from the BFD status message is done across all VRFs. So, the search does not fail in zebra daemon. But, the interface search in bgpd/ospd is done per vrf and default VRF is used for search if no VRF is sent in the status message. So, the search fails and the BFD status changes are ignored.

Fix: The VRF information is extracted from the interface if VRF is not sent in the BFD status messages in zebra daemon and passed to bgpd/ospfd. The interface search will not fail since the appropriate VRF is passed to bgpd/ospfd and BFD satus changes are not ignored.

Signed-off-by: Radhika Mahankali <radhika@cumulusnetworks.com>
bgpd/bgp_bfd.c
zebra/zebra_ptm.c