CESNET / libnetconf

C NETCONF library
Other
113 stars 83 forks source link

Question regarding datastore having multiple top level nodes #215

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

I am currently implementing ietf-ptp-dataset and found it has direct list under module without any container. So transapi should return configuration data with multiple nodes in a xmldoc. What should be the root of such module ? I tried to put the nodes within . But it did not work. Libnetconf is putting all the content along with in datastore.xml file.

Does libnetconf support such model ?

michalvasko commented 8 years ago

Hi, it seems libnetconf supports this to certain limited extent meaning the model can be parsed (even this was not possible some long time ago). However, we do not work with such models and so it seems there are some things missing for it to work properly.

You can look into it and we will accept a pull request that will fix it, but we are busy working on libnetconf2 (which can handle models with more top-level elements without problems) and related tools. We will not add any new features to libnetconf.

Regards, Michal