CLI-based Virtual Networking Lab Abstraction Layer
Project description
Overview
netlab is bringing infrastructure-as-code concepts to networking labs. You'll describe your high-level network topology and routing design in a YAML file, and the tools in this repository will
- Create Vagrantfile configuration file for VirtualBox or libvirt environment
- Create containerlab configuration file
- Create Ansible inventory and configuration file
- Create IPv4 and IPv6 addressing plan and OSPFv2, OSPFv3, EIGRP, IS-IS, and BGP routing design
- Configure IPv4, IPv6, DHCP, DHCPv6, VLANs, VRFs, VXLAN, LLDP, BFD, OSPFv2, OSPFv3, EIGRP, IS-IS, BGP, RIPv2, RIPng, VRRP, LACP, STP, anycast gateways, route maps, prefix lists, AS-path prefix lists, route redistribution, default route origination, MPLS, BGP-LU, L3VPN (VPNv4 + VPNv6), 6PE, EVPN, SR-MPLS, or SRv6 on your lab devices.
Instead of wasting time creating lab topology in a GUI and configuring boring details, you'll start with a lab preconfigured according to your specifications.
Interested? Read the documentation and installation guidelines.
Releases
The latest release is release 1.9.2. It should be pretty stable, but if you encounter bugs, please report them as GitHub issues and use release 1.9.1 or 1.8.4-post2.
An Overview of CLI Commands
netlab up : Uses netlab create to create configuration files, starts the virtual lab, and uses netlab initial to deploy device configurations, including IP addressing, LLDP, OSPF, BGP, IS-IS, EIGRP, VRRP, VLANs, VRFs, MPLS, SR-MPLS, VXLAN, EVPN and SRv6. More details
netlab down : Destroys the virtual lab. More details
netlab restart : Restart and/or reconfigure the virtual lab. More details
netlab config : Applies additional Jinja2 configuration templates to network devices.
netlab collect : Using Ansible fact gathering or other device-specific Ansible modules, collects device configurations and saves them in the specified directory (default: config).
netlab connect : Use SSH or docker exec to connect to a lab device using device names, management network IP addresses (ansible_host), SSH port, and username/passwords specified in lab topology or netlab device defaults.
netlab exec : Use SSH or docker exec to execute a command on one or more network devices using device names, management network IP addresses (ansible_host), SSH port, and username/passwords specified in lab topology or netlab device defaults.
netlab capture : Perform packet capture on VM- and container interfaces
netlab report : Creates a report from the transformed lab topology data. More details
netlab graph : Creates a lab topology graph description in Graphviz or D2 format. More details
netlab show : Display system settings in tabular, text, or YAML format. More details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file networklab-1.9.2.tar.gz
.
File metadata
- Download URL: networklab-1.9.2.tar.gz
- Upload date:
- Size: 434.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48f6d7aa4791ca5d23856aa987844ae2182e925bb6b3e655f7002461c7bdab55 |
|
MD5 | 2e178b2b4d79c1654d350473ee3b4d00 |
|
BLAKE2b-256 | 42b5dbed0f925199ad03dcc6a3c398c99307f384d873f8351fc92d60e07d2008 |
File details
Details for the file networklab-1.9.2-py3-none-any.whl
.
File metadata
- Download URL: networklab-1.9.2-py3-none-any.whl
- Upload date:
- Size: 730.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e10188e062d05efc6c25a2350781c408c648c693b9703a845d96c7789292845c |
|
MD5 | aed318f5c33045b3797e4e2d3346bfe8 |
|
BLAKE2b-256 | a08376846c86be507cbf8cd9a8558e48a3609cea05311e54e479d1eab6e6ed48 |