diff options
| author | Feng Lu <lu.feng@6wind.com> | 2015-05-22 11:40:09 +0200 |
|---|---|---|
| committer | Vipin Kumar <vipin@cumulusnetworks.com> | 2015-10-30 00:32:56 -0700 |
| commit | a31c5886dda74cab102671d3712fa2070e50d8ed (patch) | |
| tree | ddd57b9ba8dc7337620c7d0c1c3f0da7fdb960f4 /zebra/rib.h | |
| parent | e5bf3e1ed718d5982d5b56209229b669dcd016c9 (diff) | |
zebra: add hooks upon enabling / disabling a VRF
zebra_vrf_enable() is the callback for VRF_ENABLE_HOOK.
It presently needs do nothing.
zebra_vrf_disable() is the callback for VRF_DISABLE_HOOK.
It presently withdraws routes, shuts down interfaces, and
clears the router-id candidates in that VRF.
Signed-off-by: Feng Lu <lu.feng@6wind.com>
Reviewed-by: Alain Ritoux <alain.ritoux@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Vincent JARDIN <vincent.jardin@6wind.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/rib.h')
| -rw-r--r-- | zebra/rib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h index ddc6a49dcd..60a39d4727 100644 --- a/zebra/rib.h +++ b/zebra/rib.h @@ -438,6 +438,7 @@ extern void rib_update (vrf_id_t); extern void rib_update_static (vrf_id_t); extern void rib_weed_tables (void); extern void rib_sweep_route (void); +extern void rib_close_table (struct route_table *); extern void rib_close (void); extern void rib_init (void); extern unsigned long rib_score_proto (u_char proto, u_short instance); |
