struct route_node *rn;
struct static_route *si;
struct route_table *stable;
+ struct zebra_vrf *zvrf = vrf_info_lookup (vrf_id);
/* Lookup table. */
- stable = zebra_vrf_static_table (AFI_IP, SAFI_UNICAST, vrf_id);
+ stable = zebra_vrf_static_table (AFI_IP, SAFI_UNICAST, zvrf);
if (! stable)
return -1;
struct route_node *rn;
struct static_route *si;
struct route_table *stable;
+ struct zebra_vrf *zvrf = vrf_info_lookup (vrf_id);
/* Lookup table. */
- stable = zebra_vrf_static_table (AFI_IP6, SAFI_UNICAST, vrf_id);
+ stable = zebra_vrf_static_table (AFI_IP6, SAFI_UNICAST, zvrf);
if (! stable)
return -1;
/* Lookup the static routing table in a VRF. */
struct route_table *
-zebra_vrf_static_table (afi_t afi, safi_t safi, vrf_id_t vrf_id)
+zebra_vrf_static_table (afi_t afi, safi_t safi, struct zebra_vrf *zvrf)
{
- struct zebra_vrf *zvrf = vrf_info_lookup (vrf_id);
-
if (!zvrf)
return NULL;
extern struct zebra_vrf *zebra_vrf_lookup (vrf_id_t vrf_id);
extern struct zebra_vrf *zebra_vrf_alloc (vrf_id_t, const char *);
extern struct route_table *zebra_vrf_table (afi_t, safi_t, vrf_id_t);
-extern struct route_table *zebra_vrf_static_table (afi_t, safi_t, vrf_id_t);
+extern struct route_table *zebra_vrf_static_table (afi_t, safi_t, struct zebra_vrf *zvrf);
extern struct route_table *zebra_vrf_other_route_table (afi_t afi, u_int32_t table_id,
vrf_id_t vrf_id);
extern void zebra_vrf_init (void);