]> git.puffer.fish Git - matthieu/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)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 2 Aug 2019 08:22:02 +0000 (11:22 +0300)
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 0b585af6a0316b701fc933f8ab53ef8f6931966d..385f766b70b13c9da71ef7beda93b127affe3660 100644 (file)
@@ -211,10 +211,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,