diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-28 11:43:26 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-28 11:47:22 -0500 |
| commit | 81446366ab3ed70661c80d91c644264c74b6dbfe (patch) | |
| tree | d495e9c3912d51762c512b2cc3c52dda50ffcdb7 | |
| parent | 6c241117f87ca07afbae23a03c3a7ca59b1fce78 (diff) | |
zebra: Always resend nexthop information when registered
Always resend the nexthop information when we get a registration
event. Multiple daemons expect this information.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
| -rw-r--r-- | zebra/zebra_rnh.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index f57bf7984a..e92cd8bb8a 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -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, |
