]> git.proxmox.com Git - mirror_frr.git/commit - lib/northbound_sysrepo.c
lib: return human-readable error messages to the northbound clients
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 14 May 2020 15:30:34 +0000 (12:30 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Thu, 28 May 2020 22:22:54 +0000 (19:22 -0300)
commitdf5eda3d8783a3436f43821a2840911d610fd89d
tree49cef5931b240472e6ac5b1c78da9fad2ccee0cf
parent13d6b9c1343a1f925e3ffd7be0938bf1f395b461
lib: return human-readable error messages to the northbound clients

Instead of returning only error codes (e.g. NB_ERR_VALIDATION)
to the northbound clients, do better than that and also return
a human-readable error message. This should make FRR more
automation-friendly since operators won't need to dig into system
logs to find out what went wrong in the case of an error.

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