]> git.puffer.fish Git - mirror/frr.git/commit
zebra: configure static routes in any VRF
authorFeng Lu <lu.feng@6wind.com>
Fri, 22 May 2015 09:40:06 +0000 (11:40 +0200)
committerVipin Kumar <vipin@cumulusnetworks.com>
Fri, 30 Oct 2015 07:12:52 +0000 (00:12 -0700)
commit8f527c5e7e6888a7fced25928ea22899259ab49f
treede7d234b3d65fa675852210803f577c045c2f675
parentf91386cb7dcc3992d34e220c04f8f1def00105fd
zebra: configure static routes in any VRF

Introduce new commands to configure static routes in any VRF, by
appending the old static route commands with a new parameter
"vrf N".

A new parameter "const char *vrf_id_str" is added to the functions
zebra_static_ipv4() and static_ipv6_func() to get the configured
VRF ID.

A new member "vrf_id" is added to the "struct static_ipv4" and
"struct static_ipv6", indicating which VRF this static route is
configured in.

But till now, no interface can exist in any non-default VRF. So
these static routes in non-default VRFs are kept inactive.

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>
Conflicts:
zebra/zebra_rib.c
zebra/zebra_vty.c
zebra/rib.h
zebra/zebra_rib.c
zebra/zebra_vty.c