6. Config VLAN ID and priority filter (only for LS1028ARDB)
a. Edit configuration file, change interface name and action_spec:
$ vim ietf-br-vlan-cfg.xml
b. Send configuration file:
> edit-config --target running --config=ietf-br-vlan-cfg.xml
7. Config stream police and rate limit (only for LS1028ARDB)
a. Edit configuration file, change interface name and action_spec:
$ vim ietf-police-rate.xml
b. Send configuration file:
> edit-config --target running --config=ietf-police-rate.xml
6.5 Web UI demo
The Web UI allows the remote control of the YANG model. This demo is already added to tsntool (
tsntool/demos/cnc/
. Follow the procedure mentioned below for this demo.
1. Install related libraries
Suppose you are installing the demo on a Centos PC or Ubuntu PC as the WebServer. CNC demo requires python3 and
related libraries:
pyang, libnetconf,
and
libssh
.
For Ubuntu18.04
$ sudo apt install -y libtool python-argparse libtool-bin python-sphinx libffi-dev
$ sudo apt install -y libxslt1-dev libcurl4-openssl-dev xsltproc python-setuptools
$ sudo apt install -y zlib1g-dev libssl-dev python-libxml2 libaugeas-dev
$ sudo apt install -y libreadline-dev python-dev pkg-config libxml2-dev
$ sudo apt install -y cmake openssh-server
$ sudo apt install -y python3-sphinx python3-setuptools python3-libxml2
$ sudo apt install -y python3-pip python3-dev python3-flask python3-pexpect
$ sudo apt install -y libnss-mdns avahi-utils
For Centos 7.2
$ sudo yum install libxml2-devel libxslt-devel openssl-devel libgcrypt dbus-devel
$ sudo yum install doxygen libevent readline.x86_64 ncurses-libs.x86_64
$ sudo yum install ncurses-devel.x86_64 libssh.x86_64 libssh2-devel.x86_64
$ sudo yum install libssh2.x86_64 libssh2-devel.x86_64
$ sudo yum install nss-mdns avahi avahi-tools
2. Install pyang
$ git clone https://github.com/mbj4668/pyang.git
$ cd pyang
$ git checkout b92b17718de53758c4c8a05b6818ea66fc0cd4d8 -b fornetconf1
$ sudo python setup.py install
3. Install libssh
$ git clone https://git.libssh.org/projects/libssh.git
$ cd libssh
$ git checkout fe18ef279881b65434e3e44fc4743e4b1c7cb891 -b fornetconf1
$ mkdir build; cd build/
$ cmake ..
NXP Semiconductors
NETCONF/YANG
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
85 / 199