Forward port of vrf code didn't have the pimd
code. So when it was forward ported we lost
the vrf_init. Now that we have pimd let's
add it back in.
Additionally forward port lost the
additional zclient->zebra_connect call.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
#include "vty.h"
#include "sigevent.h"
#include "version.h"
+#include "vrf.h"
#include "pimd.h"
#include "pim_version.h"
cmd_init(1);
vty_init(master);
memory_init();
+ vrf_init ();
access_list_init();
pim_init();
return 0;
}
+static void
+pim_zebra_connected (struct zclient *zclient)
+{
+ zclient_send_reg_requests (zclient, VRF_DEFAULT);
+}
void pim_zebra_init(char *zebra_sock_path)
{
int i;
/* Socket for receiving updates from Zebra daemon */
qpim_zclient_update = zclient_new (master);
+ qpim_zclient_update->zebra_connected = pim_zebra_connected;
qpim_zclient_update->router_id_update = pim_router_id_update_zebra;
qpim_zclient_update->interface_add = pim_zebra_if_add;
qpim_zclient_update->interface_delete = pim_zebra_if_del;