Statistics
| Branch: | Tag: | Revision:

mininet / examples @ 4015e066

Name Size Revision Age Author Comment
  test cee62eb2 almost 7 years Brian O'Connor adding natnet example test
README.md 3.47 KB 87b60214 about 7 years Cody restructured code and added a test for the numb...
__init__.py 48 Bytes 045ef7b8 almost 8 years Bob Lantz Add docstring to satisfy pylint
baresshd.py 845 Bytes 9cc9a491 over 7 years Bob Lantz Avoid reverse DNS lookup
bind.py 2.37 KB 40a4a25d almost 7 years Cody Burkard use a single mininet instance in bindpy
consoles.py 15.2 KB 9bfc7c77 almost 8 years Bob Lantz Satisfy pylint
controllers.py 1.03 KB 2e7d0d49 almost 8 years Brian O'Connor fixed indent issue with examples/controllers.py
controllers2.py 1.57 KB 0fe73a67 over 7 years Bob Lantz build=False is unnecessary if topo=None, which ...
controlnet.py 4.66 KB cfb6bf95 almost 8 years Brian O'Connor adding commandline args to UserSwitch in contro...
cpu.py 2.32 KB 2eb0593c over 8 years Brandon Heller examples/cpu: Fix typo, note existence in README
emptynet.py 960 Bytes ecddbcf2 almost 8 years Brian O'Connor updated emptynet to use addLink
hwintf.py 1.5 KB 220376b6 almost 8 years Brian O'Connor hwintf.py: allow intf to be specified in cmd line
limit.py 1.56 KB fcd01592 over 8 years Brandon Heller Move CPU limit into net, to be reused in future...
linearbandwidth.py 3.28 KB 3a52ad2f almost 7 years Cody Burkard fixed linearbandwidth and waitconnected
miniedit.py 139 KB e6271587 over 7 years Gregory Gee Update to 2.1.0.8.1. Include a fix to work aro...
multiping.py 2.18 KB 891d8071 almost 8 years Brian O'Connor fixed multiping example
multipoll.py 2.41 KB edf60032 over 8 years Brandon Heller pep8: fix E128 continuation line under-indented...
multitest.py 1.02 KB b605cf74 almost 8 years Brian O'Connor style in multitest
nat.py 3.77 KB 824afb84 over 7 years Rémy Léone fixup: useless_parenthesis
natnet.py 1.91 KB 4015e066 almost 7 years Brian O'Connor moving NAT to nodelib
numberedports.py 2.15 KB de41192e about 7 years Cody Burkard imported warn from mininet.log
popen.py 1023 Bytes 50cebe67 about 9 years Bob Lantz Add pmonitor() to make it easy to monitor popen...
popenpoll.py 932 Bytes 9a73dcad almost 8 years Brian O'Connor fixed print format in popenpoll
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.8 KB 17dbc7e0 over 7 years Bob Lantz Minor codecheck fixes
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
4015e066 08/14/2014 05:09 AM Brian O'Connor

moving NAT to nodelib

cee62eb2 08/14/2014 05:08 AM Brian O'Connor

adding natnet example test

a280501f 08/07/2014 08:40 PM Brian O'Connor

Merge branch 'master' into nat

Conflicts:
mininet/net.py
mininet/node.py

3a52ad2f 07/10/2014 02:24 AM Cody Burkard

fixed linearbandwidth and waitconnected

73f477be 07/10/2014 02:12 AM Cody Burkard

added waitConnect to linearbandwidth example.

40a4a25d 07/01/2014 09:51 PM Cody Burkard

use a single mininet instance in bindpy

af2f67d9 06/26/2014 04:29 PM Cody Burkard

added documentation for HostWithPrivateDirs

752c2d6e 06/21/2014 06:54 AM Cody Burkard

mountprivatedirs is no longer needed

6a81b6df 06/19/2014 10:08 PM Cody Burkard

added persistence option to HostWithPrivateDirs. also attached mount namespaces when mnexec -a is specified

ebc1eae6 06/11/2014 10:26 AM Cody Burkard

Merge branch 'patches/fix_bindpy' of https://github.com/cdburkard/mininet into patches/fix_bindpy

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.

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.

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

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.

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

Also available in: Atom