]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Always resend nexthop information when registered
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 16:43:26 +0000 (11:43 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 16:47:22 +0000 (11:47 -0500)
Always resend the nexthop information when we get a registration
event.  Multiple daemons expect this information.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
zebra/zebra_rnh.c

index f57bf7984a54d4b2ddc182a4c024d24b105d924c..e92cd8bb8a2511fec930a73ef1b4c3e7598dc55a 100644 (file)
@@ -213,10 +213,14 @@ void zebra_add_rnh_client(struct rnh *rnh, struct zserv *client,
                           zebra_route_string(client->proto),
                           rnh_str(rnh, buf, sizeof(buf)), type);
        }
-       if (!listnode_lookup(rnh->client_list, client)) {
+       if (!listnode_lookup(rnh->client_list, client))
                listnode_add(rnh->client_list, client);
-               send_client(rnh, client, type, vrf_id);
-       }
+
+       /*
+        * We always need to respond with known information,
+        * currently multiple daemons expect this behavior
+        */
+       send_client(rnh, client, type, vrf_id);
 }
 
 void zebra_remove_rnh_client(struct rnh *rnh, struct zserv *client,