Restart Virtual Lab
netlab restart executes netlab down followed by netlab up to restart your lab from the transformed lab topology stored in netlab.snapshot.yml
snapshot file.
You can use netlab restart to restart the existing lab (use --snapshot
keyword), or to recreate the lab configuration files in case you changed the lab topology.
Warning
netlab restart does not support -d
, -p
or -s
flags used by netlab create or netlab up. If you want to change lab topology settings with CLI parameters use netlab down and netlab up commands.
Usage
usage: netlab [-h] [--log] [-q] [-v] [--no-config] [--fast-config]
[--snapshot [SNAPSHOT]]
[topology]
Reconfigure and restart the virtual lab
positional arguments:
topology Topology file (default: topology.yml)
optional arguments:
-h, --help show this help message and exit
--log Enable basic logging
-q, --quiet Report only major errors
-v, --verbose Verbose logging (add multiple flags for increased verbosity)
--no-config Do not configure lab devices
--fast-config Use fast device configuration (Ansible strategy = free)
--snapshot [SNAPSHOT]
Use netlab snapshot file created by a previous lab run
to start the lab