File: README

package info (click to toggle)
yuma123 2.14-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,436 kB
  • sloc: ansic: 185,144; cpp: 10,968; python: 7,990; sh: 2,676; makefile: 1,175; xml: 807; exp: 776; perl: 70
file content (34 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
==Standalone project for netconfd module implementing helloworld.yang==
Dependency: installed netconfd run-time binaries and development shared libraries and headers.

===Build and install===
 autoreconf -i -f
 ./configure CFLAGS="-g -O0"  CXXFLAGS="-g -O0" --prefix=/usr
 make
 sudo make install

===Running===
Terminal 1:
 $ /usr/sbin/netconfd --module=helloworld --no-startup
Terminal 2:
 $ yangcli --server=localhot --user=${USER}
 
 yangcli vladimir@localhost> create /helloworld/message value="Hello World!"
 
 RPC OK Reply 2 for session 1:
 
 yangcli vladimir@localhost> commit
 
 RPC OK Reply 3 for session 1:
 
 yangcli vladimir@localhost> xget /helloworld/message
 
 RPC Data Reply 4 for session 1:
 
 rpc-reply {
   data {
     helloworld {
       message 'Hello World!'
     }
   }
 }