Fix the instance startup to allow separation between the data structure
setup for pim instances from actual attempt to use. More than
likely there will be other issues that need to be fixed but
this gets us 'working' again.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
if (vrf->vrf_id == VRF_DEFAULT)
pimg = pim;
- pim_mroute_socket_enable(pim);
-
pim_rp_init(pim);
pim_oil_init(pim);
return 0;
}
+/*
+ * Code to turn on the pim instance that
+ * we have created with new
+ */
static int pim_vrf_enable(struct vrf *vrf)
{
- // struct pim_instance *pim;
+ struct pim_instance *pim = (struct pim_instance *)vrf->info;
zlog_debug("%s: for %s", __PRETTY_FUNCTION__, vrf->name);
- // vrf->info = (void *)pim;
-
- // if (vrf->vrf_id == VRF_DEFAULT)
- // pimg = pim;
+ pim_mroute_socket_enable(pim);
return 0;
}