summaryrefslogtreecommitdiffstats
path: root/bgpd/bgpd.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2016-03-22 18:46:30 +0100
committervivek <vivek@cumulusnetworks.com>2016-03-22 18:46:30 +0100
commit5fe9f9631d3be324202667f26e93cddead762e8c (patch)
treebcacc70da17637ef93f2e400ca8b0fc0a788aaa2 /bgpd/bgpd.h
parentZebra: Restrict IPv6 RA to valid interfaces (diff)
downloadfrr-5fe9f9631d3be324202667f26e93cddead762e8c.tar.xz
frr-5fe9f9631d3be324202667f26e93cddead762e8c.zip
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
Diffstat (limited to 'bgpd/bgpd.h')
-rw-r--r--bgpd/bgpd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index 240694bb6..e72fab006 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -108,6 +108,11 @@ struct bgp_master
u_int64_t updgrp_idspace;
u_int64_t subgrp_idspace;
+
+ /* timer to dampen route map changes */
+ struct thread *t_rmap_update; /* Handle route map updates */
+ u_int32_t rmap_update_timer; /* Route map update timer */
+#define RMAP_DEFAULT_UPDATE_TIMER 5 /* disabled by default */
};
/* BGP route-map structure. */
@@ -303,11 +308,6 @@ struct bgp
/* BGP redistribute configuration. */
struct list *redist[AFI_MAX][ZEBRA_ROUTE_MAX];
- /* timer to dampen route map changes */
- struct thread *t_rmap_update; /* Handle route map updates */
- u_int32_t rmap_update_timer; /* Route map update timer */
-#define RMAP_DEFAULT_UPDATE_TIMER 5 /* disabled by default */
-
/* timer to re-evaluate neighbor default-originate route-maps */
struct thread *t_rmap_def_originate_eval;
#define RMAP_DEFAULT_ORIGINATE_EVAL_TIMER 5