diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-09 20:06:13 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-23 19:35:42 -0400 | 
| commit | d4644d4196a74ef406a21b6fa6eb4a64b045bde3 (patch) | |
| tree | 782a421ecb9774837848ab47497c20c94bfa797d /zebra/rib.h | |
| parent | 528628cb2ea4f5a522bf1f6d5b702bb188c4e30e (diff) | |
zebra: Add kernel level graceful restart
<Initial Code from Praveen Chaudhary>
Add the a `--graceful_restart X` flag to zebra start that
now creates a timer that pops in X seconds and will go
through and remove all routes that are older than startup.
If graceful_restart is not specified then we will just pop
a timer that cleans everything up immediately.
Signed-off-by: Praveen Chaudhary <pchaudhary@linkedin.com>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/rib.h')
| -rw-r--r-- | zebra/rib.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index ca0801c209..0353c9bb99 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -400,7 +400,7 @@ extern struct route_entry *rib_lookup_ipv4(struct prefix_ipv4 *p,  extern void rib_update(vrf_id_t vrf_id, rib_update_event_t event);  extern void rib_update_table(struct route_table *table,  			     rib_update_event_t event); -extern void rib_sweep_route(void); +extern int rib_sweep_route(struct thread *t);  extern void rib_sweep_table(struct route_table *table);  extern void rib_close_table(struct route_table *table);  extern void rib_init(void);  | 
