]> git.proxmox.com Git - mirror_frr.git/commit
lib: add fine-grained debugging in the northbound
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 12 Apr 2019 21:00:26 +0000 (18:00 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 15 Apr 2019 18:59:38 +0000 (15:59 -0300)
commit9eb2c0a1dc80c2693f3290df85e04dbe58f7575d
treef7b16bcf38283f6fe8afa6f632077396262f8e35
parente0cade1bbc408b96a60fbbe40cd2f32aa31e73f3
lib: add fine-grained debugging in the northbound

Split the "debug northbound" command into the following commands:
* debug northbound callbacks configuration
* debug northbound callbacks state
* debug northbound callbacks rpc
* debug northbound notifications
* debug northbound events
* debug northbound client confd
* debug northbound client sysrepo

If "debug northbound" is entered alone, all of its suboptions
are enabled.

This commit also adds code to debug state/rpc callbacks and
notifications (only configuration callbacks were logged before).

Use the debugging infrastructure from "lib/debug.h" in order to
benefit from its facilities (e.g. MT-safe debugging) and avoid
code duplication.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c
lib/northbound.h
lib/northbound_cli.c
lib/northbound_confd.c
lib/northbound_sysrepo.c