Minor formatting changes.
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
|
|
||||||
Preliminary Mininet Installation/Configuration Notes
|
Preliminary Mininet Installation/Configuration Notes
|
||||||
|
|
||||||
Development version, March 2010
|
Development version, March 2010
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
Disclaimer: this is not (yet) a 'release'; things may be broken.
|
Disclaimer: this is not (yet) a 'release'; things may be broken.
|
||||||
|
|
||||||
These installation notes assume you understand how to do things
|
These installation notes assume you understand how to do things
|
||||||
|
|||||||
+7
-5
@@ -1,21 +1,23 @@
|
|||||||
|
|
||||||
Mininet Examples
|
Mininet Examples
|
||||||
|
|
||||||
These examples are intended to help you get started using Mininet via its
|
---
|
||||||
Python API.
|
|
||||||
|
|
||||||
|
These examples are intended to help you get started using
|
||||||
|
Mininet's Python API:
|
||||||
|
|
||||||
linearbandwidth.py
|
linearbandwidth.py:
|
||||||
|
|
||||||
This example shows how to create a custom topology programatically
|
This example shows how to create a custom topology programatically
|
||||||
by subclassing Topo, and how to run a series of tests on it.
|
by subclassing Topo, and how to run a series of tests on it.
|
||||||
|
|
||||||
scratchnet.py, scratchnetuser.py
|
scratchnet.py, scratchnetuser.py:
|
||||||
|
|
||||||
These two examples demonstrate how to create a network by using the lowest-
|
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,
|
level Mininet functions. Generally the higher-level API is easier to use,
|
||||||
but scratchnet shows what is going on behind the scenes.
|
but scratchnet shows what is going on behind the scenes.
|
||||||
|
|
||||||
udpbwtest.py
|
udpbwtest.py:
|
||||||
|
|
||||||
This example shows how to run a test across an entire network, and monitor
|
This example shows how to run a test across an entire network, and monitor
|
||||||
the output of a set of hosts in real time.
|
the output of a set of hosts in real time.
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ def linearBandwidthTest( lengths ):
|
|||||||
switches = { 'reference kernel': KernelSwitch,
|
switches = { 'reference kernel': KernelSwitch,
|
||||||
'reference user': UserSwitch,
|
'reference user': UserSwitch,
|
||||||
'Open vSwitch kernel': OVSKernelSwitch }
|
'Open vSwitch kernel': OVSKernelSwitch }
|
||||||
|
|
||||||
for datapath in switches.keys():
|
for datapath in switches.keys():
|
||||||
print "*** testing", datapath, "datapath"
|
print "*** testing", datapath, "datapath"
|
||||||
Switch = switches[ datapath ]
|
Switch = switches[ datapath ]
|
||||||
|
|||||||
+1
-1
@@ -270,7 +270,7 @@ class Node( object ):
|
|||||||
if dstNode == node:
|
if dstNode == node:
|
||||||
connections.append( ( intf, dstIntf ) )
|
connections.append( ( intf, dstIntf ) )
|
||||||
return connections
|
return connections
|
||||||
|
|
||||||
# This is a symmetric operation, but it makes sense to put
|
# This is a symmetric operation, but it makes sense to put
|
||||||
# the code here since it is tightly coupled to routines in
|
# the code here since it is tightly coupled to routines in
|
||||||
# this class. For a more symmetric API, you can use
|
# this class. For a more symmetric API, you can use
|
||||||
|
|||||||
Reference in New Issue
Block a user