summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-05-25 21:24:01 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-26 19:21:20 -0400
commit48e8451b8ebeb553bb273dea45fa2856e15e43e7 (patch)
tree87ce659942be6f6724a26b9eba19ea75bc91bf49 /pimd/pim_zebra.c
parentd3a9c768789d10ba8b947510eb20bdc20a336224 (diff)
pimd: Forgot to add the vrf_init call
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>
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index 1df2f70513..b3e61f2b06 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -650,6 +650,11 @@ static int redist_read_ipv4_route(int command, struct zclient *zclient,
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;
@@ -666,6 +671,7 @@ void pim_zebra_init(char *zebra_sock_path)
/* 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;