]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: send link parameters to zclients once they request interface info
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 18 Jan 2019 18:06:00 +0000 (16:06 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 19 Feb 2019 12:42:08 +0000 (09:42 -0300)
We were sending ZEBRA_INTERFACE_LINK_PARAMS messages under the
following circumstances:
* New interface was created (via kernel or config);
* Interface went from down to up;
* Update in the link-params configuration.

Now also send ZEBRA_INTERFACE_LINK_PARAMS messages whenever a zclient
connects and sends a ZEBRA_INTERFACE_ADD request. Without this fix,
the client daemons don't receive interface link parameters if they
are configured in the zebra startup configuration.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zapi_msg.c

index 9b20e366fc46a9fae3979c606316cb8c97064f0e..cd43d67ab4800756606873cf797f8c84912ae2b6 100644 (file)
@@ -1323,6 +1323,7 @@ static void zread_interface_add(ZAPI_HANDLER_ARGS)
                                continue;
 
                        zsend_interface_add(client, ifp);
+                       zsend_interface_link_params(client, ifp);
                        zsend_interface_addresses(client, ifp);
                }
        }