TopoGen for CML/simple
TopoGen generates CML/simple YAML topologies offline. It does not connect to a CML controller (the previous/legacy version did).
Features
- generate router topologies with
simpleornxmode - add an Alpine DNS host and an external connector to every generated lab
- assign router loopbacks and /30 point-to-point networks
- render day-zero configuration for IOSv, IOL-XE, and FRR
- write a YAML file that can be imported into CML/simple
Installation
uv sync --dev --frozen
NumPy and SciPy are installed as normal runtime dependencies because nx mode
uses them for graph layout. Run the CLI with uv run topogen if the environment
is not active.
Usage
uv run topogen 3 --mode nx --template frr --output topogen_lab.yaml
nodes is the router count. The generated lab also includes an Alpine DNS host
and an external connector.
Modes
simple: a router chain on square-spiral coordinatesnx: a connected random-shell router graph
Both modes write offline YAML and include the DNS host and external connector.
Router templates
Offline generation supports these CML node definitions:
iosviol-xefrr
Choose one with --template, for example --template=iosv or
--template=frr. TopoGen uses copied physical-interface maps for these
node definitions and rejects a topology that needs more interfaces than the
selected definition supports.
FRR configuration uses node.cfg, boot.sh, and protocols. IOSv and IOL-XE
configuration uses ios_config.txt.
Configuration
Use --config to load an optional TOML file. It controls address pools, domain
name, and device credentials:
loopbacks = "10.0.0.0/8"
p2pnets = "172.16.0.0/12"
nameserver = "8.8.8.8"
domainname = "virl.lab"
username = "cisco"
password = "cisco"
The generated DNS host replaces nameserver with its router-facing address.
The user name and password are included in generated device configuration.
Import and run
Import the resulting YAML file into CML/simple. TopoGen does not upload or start the lab. The generated DNS host installs dnsmasq at first boot, which needs Internet access. After the lab starts, configured router loopbacks and interfaces resolve through that DNS host.
Metadata
Release files for topogen 0.3.0.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| topogen-0.3.0.post1.tar.gz | 77.5 kB | With provenance | Details for topogen-0.3.0.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| topogen-0.3.0.post1-py3-none-any.whl | Python 3 | none | any | Details for topogen-0.3.0.post1-py3-none-any.whl |
Total release size: 97.2 kB
Release files / topogen-0.3.0.post1.tar.gz
| Download URL | topogen-0.3.0.post1.tar.gz |
|---|---|
| Size | 77.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15afa04f041de43d28e59f99ba9f5fd02d303d63d01617ef79915e959a34d80e
|
|
BLAKE2b-256 checksum How to use checksums |
277121ac9f2df617cd8adeb5c257c2ee5002c632de73ef4713d59fe21d3bd2c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / topogen-0.3.0.post1-py3-none-any.whl
| Download URL | topogen-0.3.0.post1-py3-none-any.whl |
|---|---|
| Size | 19.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
979756267f1f045ad23dbadcad793c664522bbc0ac0d2949b3585c105c8afa51
|
|
BLAKE2b-256 checksum How to use checksums |
b6fdeb1de33ef5c853d80191b43f598cfcd33f5731896aa9ed4f989513746a02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for topogen 0.3.0.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for topogen-0.3.0.post1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.