problem making toast

149 views
Skip to first unread message

peter...@gmail.com

unread,
Mar 11, 2015, 9:46:07 AM3/11/15
to neto...@googlegroups.com
Hi,

I'm a new user of netopeer cli, can someone tell me how to use the example toast module.
Currently,when I type in user-rpc as follow:


netconf> user-rpc 

  Type the content of a RPC operation (close editor by Ctrl-D): 
<toaster:make-toast xmlns:toaster="http://netconfcentral.org/ns/toaster"/> 


an error will appear saying: NETCONF error: operation-failed (application) - There is no device/data that could be affected.

Thanks,
Peter

Michal Vasko

unread,
Mar 12, 2015, 3:50:17 AM3/12/15
to neto...@googlegroups.com
Hello Peter,

your RPC seems fine, so I believe you are using netopeer-server and not netopeer-server-sl? Toaster is an example transAPI module included in the single-layer (sl) server, but this one is no longer supported. However, there is an example module in the multi-level server as well and you can find it in "netopeer/transAPI/turing", it's a Turing machine simulation. I suggest you play with that module, installing it will also add it to the netopeer-server.

There is also the possibility of adding the toaster module into netopeer-server, but it requires some basic knowledge of the server and modules, which I'm not sure you have. But it is quite simple, you can do it with the help of the netopeer-manager utility. Also, using netopeer-configurator you can see all the installed transAPI modules and other useful information.

Regards,
Michal

peter...@gmail.com

unread,
Mar 12, 2015, 5:17:26 AM3/12/15
to neto...@googlegroups.com
Hi Michal,

Thank you so much for the advice. I installed the turing-machine module on the multi-level server. 
Could you explain briefly how to use the turing-machine module?

Regards,
Peter

在 2015年3月12日星期四 UTC+8下午3:50:17,Michal Vasko写道:

Michal Vasko

unread,
Mar 12, 2015, 6:42:37 AM3/12/15
to neto...@googlegroups.com
Hi Peter,

I am not sure what you are asking. Basically, use edit-config to set some configuration of the Turing machine and then execute it by sending an RPC defined in the turing model. Any information regarding edit-config you can find in the RFC 6241, regarding the Turing machine implementation in the turing model.

Regards,
Michal

peter...@gmail.com

unread,
Mar 19, 2015, 3:26:15 AM3/19/15
to neto...@googlegroups.com
Hi Michal,

Could you provide an example edit-config command to use for setting the configuration of the Turing machine and and example RPC for executing it.
Also, in which file are the RPC commands defined?

Thanks,
Peter

在 2015年3月12日星期四 UTC+8下午6:42:37,Michal Vasko写道:

Michal Vasko

unread,
Mar 19, 2015, 3:45:41 AM3/19/15
to neto...@googlegroups.com
Hi Peter,

please try to explore the turing module files yourself, everything is there. Two example configurations are in "turing/examples". Using netopeer-cli you can easily send them to the server (edit-config --config <path_to_a_file> running) and then executed with userrpc command with the content <run xmlns="http://example.net/turing-machine"/>. Naturally, this RPC is defined in the model "turing/turing-machine.yang" (or *.yin, if you prefer XML over YANG).

Regards,
Michal
Reply all
Reply to author
Forward
0 new messages