]> git.puffer.fish Git - mirror/frr.git/commit
lib: remove leaf-list xpath hack from northbound 15196/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 23 Jan 2024 00:09:25 +0000 (02:09 +0200)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 23 Jan 2024 10:33:39 +0000 (12:33 +0200)
commita594cda8cec0a67d59ee28d5fb59e958611370c9
treec3860517b2672f8785569bf8a10a85ca3a117739
parent22d1ad786f6961bf4f685599b5fb16a84b802346
lib: remove leaf-list xpath hack from northbound

Currently, when editing a leaf-list, `nb_candidate_edit` expects to
receive it's xpath without a predicate and the value in a separate
argument, and then creates the full xpath. This hack is complicated,
because it depends on the operation and on the caller being a backend or
not. Instead, let's require to always include the predicate in a
leaf-list xpath. Update all the usages in the code accordingly.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
eigrpd/eigrp_cli.c
isisd/isis_cli.c
lib/northbound.c
lib/northbound.h
lib/northbound_confd.c
lib/northbound_sysrepo.c
pimd/pim_cmd_common.c
ripd/rip_cli.c
ripngd/ripng_cli.c
vrrpd/vrrp_vty.c
zebra/interface.c