diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2023-10-09 02:21:16 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-11 14:06:53 +0100 |
commit | d726114790464831b1d377eb3acc05c2933e3cd8 (patch) | |
tree | f23c3e1eaf654359d0bf28722eae92fcf5544f97 /lib/northbound.h | |
parent | lib: move dnode creation into a separate function (diff) | |
download | frr-d726114790464831b1d377eb3acc05c2933e3cd8.tar.xz frr-d726114790464831b1d377eb3acc05c2933e3cd8.zip |
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>
Diffstat (limited to 'lib/northbound.h')
-rw-r--r-- | lib/northbound.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/northbound.h b/lib/northbound.h index ef774fb47..3dd9d09d4 100644 --- a/lib/northbound.h +++ b/lib/northbound.h @@ -723,6 +723,7 @@ enum nb_operation { NB_OP_MODIFY, NB_OP_DESTROY, NB_OP_DELETE, + NB_OP_REPLACE, NB_OP_MOVE, }; |