Statistics
| Branch: | Tag: | Revision:

mininet / examples @ a4e93368

Name Size Revision Age Author Comment
  test 5a530af1 almost 6 years Bob Lantz Remove trailing whitespace. ;-/
README.md 4.85 KB c2341cd4 about 6 years cody burkard update examples README with new examples
__init__.py 48 Bytes 045ef7b8 about 7 years Bob Lantz Add docstring to satisfy pylint
baresshd.py 1.05 KB 7c5d2771 about 6 years cody burkard wait for sshd to start in example
bind.py 2.26 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
cluster.py 32.6 KB acdcf9b6 almost 6 years Bob Lantz cluster: add batchStartup/Shutdown, cleanup
clusterSanity.py 501 Bytes 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
clustercli.py 3.78 KB 3ac5cafe almost 6 years Bob Lantz Fix code minor code check errors
clusterdemo.py 639 Bytes 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
consoles.py 15.2 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
controllers.py 1.03 KB 2e7d0d49 about 7 years Brian O'Connor fixed indent issue with examples/controllers.py
controllers2.py 1.57 KB 0fe73a67 over 6 years Bob Lantz build=False is unnecessary if topo=None, which ...
controlnet.py 4.65 KB 5a530af1 almost 6 years Bob Lantz Remove trailing whitespace. ;-/
cpu.py 2.07 KB 643c9f91 almost 6 years Bob Lantz More pylint changes...
emptynet.py 960 Bytes ecddbcf2 about 7 years Brian O'Connor updated emptynet to use addLink
hwintf.py 1.51 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
intfoptions.py 1.29 KB 5a530af1 almost 6 years Bob Lantz Remove trailing whitespace. ;-/
limit.py 1.99 KB 18aab5b7 almost 6 years Bob Lantz More pylint changes
linearbandwidth.py 3.9 KB 4a304688 about 6 years Bob Lantz Select TCP Reno and run iperf for a longer time...
linuxrouter.py 2.76 KB 79f5d39d almost 6 years Bob Lantz Comment edits and pass code check
miniedit.py 151 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
mobility.py 4.1 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
multilink.py 834 Bytes 18aab5b7 almost 6 years Bob Lantz More pylint changes
multiping.py 2.18 KB 891d8071 about 7 years Brian O'Connor fixed multiping example
multipoll.py 2.41 KB edf60032 about 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multitest.py 1.02 KB b605cf74 about 7 years Brian O'Connor style in multitest
nat.py 3.77 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
natnet.py 1.9 KB 18aab5b7 almost 6 years Bob Lantz More pylint changes
numberedports.py 2.28 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
popen.py 1023 Bytes 50cebe67 over 8 years Bob Lantz Add pmonitor() to make it easy to monitor popen...
popenpoll.py 932 Bytes 9a73dcad about 7 years Brian O'Connor fixed print format in popenpoll
scratchnet.py 1.98 KB a49c85a6 over 8 years Bob Lantz Fix examples to work with new API (and vice-ver...
scratchnetuser.py 2.4 KB bf208cde about 8 years Brandon Heller Fix SSHD example by generalizing input intf arg...
simpleperf.py 1.47 KB 7a3159c9 almost 6 years Bob Lantz Spacing tweaks for pep8 checker
sshd.py 2.99 KB 18aab5b7 almost 6 years Bob Lantz More pylint changes
tree1024.py 522 Bytes eafbd2a5 almost 6 years Bob Lantz Change to OVSSwitch
treeping64.py 950 Bytes 2e089b5e about 8 years Brandon Heller pep8: Fix E127 continuation line over-indented ...
vlanhost.py 3.59 KB 643c9f91 almost 6 years Bob Lantz More pylint changes...

Latest revisions

# Date Author Comment
acdcf9b6 01/27/2015 11:27 PM Bob Lantz

cluster: add batchStartup/Shutdown, cleanup

bdad3e8c 01/27/2015 02:01 AM Bob Lantz

Merge OVSBatch into OVSSwitch

Note that we are changing the interface of batchStartup/Shutdown
slightly so that the method can choose not to start some of the
switches. We might wish to refine this a bit...

eafbd2a5 01/26/2015 10:06 PM Bob Lantz

Change to OVSSwitch

79f5d39d 01/17/2015 09:56 PM Bob Lantz

Comment edits and pass code check

6da3fcde 01/17/2015 09:38 PM Bob Lantz

Add bridges s1-s3 to topology and explain some details

026130bd 01/17/2015 09:33 PM Bob Lantz

pass code check

c1b48fb5 01/15/2015 10:43 AM Bob Lantz

Stub out RemoteOVSSwitch.batchShutdown()

Eventually we should implement true batch shutdown.
In the mean time, we just ignore it. Note there's no good
way that I know of for a subclass to remove a superclass
method, so we changed the protocol a bit to require a return...

c62812a9 01/15/2015 10:29 AM Bob Lantz

Update cluster.py for new makeIntfPair

3ac5cafe 01/07/2015 12:26 AM Bob Lantz

Fix code minor code check errors

7a3159c9 12/08/2014 11:10 PM Bob Lantz

Spacing tweaks for pep8 checker

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.

bind.py:

This example shows how you can create private directories for each node in a Mininet topology.

cluster.py:

This example contains all of the code for experimental cluster edition. Remote classes and MininetCluster can be imported from here to create a topology with nodes on remote machines.

clusterSanity.py:

This example runs cluster edition locally as a sanity check to test basic functionality.

clustercli.py:

This example contains a CLI for experimental cluster edition.

clusterdemo.py:

This example is a basic demo of cluster edition on 3 servers with a tree topology of depth 3 and fanout 3.

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.

intfoptions.py:

This example reconfigures a TCIntf during runtime with different traffic control commands to test bandwidth, loss, and delay.

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.

linuxrouter.py:

This example shows how to create and configure a router in Mininet that uses Linux IP forwarding.

miniedit.py:

This example demonstrates creating a network via a graphical editor.

mobility.py:

This example demonstrates detaching an interface from one switch and attaching it another as a basic way to move a host around a network.

multiLink.py:

This example demonstrates the creation of multiple links between nodes using a custom Topology class.

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.com?"

natnet.py:

This example demonstrates how to create a network using a NAT node to connect hosts to the internet.

numberedports.py:

This example verifies the mininet ofport numbers match up to the ovs port numbers. It also verifies that the port numbers match up to the interface numbers

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

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

treeping64.py:

This example creates a 64-host tree network, and attempts to check full connectivity using ping, for different switch/datapath types.

vlanhost.py:

An example of how to subclass Host to use a VLAN on its primary interface.

Also available in: Atom