]> git.proxmox.com Git - mirror_frr.git/commit
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>
Fri, 18 Jan 2019 18:06:00 +0000 (16:06 -0200)
commit27ecbea30bdd1ddcddea4fcd2582902c1daf9712
tree2a3f3e1cd4fa4dbb7ebe645e89552272c3e33931
parentedc127627d19da37fb247ee76999d17e651c2237
zebra: send link parameters to zclients once they request interface info

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