]> git.proxmox.com Git - mirror_frr.git/commit
zebra: label manager refactor
authorEmanuele Di Pascale <emanuele@voltanet.io>
Thu, 27 Jun 2019 08:11:35 +0000 (10:11 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Wed, 10 Jul 2019 13:20:27 +0000 (15:20 +0200)
commite11d7c96d7de7f7117dc544f2e6a59a83335d185
tree2bcc2e595bb91211692cf6ed136c5cad27103fdf
parentff90cc95d510a314e1741357a945a9fabc8a22fb
zebra: label manager refactor

in order to both streamline the code and allow users to
define their own specialized versions of the LM api handlers,
define hooks for the 4 main primitives offered by the label
manager (i.e. connect, disconnect, get_chunk and release_chunk),
and have the existing code be run in response to a hook_call.
Additionally, have the responses to the requesting daemon be
callable from an external API.

Note that the proxy version of the label manager was a source of
issues and hardly used in practice. With the new hooks, users with
more complex requirements can simply plug in their own code to
handle label distribution remotely, so there is no longer a reason
to maintain this code.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
zebra/label_manager.c
zebra/label_manager.h
zebra/main.c
zebra/zapi_msg.c
zebra/zapi_msg.h
zebra/zserv.c
zebra/zserv.h