Christian Hopps
255026c2ce
mgmtd: add notify selectors to filter datastore notifications
...
- Additionally push the selectors down to the backends
Signed-off-by: Christian Hopps <chopps@labn.net>
2025-01-13 23:40:52 -05:00
Christian Hopps
30777991c0
lib: add NOTIF message ops (notification, replace, delete, patch)
...
- needed for supporting backend datastore notifications
Signed-off-by: Christian Hopps <chopps@labn.net>
2025-01-07 05:34:06 -05:00
Christian Hopps
a65cdb60a3
lib: mgmtd: use less common macro scoped variable names
...
- ran into problem with darr macros and nested macros using the same name
variables as passed in variables in an out scope. Make these macro scoped
variables more unique as well.
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-12-15 22:01:56 -05:00
Christian Hopps
b097a966cb
lib: mgmtd: add changed
and created
to edit-reply msg
...
- This is used for various return values in RESTCONF
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-09-17 05:31:00 -04:00
Christian Hopps
3dad09b228
mgmtd: add native session-req (create/delete) messages
...
This addition allows for a limited native-message-only front-end
interaction.
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-06-11 10:37:31 -04:00
Christian Hopps
657f1650e6
mgmtd: add front-end notification selector support
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-06-06 22:39:53 -04:00
Christian Hopps
33b73f8e3a
lib: native msg add array of strings support
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-06-06 22:39:47 -04:00
Christian Hopps
41c236120f
lib: comments about public vs private message apis
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-06-04 00:51:33 -04:00
Igor Ryzhov
cb6c182852
mgmtd: add native RPC processing
...
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-04-22 16:36:22 +03:00
Igor Ryzhov
5c3e95d422
lib: add native RPC processing to mgmt backend client
...
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-04-22 16:36:22 +03:00
Igor Ryzhov
1196d947d3
mgmtd: add support for native 'edit' operation
...
This operation basically implements support for RESTCONF operations. It
receives an xpath and a data tree in JSON/XML format, instead of a list
of (xpath, value) tuples as required by the current protobuf interface.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-03-26 17:00:15 +02:00
Christian Hopps
4a93d171c2
lib: mgmtd: add xpath arg to notification message
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-02-18 18:53:37 -05:00
Igor Ryzhov
c19d0a5bf3
mgmtd: add our own format definitions for frontend messages
...
It allows people not familiar with libyang and FRR internals to use
mgmtd FE API by looking only at `mgmt_msg_native.h` header. We still use
the same values to avoid a lot of mapping code, and ensure that any
change doesn't slip unnoticed by using static asserts.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-31 02:20:13 +02:00
Igor Ryzhov
e13c590abe
mgmtd: add ability to choose datastore to get data from
...
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-31 02:20:13 +02:00
Igor Ryzhov
4317c8ffa6
mgmtd: add support for with-defaults parameter to get-data
...
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-31 02:20:13 +02:00
Christian Hopps
25bb8b203c
lib: mgmtd: add YANG notification support
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2024-01-30 04:57:10 -05:00
Igor Ryzhov
9859f308d2
lib, mgmtd: add ability to request the exact node in get-data request
...
RESTCONF expects to receive the exact node as a result, not the whole
data tree.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-15 10:27:33 +02:00
Igor Ryzhov
e1cdb38ee6
lib, mgmtd: add ability to set content type in get-data request
...
Like in RESTCONF GET request and NETCONF get-data request, make it
possible to request state-only, config-only, or all data.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-15 10:27:33 +02:00
Igor Ryzhov
25d79af957
lib, mgmtd: add separate get-data request for the frontend
...
Currently it's the same as get-tree request for the backend, but it is
going to be expanded in the following commits.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2024-01-14 20:00:22 +02:00
Christian Hopps
4e0147a05e
lib: add dedicated API functions for native msgs
...
- reorg native message header
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-12-28 17:53:40 +00:00
Christian Hopps
ad1ccb6e62
lib: northbound: add yielding and batching to oper-state queries
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-12-28 17:52:57 +00:00
Christian Hopps
8790457c46
lib: add simplified native msg support
...
This is intended to replace protobuf use in mgmtd.
Signed-off-by: Christian Hopps <chopps@labn.net>
2023-12-26 08:34:56 -05:00