Mininet Examples
These examples are intended to help you get started using Mininet's Python API.
========================================================
baresshd.py:
This example uses Mininet's medium-level API to create an sshd process running in a namespace. Doesn't use OpenFlow.
consoles.py:
This example creates a grid of console windows, one for each node, and allows interaction with and monitoring of each console, including graphical monitoring.
controllers.py:
This example creates a network with multiple controllers, by
using a custom Switch()
subclass.
controllers2.py:
This example creates a network with multiple controllers by creating an empty network, adding nodes to it, and manually starting the switches.
controlnet.py:
This examples shows how you can model the control network as well as the data network, by actually creating two Mininet objects.
cpu.py:
This example tests iperf bandwidth for varying CPU limits.
emptynet.py:
This example demonstrates creating an empty network (i.e. with no topology object) and adding nodes to it.
hwintf.py:
This example shows how to add an interface (for example a real hardware interface) to a network after the network is created.