]> git.puffer.fish Git - mirror/frr.git/commit
lib: use LYD_VALIDATE_MULTI_ERROR only if available 14831/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Mon, 20 Nov 2023 09:29:57 +0000 (10:29 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 20 Nov 2023 09:32:52 +0000 (10:32 +0100)
commit75a7b5b6b64fde187acdfde67e60396f7634664c
tree751cfbc63366b3283a6541337dd3dd1e0854090f
parentf9012ed5cf9ade94e73744e7dc61f671ea596c40
lib: use LYD_VALIDATE_MULTI_ERROR only if available

LYD_VALIDATE_MULTI_ERROR was added in libyang 2.1.36.  The currently
enforced minimum of libyang is 2.0.0.  Stick an #ifdef around it.

Fixes: 51a2a4b3f471 ("lib: print all errors when validating a config")
Cc: Igor Ryzhov <iryzhov@nfware.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/northbound.c