Statistics
| Branch: | Tag: | Revision:

mininet / examples @ 3484389d

Name Size Revision Age Author Comment
README 2.91 KB 3484389d about 8 years Bob Lantz Add NAT script to examples.
baresshd.py 701 Bytes 12fea0f6 over 8 years Brandon Heller examples/baresshd: ensure root permissions Pre...
consoles.py 14.9 KB edf60032 over 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
controllers.py 1011 Bytes 2a079911 about 8 years Bob Lantz Clarify controllers.py and add RemoteController
controllers2.py 1.59 KB dcb3036b over 8 years Bob Lantz Change to use addLink() interface for symmetry/...
cpu.py 2.32 KB 2eb0593c over 8 years Brandon Heller examples/cpu: Fix typo, note existence in README
emptynet.py 948 Bytes 82b72072 about 11 years Bob Lantz Pass pylint.
hwintf.py 1.33 KB c8b85746 over 8 years Bob Lantz pass code check
limit.py 1.56 KB fcd01592 over 8 years Brandon Heller Move CPU limit into net, to be reused in future...
linearbandwidth.py 3.22 KB edf60032 over 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
miniedit.py 24.8 KB edf60032 over 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multiping.py 2.22 KB edf60032 over 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multipoll.py 2.41 KB edf60032 over 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multitest.py 1.02 KB 11782ae0 over 10 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
nat.py 3.85 KB 3484389d about 8 years Bob Lantz Add NAT script to examples.
popen.py 1023 Bytes 50cebe67 about 9 years Bob Lantz Add pmonitor() to make it easy to monitor popen...
popenpoll.py 930 Bytes 6c947bca about 9 years Bob Lantz More indent errors - curse you emacs.
scratchnet.py 1.98 KB a49c85a6 over 9 years Bob Lantz Fix examples to work with new API (and vice-ver...
scratchnetuser.py 2.4 KB bf208cde over 8 years Brandon Heller Fix SSHD example by generalizing input intf arg...
simpleperf.py 1.47 KB d7768ab2 over 8 years Brandon Heller examples/simpleperf: Warn in docstring about ef...
sshd.py 2.48 KB a49c85a6 over 9 years Bob Lantz Fix examples to work with new API (and vice-ver...
tree1024.py 534 Bytes 11782ae0 over 10 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
treeping64.py 950 Bytes 2e089b5e over 8 years Brandon Heller pep8: Fix E127 continuation line over-indented ...

Latest revisions

# Date Author Comment
3484389d 06/12/2013 09:57 PM Bob Lantz

Add NAT script to examples.

2a079911 06/04/2013 12:10 AM Bob Lantz

Clarify controllers.py and add RemoteController

dcb3036b 03/07/2013 12:55 AM Bob Lantz

Change to use addLink() interface for symmetry/consistency.

f0181372 03/01/2013 01:59 AM Bob Lantz

Updated to reflect new controllers.py and old controllers2.py

ad09c1e0 03/01/2013 01:56 AM Bob Lantz

Add new example of making a custom Switch() class.

31e1ff71 03/01/2013 01:55 AM Bob Lantz

Rename controllers.py to controllers2.py since it's less convenient.

8b8bb375 03/01/2013 01:40 AM Bob Lantz

Remove unnecessary addHost() function, and clarify things a bit.
Fixes #102

c8b85746 12/01/2012 05:00 AM Bob Lantz

pass code check

b96e1596 11/19/2012 11:02 PM Bob Lantz

Change to use Intf() class rather than string for interface.

Was broken in 2.0.0rc1

ab594b6a 11/16/2012 06:54 AM Bob Lantz

Merge branch '2.0dev' into 2.0merge

Conflicts:
.gitignore
.pylint
examples/miniedit.py
mininet/node.py
mininet/util.py
util/install.sh
util/vm/install-mininet-vm.sh

View revisions

README


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. 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. limit.py: This example shows how to use link and CPU limits. linearbandwidth.py: This example shows how to create a custom topology programatically by subclassing Topo, and how to run a series of tests on it. miniedit.py: This example demonstrates creating a network via a graphical editor. multiping.py: This example demonstrates one method for monitoring output from multiple hosts, using node.monitor(). multipoll.py: This example demonstrates monitoring output files from multiple hosts. multitest.py: This example creates a network and runs multiple tests on it. nat.py: This example shows how to connect a Mininet network to the Internet using NAT. It also answers the eternal question "why can't I ping google?" popen.py: This example monitors a number of hosts using host.popen() and pmonitor(). popenpoll.py: This example demonstrates monitoring output from multiple hosts using the node.popen() interface (which returns Popen objects) and pmonitor(). scratchnet.py, scratchnetuser.py: 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. simpleperf.py: A simple example of configuring network and CPU bandwidth limits. 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.) treeping64.py: This example creates a 64-host tree network, and attempts to check full connectivity using ping, for different switch/datapath types. tree1024.py: This example attempts to create a 1024-host network, and then runs the CLI on it. It may run into scalability limits, depending on available memory and sysctl configuration (see INSTALL.)

Also available in: Atom