Install Yang Explorer on Ubuntu

I am learning DevNet recently, so I installed Yang Explorer on Ubuntu server. The following is the installation process.

Install required packages

root@yang-explorer-1:/# apt update
root@yang-explorer-1:/# apt upgrade
root@yang-explorer-1:/# apt install python
root@yang-explorer-1:/# apt install python-pip
root@yang-explorer-1:/# pip install --upgrade setuptools
root@yang-explorer-1:/# apt install python-virtualenv
root@yang-explorer-1:/# apt install graphviz
root@yang-explorer-1:/# apt install libxml2-dev libxslt1-dev python-dev zlib1g-dev
root@yang-explorer-1:/# 

Install Yang Explorer

root@yang-explorer-1:/# git clone https://github.com/CiscoDevNet/yang-explorer.git
root@yang-explorer-1:/# cd yang-explorer
root@yang-explorer-1:/yang-explorer# bash setup.sh

Configure IP address

root@yang-explorer-1:/yang-explorer# vi start.sh

## Example
HOST='192.168.1.1'
PORT='8088'

Run Yang Explorer in the background

root@yang-explorer-1:/yang-explorer# nohup ./start.sh &

Verification

If all goes well, now we can use the following link to start Yang Explorer. Enjoy!

http://<ip-address>:8088/static/YangExplorer.html

Leave a Reply

Your email address will not be published.