Lab software installation and device preparation

Here are the Ubuntu packages that we will install. You may already have some of the packages such pip and git:

$ sudo apt-get install -y python3-dev libxml2-dev libxslt1-dev libffi-dev libssl-dev zlib1g-dev python3-pip git python3-requests
If you are using Python 2, use the following packages instead: sudo apt-get install -y python-dev libxml2-dev libxslt1-dev libffi-dev libssl-dev zlib1g-dev python-pip git python-requests.

The ncclient (https://github.com/ncclient/ncclient) library is a Python library for NETCONF clients. We will install this from the GitHub repository so that we can install the latest version:

$ git clone https://github.com/ncclient/ncclient$ cd ncclient/$ sudo python3 setup.py ...

Get Mastering Python Networking - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.