netsim-tools release 1.1.4 includes a number of seemingly unrelated goodies; here’s the the reasoning (or story) behind some of them:
netlab clab tarball creates a tar package that can be deployed with containerlab without netsim-tools
Julio Perez wanted to create ready-to-use labs running Arista cEOS on containerlab. Requiring the users of his labs to deploy netsim-tools and Ansible just to configure the lab devices is a clear overkill considering the startup-config support in containerlab. What he needed was:
- An easy mechanism to set up IP addressing plan and configure interfaces and routing protocols in a virtual lab (netlab up does all of that)
- A mechanism to collect final device configurations (netlab collect)
- Something that would add pointers to startup device configurations to containerlab configuration file and package everything in a tarball – netlab clab tarball
Add fetch_config action for SR Linux and SR OS. You can use netlab collect to get current configuration from these devices
Jeroen van Bemmel and SR Linux are the root cause for containerlab support in netsim-tools and it would be a shame if Julio couldn’t create labs mixing Arista cEOS and SR Linux just because we had no way to collect device configuration from SR Linux devices. Jeroen quickly supplied the fix for that ;) Thank you!
-cleanupoptions to netlab collect.
As I was starting to work on netlab clab tarball implementation, someone asked me “could I get final device configurations for one of your labs?”. Wouldn’t it be nice if I could collect the configurations, create a tarball, and do a cleanup all in one go? Now I can ;)
--cleanupoption to netlab down
Build recipes for Arista vEOS and Juniper vSRX use management VRF
Vagrant (libvirt and VirtualBox variants) as well as containerlab use a management network to connect to virtual network devices. Moving that interface into a VRF simplifies everyone’s life – we don’t have to exclude it from a routing process, or stop LLDP on it, or…
Nexus OS uses management VRF by default, and I added similar functionality to Cisco IOSv and IOS/XE Vagrant box recipes, prompting Stefano Sasso to submit a PR for similar functionality on Arista vEOS and Juniper vSRX. Thank you!
Use netlab_device_type instead of ansible_network_os to select configuration templates
Julio wanted to implement ExaBGP device in netsim-tools, and it doesn’t make sense to invent bogus operating systems just to deploy a different configuration template.
Now that the framework is in place, we could create tons of other pseudo-devices. For example, Dinesh Dutt was telling me the other day how easy it would be to deploy SuzieQ in a container.