Skip to main content

GitHub Repo stars GitHub Downloads GitHub Release GitHub Issues GitHub Pull Requests


❓ What is this?

Helm chart for automating the deployment of virtual network topologies on Kubernetes using Pods with multiple interfaces. It leverages the Multus CNI plugin and renders the required Kubernetes resources (e.g., ConfigMaps, Pods, NetworkAttachmentDefinitions) from a structured YAML-based topology definition.
Use it to quickly bring up containerized network labs for testing, automation, development, and education — all within your cluster. netclab, on PyPI, brings the cluster and a lab up around it in one command.

⚙️ Use cases

This chart enables rapid deployment of containerized network topologies on Kubernetes. Key use cases include:

  • Network design validation: Test high- and low-level design (HLD/LLD) configurations and device behavior before committing to a final design.
  • Test automation: Develop and verify automation scripts for traffic or protocol generators/analyzers (e.g., IxNetwork APIs, OTG) — effectively unit-testing your test logic.
  • Image validation: Validate new versions of network operating systems (NOS), whether virtual or hardware-aligned, to ensure feature support and functionality.
  • Training & certification prep: Practice CLI, protocols, and topologies in a safe, repeatable lab — ideal for students and professionals preparing for vendor certifications.

📦 Prerequisites

Before installing Netclab Chart, ensure the following are present:

⚡ Quick start: netclab

netclab brings a lab up in one command: the kind cluster, the CNI plugins, Multus, a local registry, and this chart, from a topology file such as examples/topology-frrouting.yaml:

uvx netclab up --namespace dc2 --values topology-frrouting.yaml
uvx netclab down --namespace dc2    # this lab
uvx netclab down                    # the whole cluster; the registry and its images stay

cEOS cannot be pulled, so it goes into the registry once. The cluster finds ceos:<version> there before Docker Hub, and the topology names it in ceos.image:

docker import ./cEOS64-lab-<version>.tar.xz ceos:<version>
docker tag ceos:<version> localhost:5001/library/ceos:<version>
docker push localhost:5001/library/ceos:<version>
ceos:
  image: ceos:<version>

netclab works only on a cluster made with its kind.yaml, and refuses any other; netclab down removes it. It also refuses a lab whose nodes ask for more CPU or memory than the cluster has free. etcd keeps its data in memory, so the cluster does not survive a restart of Docker or of the host.

🧩 Chart values

Note:
Node and network names must use lowercase letters, digits, or hyphens.
Host interface names are limited to 15 characters.
Netclab computes veth names as <release>-<network>-<hash(node)>, automatically shortening long node names for Linux compatibility.
Recommendation: keep Helm release and network names short (≤ 3 characters).

Configuration options are documented in the table below. You can override these values in your own file.

Parameter Description Defaults
topology.networks.type Type of connection between nodes. Can be bridge or veth. veth
topology.nodes.type Type of node. Can be: srlinux, frrouting, ceos, linux
topology.nodes.image Container images used for topology nodes. each node type's template, in templates/
ceos: none, see ceos.image
topology.nodes.memory Memory allocation per node type. srlinux: 4Gi
frr: 512Mi
ceos: 4Gi
linux: 200Mi
topology.nodes.cpu CPU allocation per node type. srlinux: 2000m
frr: 500m
ceos: 2000m
linux: 200m
ceos.image Image of every cEOS node that names none. Required when a cEOS node names none. none
ceos.restconfSslProfile SSL profile for cEOS RESTCONF on port 6020. ARISTA_DEFAULT_SELF_SIGNED_PROFILE

🧪 A lab with Crossplane

A lab for Kubernetes-managed network configuration, such as netadopt's AVD fabric, also needs Crossplane and its packages. netclab up installs them after the chart:

uvx netclab up --namespace dc1 --values topology.yaml \
  --crossplane <version> \
  --configuration xpkg.upbound.io/netclab/configuration-avd:<version> \
  --manifest runtime.yaml --manifest providerconfig.yaml --manifest fabric.yaml
  • --configuration installs the package and waits until it is healthy.
  • Each --manifest is applied server-side once the cluster serves every kind in it: before the Configuration if it already does, after it otherwise, in the order given.

Without --namespace and --values there is no chart, only the cluster with Crossplane, for devices started apart from it:

uvx netclab up --cluster xp --crossplane <version>

🛠️ Without the netclab command

A lab with kind, Multus and helm, step by step, and the example topologies for SR Linux, FRR and cEOS: docs/manual.md.

🧭 Future Plans

  • Add support for additional containerized or virtualized routers

🤝 Contributing

Found an issue or have an idea? Open an issue or submit a PR at:
👉 https://github.com/netclab/netclab-chart

Metadata

Release files for netclab 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netclab 0.10.0
File Size Uploaded Provenance Actions
netclab-0.10.0.tar.gz 17.8 kB Without provenance Details for netclab-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netclab 0.10.0
File Interpreter ABI Platform Actions
netclab-0.10.0-py3-none-any.whl Python 3 none any Details for netclab-0.10.0-py3-none-any.whl

Total release size: 37.1 kB

Release files / netclab-0.10.0.tar.gz

Download URL netclab-0.10.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
33b938e071a6a30bb7e76a5de45511adf902750e2184d4a5e6be0ddcd77436af
BLAKE2b-256 checksum
How to use checksums
f0dab06eca2e28ca18f5acdf4476a6c8cb5101958bcc02d07f41ccf5ace5b755
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / netclab-0.10.0-py3-none-any.whl

Download URL netclab-0.10.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc45d558f7d2b38df32bf224a5576fe20b84ace57a16c928dc777f114d137559
BLAKE2b-256 checksum
How to use checksums
43cba0eb66c8b8a02b8724b4a41c9f9f1fc44b4be953a17a1ab0ff6271b9ba67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for netclab 0.10.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page