]> git.puffer.fish Git - mirror/frr.git/commit
mgmt, lib: implement REPLACE operation
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 9 Oct 2023 00:21:16 +0000 (03:21 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 11 Jan 2024 13:06:53 +0000 (15:06 +0200)
commitd726114790464831b1d377eb3acc05c2933e3cd8
treef23c3e1eaf654359d0bf28722eae92fcf5544f97
parentfe0d4dc2cb8fdf63524d92ab364157904327eb29
mgmt, lib: implement REPLACE operation

Replace operation removes the current data node configuration and sets
the provided value. As current northbound code works only with one
xpath at a time, the operation only makes sense to clear the config of
a container without deleting it itself. However, the next step is to
allow passing JSON-encoded complex values to northbound operations which
will make replace operation much more useful.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/mgmt.proto
lib/mgmt_be_client.c
lib/northbound.c
lib/northbound.h
lib/vty.c
mgmtd/mgmt_txn.c
mgmtd/mgmt_vty.c