From 353411422e656e57421405803fb4527cf46f052c Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 24 Mar 2010 13:42:46 -0700 Subject: [PATCH] Minor formatting changes. --- INSTALL | 3 +++ examples/README | 12 +++++++----- examples/linearbandwidth.py | 2 +- mininet/node.py | 2 +- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/INSTALL b/INSTALL index 088aab7..6213c26 100644 --- a/INSTALL +++ b/INSTALL @@ -1,7 +1,10 @@ + Preliminary Mininet Installation/Configuration Notes Development version, March 2010 +--- + Disclaimer: this is not (yet) a 'release'; things may be broken. These installation notes assume you understand how to do things diff --git a/examples/README b/examples/README index b197d01..a48a899 100644 --- a/examples/README +++ b/examples/README @@ -1,21 +1,23 @@ + 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 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- level Mininet functions. Generally the higher-level API is easier to use, 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 the output of a set of hosts in real time. diff --git a/examples/linearbandwidth.py b/examples/linearbandwidth.py index fa21399..e93839a 100755 --- a/examples/linearbandwidth.py +++ b/examples/linearbandwidth.py @@ -71,7 +71,7 @@ def linearBandwidthTest( lengths ): switches = { 'reference kernel': KernelSwitch, 'reference user': UserSwitch, 'Open vSwitch kernel': OVSKernelSwitch } - + for datapath in switches.keys(): print "*** testing", datapath, "datapath" Switch = switches[ datapath ] diff --git a/mininet/node.py b/mininet/node.py index fc5d4ff..b50c3c4 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -270,7 +270,7 @@ class Node( object ): if dstNode == node: connections.append( ( intf, dstIntf ) ) return connections - + # This is a symmetric operation, but it makes sense to put # the code here since it is tightly coupled to routines in # this class. For a more symmetric API, you can use