Statistics
| Branch: | Tag: | Revision:

mininet / examples @ edf60032

Name Size Revision Age Author Comment
README 2.23 KB f1bf3c60 over 8 years Bob Lantz Added popenpoll.py example of using popen()/pmo...
baresshd.py 651 Bytes a49c85a6 over 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
consoles.py 14.9 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
controllers.py 1.47 KB 74a56e2b about 10 years Bob Lantz Pass code check.
cpu.py 2.32 KB c0095746 about 8 years Brandon Heller pep8: Fix E121/126, continuation line indention
emptynet.py 948 Bytes 82b72072 over 10 years Bob Lantz Pass pylint.
hwintf.py 1.14 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
limit.py 2.13 KB c1a6ae2b over 8 years Bob Lantz Remove blank line.
linearbandwidth.py 3.22 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
miniedit.py 24.8 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multiping.py 2.22 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multipoll.py 2.41 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multitest.py 1.02 KB 11782ae0 about 10 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
popen.py 1023 Bytes 50cebe67 over 8 years Bob Lantz Add pmonitor() to make it easy to monitor popen...
popenpoll.py 930 Bytes 6c947bca over 8 years Bob Lantz More indent errors - curse you emacs.
scratchnet.py 1.98 KB a49c85a6 over 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
scratchnetuser.py 2.38 KB 14ff3ad3 over 8 years Bob Lantz Fix codecheck and MininetWithControlNet.
simpleperf.py 1.3 KB ce15c4f6 over 8 years Bob Lantz rename Topo() methods for consistency: add_node...
sshd.py 2.48 KB a49c85a6 over 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
tree1024.py 534 Bytes 11782ae0 about 10 years Bob Lantz Commented out kernel ref, moved to Open vSwitch.
treeping64.py 947 Bytes edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...

Latest revisions

# Date Author Comment
edf60032 11/14/2012 12:59 AM Brandon Heller

pep8: fix E128 continuation line under-indented errors

I wasn't sure this was worth fixing at first, but it does look more readable
now.

c0095746 11/14/2012 12:08 AM Brandon Heller

pep8: Fix E121/126, continuation line indention

615ebb7a 11/13/2012 10:56 PM Brandon Heller

pep8: Fix E125 continuation line does not distinguish itself from next logical line

0bd5c651 11/13/2012 10:39 PM Brandon Heller

pep8: Fix E203 whitespace before punctutation

ce15c4f6 08/17/2012 01:48 AM Bob Lantz

rename Topo() methods for consistency: add_node() -> addNode()

6c947bca 05/24/2012 04:12 AM Bob Lantz

More indent errors - curse you emacs.

e4514a4e 05/24/2012 04:09 AM Bob Lantz

Still more indentation errors. ;-p

8c778bb0 05/24/2012 04:06 AM Bob Lantz

Fix indentation errors.

f1bf3c60 05/24/2012 03:56 AM Bob Lantz

Added popenpoll.py example of using popen()/pmonitor()

50cebe67 04/14/2012 12:42 AM Bob Lantz

Add pmonitor() to make it easy to monitor popen objects.

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 and adds multiple controllers to it. emptynet.py: This example demonstrates creating an empty network (i.e. with no topology object) and adding nodes to it. 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. 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