]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: Send interface request after initial hello
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 4 Feb 2019 17:22:55 +0000 (12:22 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 5 Feb 2019 14:13:30 +0000 (09:13 -0500)
Ask for all interface information after we have connected
to zebra and sent the initial hello.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c

index a01da776691df59af7965bb2893670b102e1fb5e..9db1dd74f2d91421a679ffbbfa8778ee13b84fcf 100644 (file)
@@ -414,9 +414,6 @@ void zclient_send_reg_requests(struct zclient *zclient, vrf_id_t vrf_id)
        /* We need router-id information. */
        zebra_message_send(zclient, ZEBRA_ROUTER_ID_ADD, vrf_id);
 
-       /* We need interface information. */
-       zebra_message_send(zclient, ZEBRA_INTERFACE_ADD, vrf_id);
-
        /* Set unwanted redistribute route. */
        for (afi = AFI_IP; afi < AFI_MAX; afi++)
                vrf_bitmap_set(zclient->redist[afi][zclient->redist_default],
@@ -481,9 +478,6 @@ void zclient_send_dereg_requests(struct zclient *zclient, vrf_id_t vrf_id)
        /* We need router-id information. */
        zebra_message_send(zclient, ZEBRA_ROUTER_ID_DELETE, vrf_id);
 
-       /* We need interface information. */
-       zebra_message_send(zclient, ZEBRA_INTERFACE_DELETE, vrf_id);
-
        /* Set unwanted redistribute route. */
        for (afi = AFI_IP; afi < AFI_MAX; afi++)
                vrf_bitmap_unset(zclient->redist[afi][zclient->redist_default],
@@ -596,6 +590,8 @@ int zclient_start(struct zclient *zclient)
 
        zebra_hello_send(zclient);
 
+       zebra_message_send(zclient, ZEBRA_INTERFACE_ADD, VRF_DEFAULT);
+
        /* Inform the successful connection. */
        if (zclient->zebra_connected)
                (*zclient->zebra_connected)(zclient);