Newer
Older
These examples are intended to help you get started using
Mininet's Python API.
---
This example shows how to create a custom topology programatically
by subclassing Topo, and how to run a series of tests on it.
multitest.py:
This example creates a network and runs multiple tests on it.
These two examples demonstrate how to create a network by using the lowest-
level Mininet functions. Generally the higher-level API is easier to use,
but scratchnet shows what is going on behind the scenes.
sshd.py:
This example shows how to run an sshd process in each host, allowing
you to log in via ssh. This requires connecting the Mininet data network
to an interface in the root namespace (generaly the control network
already lives in the root namespace, so it does not need to be explicitly
connected.)