]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Allow for storage of non-configed vrf routes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 1 Mar 2018 10:10:47 +0000 (05:10 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 7 Mar 2018 19:33:59 +0000 (14:33 -0500)
commit4060008bdac311b7340c12e2df9ae5d72c28afd8
treed01bd355951baa3a46ec2aa7a951131613ffc334
parent2bfe7ba7d416b6c2ea60f597cbeb0ecc711d486d
zebra: Allow for storage of non-configed vrf routes

When zebra is being configed we allow for static routes
to be entered.  This presents a problem for when a vrf
is cli configed but not kernel configed yet.

Modify zebra to notice that when a static route is
entered and either the nexthop vrf or the vrf
is not fully configed, to save that config to the
side.

When vrf's become active( kernel configed ) parse
through the list of saved to the side static routes
and determine if any of them can be installed.

Additionally modify the cli to output the saved
to the side cli, so that we can properly handle
a wr mem.

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