Statistics
| Branch: | Tag: | Revision:

mininet / mininet / net.py @ c1934706

History | View | Annotate | Download (32.5 KB)

# Date Author Comment
c1934706 08/01/2014 06:00 PM cody burkard

testing link stuff

54652462 07/16/2014 05:24 PM Bob Lantz

Merge branch 'devel/defaultController' of https://github.com/cdburkard/mininet into cdburkard-devel/defaultController

Conflicts:
bin/mn
mininet/net.py

e183e699 07/16/2014 04:57 PM Bob Lantz

Check for Controller type using isinstance()

779ea5f0 07/16/2014 02:39 AM Cody Burkard

removed bookmark

b7268856 07/15/2014 03:28 PM Bob Lantz

Tolerate passing controller objects into Mininet()

708b1843 07/15/2014 08:29 AM Bob Lantz

Don't remove items from a list we're iterating over

2451d757 07/14/2014 10:20 PM lantz

Merge pull request #318 from cdburkard/patches/hifi_fix

added support in iperf for different result formats.

a19cc915 07/14/2014 09:09 PM Cody Burkard

set DefaultController as the mininet class default

21b50c96 07/14/2014 08:46 PM lantz

Merge pull request #325 from cdburkard/patches/userspace_connect

added waitConnected attribute to mininet class

72fd120d 07/12/2014 02:04 AM Cody Burkard

added default controller class

4794871a 07/10/2014 08:40 PM Bob Lantz

Change algorithm slightly and print progress

13d25b41 07/10/2014 07:44 PM Bob Lantz

Minor message changes

b7a112cb 07/10/2014 06:24 PM Cody Burkard

Shutting down controller first

5a9c74be 07/10/2014 06:07 PM Cody Burkard

fixed last commit

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

fixed linearbandwidth and waitconnected

c23c992f 07/10/2014 02:12 AM Cody Burkard

fixed waitConnected performance and moved waitConnected call to mn.start

4797b420 07/10/2014 02:12 AM Cody Burkard

conforming to style, and fixing documentation

6845fd83 07/10/2014 02:12 AM Cody Burkard

added documentation for waitConnected timeout

8e2443ad 07/10/2014 02:12 AM Cody Burkard

improved waitConnected algorithm and set default wait time to wait forever

84ea8d7f 07/10/2014 02:12 AM Cody Burkard

added waitConnected attribute to mininet class

a1acfa89 07/09/2014 12:23 AM Cody Burkard

set default iperf formatting to none

93ddd926 07/08/2014 11:55 PM Cody Burkard

Revert "fixed default iperf formatting behavior"

This reverts commit 0e733c77543b16a67d77465b416fdd77cb509807.

0e733c77 07/02/2014 08:07 PM Cody Burkard

fixed default iperf formatting behavior

4e76439c 06/17/2014 06:33 AM Cody Burkard

added support in iperf for different result formats. also added upper bounds for hifi tests

876e66e5 05/22/2014 07:36 PM Rich Lane

net: allow batch shutdown of multiple types of switches

Each switch class will be called to shutdown its own instances.

5797f585 05/07/2014 08:31 PM lantz

Merge pull request #303 from jhall11/pingall

Add a timeout parameter to the pingAll command

4d1a9cdc 04/25/2014 04:37 AM Jon Hall

Add a timeout parameter to the pingAll command

14e14f1b 04/14/2014 01:44 AM lantz

Merge pull request #286 from lantz/devel/ovsbatch

Enable batch startup/shutdown of OVS

Not perfect, but it moves us forward at least.

92a28881 04/01/2014 06:46 PM lantz

Update net.py

ebac6784 04/01/2014 06:45 PM lantz

Merge pull request #293 from backb1/patch/pingloss

Ping: packet loss should be a float

d9376439 03/26/2014 12:37 PM Adrian

Ping: packet loss should be a float

a0bc1002 03/01/2014 02:45 AM Bob Lantz

Enable batch shutdown for OVS.

06115a04 02/07/2014 01:56 AM Bob Lantz

Add support for batch shutdown of OVS switches.

This saves about 10 seconds for a 200 switch network.

824afb84 12/20/2013 01:43 PM Rémy Léone

fixup: useless_parenthesis

96952b92 12/12/2013 02:08 AM Bob Lantz

2.1.0 -> 2.1.0+

09b12391 09/11/2013 07:00 PM Brian O'Connor

fixing comment

35029978 09/11/2013 07:00 PM Bob Lantz

code check fixes & add comment spaces

0840af52 09/11/2013 07:00 PM Brian O'Connor

removing todos in net.py

15146d90 09/11/2013 07:00 PM Brian O'Connor

changed CLI to MininetFacade; a great deal of logic also changed

32507498 09/11/2013 07:00 PM Bob Lantz

Initial text and version updates for 2.1.0

9281719d 08/10/2013 12:07 AM Brian O'Connor

Made net compliant with dict semantics and added function comments
Fixed locals bug (now they are persisent across calls)

8e04a9f8 08/09/2013 07:20 PM Brian O'Connor

Replaced nodelist and nodemap in CLI with mn
Updated Mininet to be more compliant with dict
Fixes #182

43ba774e 07/31/2013 01:31 AM Brian O'Connor

Merge pull request #181 from mininet/devel/ping

pingall now reports fraction received

f7439671 07/31/2013 01:28 AM Brian O'Connor

pingall now reports fraction received
fixes #168

4316be95 07/26/2013 09:43 PM Brian O'Connor

Prevent Mininet from crashing when display not set
fixes #173

1ecc63df 07/24/2013 12:03 AM Brian O'Connor

improved check for downed link in parsePingFull
fixes #176

fec98e27 07/11/2013 06:30 PM Brian O'Connor

Added output line to ping that is closer to ping program output

c188bee3 07/11/2013 06:17 PM Brian O'Connor

Fixed divide by 0 error in ping command when no packets are sent
fixes #143

10be691b 07/05/2013 02:27 AM Bob Lantz

Clean up intfs in root NS, and avoid deleting HW intfs

It appears that under certain conditions, such as when a
namespace exits, both ends of a veth pair may get dumped
into the root namespace. We therefore now remove an interface
both from its home namespace and from the root namespace.

dd21df3c 06/18/2013 12:09 AM Bob Lantz

Don't flush ALL routes and enable OPTIONAL default route/gw

fixes #152 hopefully

bd558875 03/09/2013 02:28 AM Bob Lantz

Add net['h1'] and for node in net support
thanks to Brian O'Connor for reminder + suggestion
closes #114

21366afc 12/01/2012 04:57 AM Bob Lantz

2.0.0rc1 -> 2.0.0 final

03c3123b 11/14/2012 06:47 PM Brandon Heller

test_hifi: Fix occasional test breakage

Source of error: regex to parse ps output had a single space, rather
than handling any amount of whitespace before the CPU percentage. When
that percentage would drop below 10.0, an space would be printed,
confusing the regex....

1f1d590c 11/14/2012 03:57 PM Brandon Heller

test: Improve unit tests to verify basic functionality

Also a more complete ping test that parses all output to the CLI.

These tests expand the hifi-specific ones to not just cover whether
a topology can be created with options, but whether those options...

fcd01592 11/14/2012 03:55 PM Brandon Heller

Move CPU limit into net, to be reused in future unit tests

bcfb3009 11/14/2012 05:32 AM Brandon Heller

small refactor: put function to ensure root in util

Two benefits:
- One place to change if in the future, a more granular method of
root access is used (like the BigSwitch patch).
- Makes this reusable by stuff like examples/baresshd.py that use
the low-level Mininet API.

2e089b5e 11/14/2012 01:17 AM Brandon Heller

pep8: Fix E127 continuation line over-indented

There are a bunch of these remaining, but I don't think the right course is
to 'fix' all of them to make pep8 happy, but instead to either change
the test in pep8 to consider that a continuation line may itself...

edf60032 11/14/2012 12:59 AM Brandon Heller

pep8: fix E128 continuation line under-indented errors

I wasn't sure this was worth fixing at first, but it does look more readable
now.

615ebb7a 11/13/2012 10:56 PM Brandon Heller

pep8: Fix E125 continuation line does not distinguish itself from next logical line

7a506047 11/13/2012 10:46 PM Brandon Heller

pep8: Fix E711, comparisons to None should use 'is' or 'is not'

Lengthy discussion of why this is a good thing (I didn't know) at SO:

http://stackoverflow.com/questions/2209755/python-operation-vs-is-not

21b2c2c4 11/04/2012 04:38 AM Bob Lantz

VERSION -> 2.0.0rc1

f58f83c0 10/30/2012 11:50 PM Bob Lantz

Allow controller to optionally be a list of constructors/classes

4ff6243f 10/05/2012 02:02 AM Bob Lantz

Update version number to 2.0.0d3 (and pass version check)

55179737 07/07/2012 06:44 AM Bob Lantz

Change version to 2.0.0d2 - there has to be a better way.

39128f8c 07/04/2012 05:08 AM Bob Lantz

Add VERSION string.

0f832c92 06/25/2012 09:14 PM Bob Lantz

Propagate prefix length to host IP configuration.

e1ca7196 05/23/2012 08:37 PM Bob Lantz

configHosts(): don't try to configure nonexistent interfaces.

089e8130 04/13/2012 10:50 PM Bob Lantz

Add popen() to regular hosts (cpu limited in progress)

548580d8 04/09/2012 11:54 PM Bob Lantz

Allow lists of nodes to be passed to getNodeByName
....which should perhaps be renamed!!!

197b083f 04/09/2012 03:49 AM Bob Lantz

Add static cpu (and memory) assignment.

a9c28885 04/04/2012 12:22 AM Bob Lantz

Bring up loopback interface when configuring hosts.

e1246c37 03/25/2012 10:39 PM Bob Lantz

Simplify port specification.

For the moment, I've removed the ability to specify
a dict of options without using **. This is a slightly
unfortunate trade-off since it simplifies implementation
at the expense of making the API slightly less convenient
(if somewhat more consistent.)

e8146dd1 03/24/2012 01:36 AM Bob Lantz

Change to allow addLink() without specifying ports.

41245f50 03/22/2012 12:27 AM Bob Lantz

Add getNodeByName for hifi compatibility.

9005ce32 03/20/2012 10:48 PM Bob Lantz

Whitespace fixes.

5a8bb489 03/20/2012 07:17 AM Bob Lantz

Attempt at revised/simplified topo class:

- keys are strings
- metadata is simply a dict
- buildFromTopo greatly simplified

8856d284 03/12/2012 02:44 AM Bob Lantz

Fix CLI commands.

14ff3ad3 03/11/2012 04:44 AM Bob Lantz

Fix codecheck and MininetWithControlNet.

82f483f5 03/10/2012 01:44 AM Bob Lantz

Add support for specifying host IP range with --ipbase.

a49c85a6 03/10/2012 12:06 AM Bob Lantz

Fix examples to work with new API (and vice-versa.)

8e3699ec 03/09/2012 10:10 PM Bob Lantz

Move init() into Mininet() and remove calls (since called automatically.)
Note: we should probably rename it "setup()" to avoid confusion.

216a4b7c 03/08/2012 08:05 AM Bob Lantz

Support for CFS bandwidth limiting.
Also trying to fix NOX cmdline opt, but broken at the moment.

84a91a14 03/07/2012 07:52 AM Bob Lantz

New configuration scheme and support for CPU limits (RT).

a6bcad8f 03/02/2012 11:45 PM Bob Lantz

Intf and Link classes. Latter support bandwidth limits using tc.

ad2fda25 01/07/2011 05:00 AM Bob Lantz

Attempt to make iperf test more robust.

e30f2c99 09/02/2010 03:51 AM Bob Lantz

Rename Controller.controller to .command

eaf5888a 09/02/2010 02:50 AM Bob Lantz

Added controller class arg to addController().

0a9358c9 08/18/2010 09:08 AM Brandon Heller

Add option to turn off passive listening port

ccca871a 08/18/2010 09:08 AM Brandon Heller

Add passive listening port

57aae3e1 08/10/2010 11:28 AM Brandon Heller

Add more param choices for iperf udp on CLI

c26875cb 05/07/2010 08:15 AM Bob Lantz

Fixed minor breakage due to code cleanup.

e3f6ecca 05/07/2010 12:48 AM Bob Lantz

Pass codecheck.

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

Pass pylint.

259d7133 05/05/2010 02:11 AM Bob Lantz

Pass pyflakes.

54dfb243 04/23/2010 12:04 AM Bob Lantz

Changed to use new cmd interface.

I'm still not 100% sure on this.

bbe5f8a3 04/11/2010 08:42 AM Bob Lantz

Minor comment changes.

99c035d9 04/11/2010 06:52 AM Bob Lantz

Changed to automatically call build() if necessary.

724f1144 04/11/2010 04:10 AM Bob Lantz

Changed messages slightly.

For a network, we create "links" rather than "edges" on a graph.

"Edges" is a bit confusing because the links may not be edge links on
the network!

Also, since you're not necessarily running a "test", I changed it to
just say that we're "Done."

15b482e3 04/05/2010 09:27 AM Brandon Heller

Support gnome terminals too

Caution: code is incomplete - can't set a default type from the CLI
and in some places the phrase xterm should be replaced by terminal.

f32a5468 03/23/2010 07:48 AM Brandon Heller

Fix NOX breakage

Controllers are no longer namespace-able, and all calls need one fewer
arg.

Also use more sensible temporary variable name.