Installing netlab from GitHub
If you want to change the netlab source code, need the latest development version, or want to contribute to the project, clone the netlab GitHub repository (everyone else should install the Python package).
Clone the netlab Github repository with
git clone https://github.com/ipspace/netlab.Switch to the development branch with
git checkout dev, or select the desired release withgit checkout release_*. Usegit tagto get the list of release tags.Within the netlab directory, install prerequisite Python packages with
python3 -m pip install -r requirements.txt[1].If you want to contribute to the project, install additional Python packages with
python3 -m pip install -r requirements-dev.txt.Add the netlab directory to your PATH with
source setup.shcommand executed within the netlab directory. Alternatively, you could install thenetworklabpackage from the local source (and create thenetlabcommand in the~/.local/bindirectory) with thepip3 install -e .command[2].(Optional) Use the netlab install command to install Ubuntu utilities, containerlab, libvirt/KVM, or Ansible.
Next step: create the lab environment