]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: add hooks upon enabling / disabling a VRF
authorFeng Lu <lu.feng@6wind.com>
Fri, 22 May 2015 09:40:09 +0000 (11:40 +0200)
committerVipin Kumar <vipin@cumulusnetworks.com>
Fri, 30 Oct 2015 07:32:56 +0000 (00:32 -0700)
commita31c5886dda74cab102671d3712fa2070e50d8ed
treeddd57b9ba8dc7337620c7d0c1c3f0da7fdb960f4
parente5bf3e1ed718d5982d5b56209229b669dcd016c9
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>
zebra/main.c
zebra/rib.h
zebra/test_main.c
zebra/zebra_rib.c