-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding custom Yang modules and TranAPI model #119
Comments
First, the data models are expected in YIN format, not YANG, see the
So, please fix the path in XML file in Note: YANG is supported in the new generation of the tools - libyang, libnetconf2 and Netopeer2 |
Thank you for your reply.I'm using yin format to add the model to server. On Tue, May 31, 2016 at 10:33 AM, Radek Krejčí notifications@github.com
|
I'm using yin format to add the toaster model to server. but still i have the issue.
reply
|
But the error does not say "datastore fails to validate" as you mentioned in the first comment. It says that you are not permitted to make changes - check the NACM settings. |
or follow the |
Sorry for the wrong attachment .
Turing machine example given in netopeer has a folder in /usr/lcoal/etc/netopeer/turing-machine which has datastore.xml,.rng,.xsl files but the toaster module i added into netopeer is not having any datastore.xml file. only toaster.xml file is added into the /usr/local/etc/netopeer/modules.conf.d/ . Does this have anything to do with the error? |
now I see it - libnotconf and netopeer actually work correctly. The data defined by the toaster module are read-only, so you are not allowed to set them via |
regarding the paths - |
Thank you radek for your time to answer me. but i'm sorry to take more time of yours. i understood about read only data, but rpc request is also giving error.
RPC reply
|
Hi, Regards, |
Result for netopeer-server -v2 root@mtznjv1nets02:/usr/local/bin# netopeer-server -v2 On Wed, Jun 1, 2016 at 2:51 AM, michalvasko notifications@github.com
|
Hi, Regards, |
Hi Mical, Request
Reply
This error is occuring for all the attributes i tried to do edit-config. |
Please follow the |
Hi Mical, On Wed, Jun 1, 2016 at 4:42 PM, Radek Krejčí notifications@github.com
|
Hi, Regards, |
Thank you Mical. Turing machine is running successfully. 1.when i run ./configure, make and make install turing machine is creating
Does this two things have anything to do with the error i'm getting. On Thu, Jun 2, 2016 at 2:52 AM, michalvasko notifications@github.com
|
Hi,
Regards, |
HI,
I'm using lnctool --model ./toaster.yang transapi --aths ./paths_file to generate .c file and editing the file with required tranapi callback functions. and installing it as mentioned in https://rawgit.com/CESNET/libnetconf/master/doc/doxygen/html/d9/d25/transapi.html
I'm using netopeer-manager add --name toaster --model /toaster.yang --datastore /usr/loc to add the yang model to server and i can see .xml file added to /usr/local/etc/netopeer/modules.conf.d
I want to know is this the right way of adding the yang models because im not able to use edit-config on the yang models. It says datastore fails to validate. Please help me in solving it.
The text was updated successfully, but these errors were encountered: