Examples
There are some exmaples avialable in the Containerlab repo overview here or a specific Labctl-example repository on Github
Getting the Labctl-examples
Clone the labctl-examples github repo
It is always advised to first Fork the github repo under your own name and then clone your fork. This will allow you to save your changes and even contribute back to the examples.
Fork it here
Clone your fork (from your Github account)
git clone [email protected]:account/labctl-examples.git
Navigating the labctl-examples repo
Each example contains a README.md
file that gives you a brief overview of the lab, together with instructions on how to deploy the topology and start the web server.
In most cases deplying the lab is as simple as running containerlab deploy
in the lab's directory. Contianerlab can auto-detect the topology file, as long as you have a single topology file per folder.
To start the server could be as simple as labctl serve
, which will then use the same topology file, but most of the time you want to at least specific one or more paths where the server should look for templates. Add paths with the -p
or --paths
flag.
Examples
SR Linux does not require any licenses to deploy the lab and perform configuration
Example Templates
You can find lab specific templates (*.tmpl) in either the shared template folder or in the individual lab folders.