summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVipin Kumar <vipin@cumulusnetworks.com>2015-10-30 02:12:14 -0700
committerVipin Kumar <vipin@cumulusnetworks.com>2015-10-30 02:12:14 -0700
commit92955671de04097089fc3fd62dda351ab00b0ce6 (patch)
tree0253dd46d7c5d7b87e3ef1845ec2ae9ba83e5e5c
parent8f7d9fc0883869bb32f67b4f70f017141d412ccb (diff)
zebra_vrf lookup fix in upstream VRF patches
Ticket: Reviewed By: Testing Done: <DETAILED DESCRIPTION (REPLACE)>
-rw-r--r--zebra/zebra_rib.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 5fd6545ffe..ffa3161f2b 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -79,9 +79,6 @@ static const struct
/* no entry/default: 150 */
};
-/* Vector for routing table. */
-static vector zebra_vrf_vector;
-
/*
* nexthop_type_to_str
*/
@@ -4178,7 +4175,7 @@ zebra_vrf_alloc (vrf_id_t vrf_id)
struct zebra_vrf *
zebra_vrf_lookup (vrf_id_t vrf_id)
{
- return vector_lookup (zebra_vrf_vector, vrf_id);
+ return vrf_info_lookup (vrf_id);
}
/* Lookup the routing table in an enabled VRF. */