-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
43 lines (31 loc) · 1.46 KB
/
README
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
35
36
37
38
39
40
41
42
43
Yuma123 README
-----------
Last Updated: 2015-06-18 (v2.5-1)
==What is Yuma123==
The purpose of the Yuma123 project is to provide an opensource YANG API in C and netconf cli (yangcli) and server (netconfd) appications.
Branching from the last BSD licensed branch of the Yuma project the code has evolved in the following direction:
- a more mainstream build system based on autoconf/automake was added
- a number of critical bugs have been fixed
- new IETF standards support was added (ietf-nacm, ietf-system, etc.)
- support was added for new YANG extensions
==Checkout, Build and Installation steps (ment for Debian should be easy to figure out on other systems)==
sudo apt-get install git autoconf gcc libtool libxml2-dev libssl-dev libssh2-1-dev
git clone git://git.code.sf.net/p/yuma123/git yuma123-git
cd yuma123-git
autoreconf -i -f
./configure CFLAGS='-g -O0' CXXFLAGS='-g -O0' --prefix=/usr
make
sudo make install
touch /tmp/startup-cfg.xml
/usr/sbin/netconfd --module=helloworld --startup=/tmp/startup-cfg.xml --log-level="debug4" --superuser="$USER"
If there were no missing dependencies the server is now started with the example helloworld module.
Tell sshd to listen on port 830. Add the following 2 lines to /etc/ssh/sshd_config:
Port 830
Subsystem netconf "/usr/sbin/netconf-subsystem --ncxserver-sockname=830@/tmp/ncxserver.sock"
sudo /etc/init.d/ssh restart
You can verify everything is OK:
yangcli --user="$USER" --server=localhost
...
xget /helloworld
or
xget /