sysrepo icon indicating copy to clipboard operation
sysrepo copied to clipboard

Any rpc/action which handles the state data

Open surabhi-Siemens opened this issue 2 years ago • 5 comments

Assuming that streams are defined and handled like state data:

1.) They are not influence or part of the configuration datastore and thus not influenced by any lock to a datastore. 2.) They can only read by using the command. 3.) An action / rpc is able to “Netconf servers must serialize;” consistently update stream entries if they are defined “read-only”/state data

Any / which handles state data should be able to consistently update this data!

surabhi-Siemens avatar Sep 08 '22 08:09 surabhi-Siemens

What streams are you talking about?

michalvasko avatar Sep 08 '22 09:09 michalvasko

Let me rephrase the question, via user-rpc call we are able to modify config data, suppose if there is and sate node, is it possible to update it by RPC call?

surabhi-Siemens avatar Sep 08 '22 09:09 surabhi-Siemens

There is no standardized RPC to modify state (operational) data. However, sysrepo allows that in several ways so defining your own RPC that would use some of these methods is always possible. In general, these data should be provided by system apps/daemons as they should inform about their state.

michalvasko avatar Sep 08 '22 09:09 michalvasko

Any example where i can find these methods?

surabhi-Siemens avatar Sep 08 '22 09:09 surabhi-Siemens

Everything is in the docs.

michalvasko avatar Sep 08 '22 09:09 michalvasko