netlab Command Reference¶
The netlab command is the CLI interface to netsim-tools functionality, including data model transformation, Ansible playbooks and device connectivity scripts:
Creating the Lab¶
netlab create creates virtualization provider and network automation configuration files (usually
Configuring and Controlling the Lab¶
netlab initial uses an internal Ansible playbook to deploy initial device configurations to lab devices
netlab config creates custom configuration snippets from Jinja2 templates and uses an internal Ansible playbook to deploy them to lab devices
netlab connect relies on Ansible inventory created with netlab create to find IP address, username, and password of specified lab device, and uses SSH or docker exec to connect to the lab device.
netlab collect uses Ansible device facts (or equivalent functionality implemented with Ansible modules) to collect device configurations and store them into specified directory.