-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
41 lines (31 loc) · 1.33 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
litenc - light NETCONF session framer API allowing the user full control without going through any XML validation of the PDUs. litenc can be easily extended with wrappers doing more based on the simple core functionality see litenc_lxml.
The entire litenc API is composed of 4+1 functions:
* connect
* send
* receive
* close
** rpc - is a sequence of send and receive calls. Handy when you do not need the full control provided by send and receive.
For short example check:
scripts/netconf_get - script connecting to netconf server sending <get> RPC and printing to the standard output the reply XML.
Installation:
sudo apt-get -y install python python-lxml libxml2-utils python-paramiko
sudo python setup.py install
cd tntapi
sudo python setup.py install
# In case you use yangrpc with yangcli syntax (recommended) you have to install yuma123 with client side python support yangrpc/yangcli
cd ~
git clone https://github.com/vlvassilev/yuma123.git
cd yuma123
apt-get -y install libxml2-dev libssh2-1-dev libncurses5-dev zlib1g-dev libreadline-dev libssl-dev
autoreconf -i -f
./configure CFLAGS="-g -O0" CXXFLAGS="-g -O0" --prefix=/usr
make
make install
cd netconf/python
apt-get -y install python-all-dev
autoreconf -i -f
./configure CFLAGS="-g -O0" CXXFLAGS="-g -O0" --prefix=/usr
make
make install
python setup.py install
Done.