]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Fixup enable/disable of static routes in vrfs
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 27 Mar 2018 13:47:20 +0000 (09:47 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 27 Mar 2018 19:52:25 +0000 (15:52 -0400)
commit90f86c0a4d3242e4158d973ebb40d2eda16ed065
treec98274005f44c8d885272143f95dfa58e36162fa
parent9713497ff4613ca980712cc35db1691f93fd43a7
zebra: Fixup enable/disable of static routes in vrfs

When a user enables and disables a vrf, we were not
properly cleaning up the static routes leaving us
in a state where we would crash by looking at anything
in zebra.

On disable of a vrf -> Search through all static routes
and if the nexthop vrf is the disabled vrf uninstall it.
Additionally uninstall all static routes in that zvrf

On enable of a vrf -> Search through all static routes
and if the nexthop vrf is the enabled vrf install it.
Additionally install all the static routes in that zvrf.

Ticket: CM-19768
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_static.c
zebra/zebra_static.h
zebra/zebra_vrf.c
zebra/zebra_vty.c