summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-04-08 19:32:53 +0000
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-04-12 20:19:28 -0400
commit58255d344034a360de07b4998ff2936a8d2c604d (patch)
tree15a70889ce025b9217b845732eaf6d1f2fe9e772 /zebra/zebra_rib.c
parent88227bbe362c827208541f8bd145bd2cccfb1f59 (diff)
lib, zebra: Refactor vrf creation a bit more
Create the idea of a VRF_UNKNOWN, this is for a vrf where we don't yet have the vrf_id for it yet. Refactor the vrf_create code out of existence. We had two code paths vrf_create and vrf_get. We should use vrf_get to create the new vrf since XXX_get() creates the data structures now. Signed-off-by: Donald Sharp Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 8492222ad8..5e0e8149c9 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1284,7 +1284,7 @@ rib_process (struct route_node *rn)
char buf[INET6_ADDRSTRLEN];
rib_dest_t *dest;
struct zebra_vrf *zvrf = NULL;
- vrf_id_t vrf_id = 0;
+ vrf_id_t vrf_id = VRF_UNKNOWN;
assert (rn);