How to send RPC messages while netconf server is running? #1706
-
Hello. I know that the general idea of netconf is to edit the candidate datastore, and then commit the changes to the running datastore. Is there a way to edit only parts of a datastore without accessing the xml file with sysrepocfg? Say I have this candidate datastore
And I only want to edit |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
That's not necessarily true. There are many way how a NETCONF server might implement datastores, and for example sysrepo + netopeer2 make it trivial to edit either
The netopeer2 server is "just" a NETCONF frontend on top of sysrepo, the YANG database. In NETCONF, if you want to set a leaf like this to some value, you send an
In NETCONF, there's no concept of XML files. What's probably confusing you is the |
Beta Was this translation helpful? Give feedback.
What the documentation says is right and it should not be confusing. You either specify a file or the configuration will be read from input (with the help of a text editor). You were trying to "specify a file" (there is a parameter for
--config
) which was actually the configuration itself. To read the configuration from input, use just--config
.Seems you do not understand how
getopt(3)
works but it is used by 99% parameter processing so you should get familiar with it. This issue has nothing to do with our tools directly.