Statistics
| Branch: | Tag: | Revision:

mininet / mininet / util.py @ 03dd914e

History | View | Annotate | Download (8.2 KB)

# Date Author Comment
134a75ef 03/02/2012 11:43 PM Bob Lantz

Fix pylint complaint and add natural sort key function.

daa576c4 02/10/2012 10:59 PM Bob Lantz

Add errRun to run a command with stderr, stdout, return code and monitoring.

82b72072 05/06/2010 11:24 PM Bob Lantz

Pass pylint.

8bc00379 04/23/2010 12:05 AM Bob Lantz

Fixed link check and updated quietRun interface.

Link check wasn't quite right - e.g. 'eth1' could be found in
'eth10' previously.

Updated quietRun to allow passing in args directly rather than
as a list.

bcacfc05 03/14/2010 02:23 AM Bob Lantz

Support for control-C. Finally.

I've changed the way things work a bit:

1. netns is replaced by mnexec, a general-purpose mininet helper.

2. For interactive commands, we now use mnexec -p, which prints out
the pid, so we can kill it when someone hits control-C!...

740d7ce3 03/13/2010 12:17 AM Bob Lantz

Added newline at EOF.

d44a5843 03/10/2010 05:48 AM Bob Lantz

Reinstantiated inNamespace and routed control network.

We need to figure out how to specify the IP addresses for the
routed control network. For now I'm going back to 192.168.12x.y

Also changed controller params to use IP strings rather than
numbers. However, we still need to clarify what ControllerParams...

80be5642 03/08/2010 11:32 PM Bob Lantz

Removed underscores for public Node methods. Minor cleanup & comments.

bb941950 03/05/2010 05:29 AM Brandon Heller

Add flexible topology input parsing

Now you can pass a topology name followed by params. For example, to
create a switch with 3 hosts:

sudo mn --topo single,3
efc9a01c 03/03/2010 09:52 PM Bob Lantz

Moved link creation into Node.addIntf() and fixed util:CreateLink().

Also tweaked cmd/cmdPrint to make them more beautiful and functional,
and a few other minor changes, such as using a new idiom for verbose.

These changes support reinstating the examples.

e85f8bdf 02/06/2010 01:22 AM Bob Lantz

Removed hash-bang in module files which aren't executed directly,
with the exception of topo.py, which I haven't touched.

7d4b7b7f 02/06/2010 01:18 AM Bob Lantz

Comment tweaks and additions.

281f6e59 02/06/2010 12:42 AM Bob Lantz

Minor changes to get 'make test' to pass.

- some namespace conflicts due to unpep8
- fixed infinite recursion caused by removing redundant makeIntfPair

80a8fa62 02/05/2010 10:33 AM Bob Lantz

First crack at restoring mininet python style, assisted by handy
'unpep8' script, which does most of the work.

- topo.py is still in pep8
- not all examples work, but this is due to other issues

0df8b195 02/03/2010 11:38 PM Bob Lantz

Renamed logging_mod.py -> log.py

Updated other files accordingly.

723d068c 01/10/2010 01:59 AM Brandon Heller

Add static code checking for style and errors

This required a change to logging, which now uses a singleton pattern.

For all future checkins, 'make codecheck' should pass.

376bcba4 01/03/2010 05:16 PM Brandon Heller

Add options for auto MAC and ARP setup.

Auto MAC setup sets each host MAC equal to its DPID, which simplifies
debugging.

Auto ARP setup removes the need for broadcast support for ARP, which
enables a smaller NOX controller.

ac65ea3f 01/03/2010 10:43 AM Brandon Heller

Increase createLink retry count

Was seeing occasional errors with tests run back-to-back.

54037995 01/01/2010 11:16 AM Brandon Heller

Add MAC auto set for switches

Also use indexing for DPIDs to avoid zeroed MAC

e3621eb0 12/26/2009 03:40 PM Brandon Heller

Move fixLimits function to util

220890a0 12/20/2009 05:32 PM Brandon Heller

Move utility functions out of mininet.py

Having a file with the same name as its package creates hard-to-diagnose
import error, so rename mininet.py to net.py. This commit moves utility
functions, generally those dealing with network namespaces and interface...