Netsim-tools Release 0.5 Work with Containerlab

TL&DR: If you happen to like working with containers, you could use netsim-tools release 0.5 to provision your container-based Arista EOS labs.

Why does it matter? Lab setup is blindingly fast, and it’s easier to integrate your network devices with other containers, not to mention the crazy idea of running your network automation CI pipeline on Gitlab CPU cycles. Also, you could use the same netsim-tools topology file and provisioning scripts to set up container-based or VM-based lab.

What is containerlab? A cool project that builds realistic virtual network topologies with containers. More details…

This is a simple topology file (let’s call it topology.yml) I used to test the setup; it creates a two-switch lab with a link between the switches.

provider: clab
  device: eos

- s1
- s2

- s1-s2

Next steps after installing Docker, containerlab and netsim-tools:

Change the provider from clab to libvirt or virtualbox and you’ll get a Vagrantfile that will set up two VMs with a point-to-point link between them1. Add module: [ ospf ] and you’ll get OSPF routing configured together with IP addresses. How cool is that? ;)

For more details, read the netsim-tools documentation, download the code or install it as a Python3 package, and enjoy.

Revision History

Updated the blog post to use the new netlab CLI.

  1. The latest EOS version downloadable as Vagrant box is 4.21.14M. ↩︎

Add comment