
$ make
$ sudo make install
There is a version issue for
libssh
installation on Ubuntu below version 16.04. Apt-get install libssh may get
version 0.6.4. But libnetconf needs a version of 0.7.3 or later. Remove the default one and reinstall by downloading
the source code and installing it manually.
NOTE
4. Install libnetconf
$ git clone https://github.com/CESNET/libnetconf.git
$ cd libnetconf
$ git checkout 8e934324e4b1e0ba6077b537e55636e1d7c85aed -b fornetconf1
$ autoreconf --force --install
$ ./configure
$ make
$ sudo make install
5. Get tsntool source code
https://github.com/openil/tsntool.git
cd tsntool/demos/cnc/
6. Install python library
In the below command segments,
•
PATH-to-libnetconf
is the path to the libnetconf source code.
•
PATH-to-tsntool
is the path to the tsntool source code.
$ cd PATH-to-libnetconf/libnetconf
The
libnetconf
needs to add two patches based on the below commit point to fix the demo python support.
Ensure that the commit id is
313fdadd15427f7287801b92fe81ff84c08dd970
.
$ git checkout 313fdadd15427f7287801b92fe81ff84c08dd970 -b cnc-server
$ cp PATH-to-tsntool/demos/cnc/*patch .
$ git am 0001-lnctool-to-make-install-transapi-yang-model-proper.patch
$ git am 0002-automatic-python3-authorizing-with-root-password-non.patch
$ cd PATH-to-libnetconf/libnetconf/python
$ python3 setup.py build; sudo python3 setup.py install
If rebuilding python lib, you need to remove the
build
folder by command
rm build -rf
before rebuilding. On
the OpenIL board,
avahi-daemon
and netopeer server are required. Remember to also add the netopeer2-server
run at boards.
NOTE
7. Setup
avahi daemon
and disable the ipv6:
For this, edit
/etc/avahi/avahi-daemon.conf
use-ipv6=no
publish-a-on-ipv6=no
sudo systemctl start avahi-daemon.service
#If the hostname is not the OpenIL, change to OpenIL
avahi-set-host-name OpenIL
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
86 / 199