diff options
author | Christian Hopps <chopps@labn.net> | 2025-01-08 16:34:57 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2025-01-14 05:40:52 +0100 |
commit | 255026c2cef831e38539a0f044c39d45cc0d41bd (patch) | |
tree | ba4d640a2651bf21b02404707c30a767da9ba763 /mgmtd/mgmt_txn.h | |
parent | lib: notify on datastore (oper-state) changes (diff) | |
download | frr-255026c2cef831e38539a0f044c39d45cc0d41bd.tar.xz frr-255026c2cef831e38539a0f044c39d45cc0d41bd.zip |
mgmtd: add notify selectors to filter datastore notifications
- Additionally push the selectors down to the backends
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to '')
-rw-r--r-- | mgmtd/mgmt_txn.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mgmtd/mgmt_txn.h b/mgmtd/mgmt_txn.h index 37dadc017..879d20517 100644 --- a/mgmtd/mgmt_txn.h +++ b/mgmtd/mgmt_txn.h @@ -297,6 +297,16 @@ extern int mgmt_txn_send_rpc(uint64_t txn_id, uint64_t req_id, uint64_t clients, LYD_FORMAT result_type, const char *xpath, const char *data, size_t data_len); +/** + * mgmt_txn_send_notify_selectors() - Send NOTIFY SELECT request. + * @req_id: FE client request identifier. + * @clients: Bitmask of clients to send RPC to. + * @selectors: Array of selectors or NULL to resend all selectors to BE clients. + * + * Returns 0 on success. + */ +extern int mgmt_txn_send_notify_selectors(uint64_t req_id, uint64_t clients, const char **selectors); + /* * Notifiy backend adapter on connection. */ |