]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_routemap.c
Quagga: Make routemap updates or deletes work for VRFs
authorvivek <vivek@cumulusnetworks.com>
Tue, 22 Mar 2016 17:46:30 +0000 (17:46 +0000)
committervivek <vivek@cumulusnetworks.com>
Tue, 22 Mar 2016 17:46:30 +0000 (17:46 +0000)
commit5fe9f9631d3be324202667f26e93cddead762e8c
treebcacc70da17637ef93f2e400ca8b0fc0a788aaa2
parentc23af4d3e6ea864774f0bedfccc9ed1acb2cfab2
Quagga: Make routemap updates or deletes work for VRFs

Updates to routemaps and delete of the routemap were not working properly
for VRFs. This was because while routemaps are global, the routemap update
processing timer and the processing were at the per-instance level. This
approach was unable to handle processing for multiple instances as the
routemap has no tracking of which instances are still pending processing.
This lead to the processing happening correctly only for the first instance
- which could be the default instance or some other instance. It could also
result in reference to freed memory for an instance.

The fix done is to make the update/delete processing also global and not per
instance. This means that the route-map delay timer will be global and a global
thread will handle the change (or delete) for all instances instead of spawning
a separate thread for each instance. To support this, a global BGP command
"bgp route-map delay-timer <value>" has been implemented. The existing command
per-instance is not deleted but will update the global timer.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-6970, CM-9918
Reviewed By: CCR-4320
Testing Done: Manual, bgpsmoke
bgpd/bgp_routemap.c
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h
lib/routemap.c
lib/routemap.h