summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/vrf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index d87e38ebe..13884aba6 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -124,6 +124,7 @@ vrf_get (vrf_id_t vrf_id, const char *name)
zlog_debug ("VRF(%u) %s is created.",
vrf_id, (name) ? name : "(NULL)");
strcpy (vrf->name, name);
+ vrf->vrf_id = VRF_UNKNOWN;
listnode_add_sort (vrf_list, vrf);
if_init (&vrf->iflist);
QOBJ_REG (vrf, vrf);