]> git.puffer.fish Git - matthieu/frr.git/commit
lib: add NB phase-specific error codes
authorEmanuele Di Pascale <emanuele@voltanet.io>
Fri, 9 Nov 2018 15:13:12 +0000 (16:13 +0100)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Tue, 18 Dec 2018 14:15:26 +0000 (15:15 +0100)
commit625b70e3da7b1ec163607cc7354404904eacf36e
tree1f94af0d2bb967420a776f62b8fefb5d0bb2a05d
parent9e7367db491b9c25a05b5d04ba6dbc0a7a0d90d8
lib: add NB phase-specific error codes

As suggested by Renato, add error codes that are specific
to the various phases of a northbound callback. These can
be used by the daemons when logging an error. The reasoning
is that validation errors typically mean that there is an
inconsistency in the configuration, a prepare error means
that we are running out of resources, and abort/apply errors
are bugs that need to be reported to the devs.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
lib/lib_errors.c
lib/lib_errors.h
lib/northbound.c