Statistics
| Branch: | Tag: | Revision:

mininet / mininet / net.py @ 896c4cbc

History | View | Annotate | Download (30 KB)

# Date Author Comment
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.

67516aa4 03/24/2010 11:58 PM Bob Lantz

Change run() to allow running external functions.

cf6f6704 03/24/2010 09:41 PM Bob Lantz

Added two spaces before in-line # comments.

c70aab0a 03/23/2010 10:25 PM Bob Lantz

Changed mininet.link() to mininet.configLinkStatus(src,dst,status)

Also rearranged parameters in link command to

mininet> link s1 h2 up

To resemble ifconfig a bit more.

fb2f6523 03/23/2010 10:05 PM Bob Lantz

Changed mininet.link() to support multiple links.

It should also probably be renamed to something like:
configLinks(src, dst, status).

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.

ec7b211c 03/16/2010 09:59 PM Bob Lantz

Buffered output. Added net.monitor() and node.readline()

Moved monitor() and readline() into net.py and node.py respectively,
which will hopefully be useful for monitoring large sets of hosts,
as is done in udpbwtest.py.

Changed iperf to use interactive command infrastructure (such as it...

ad824e4e 03/16/2010 02:24 AM Bob Lantz

Pass codecheck.

7f9eb9e5 03/15/2010 02:28 AM Bob Lantz

Changed remaining refs to netns to refer to mnexec.

b055728f 03/14/2010 10:53 AM Brandon Heller

Automatically load kernel module dependencies

Before this commit, you'd have to manually insert the kernel module for
OVS or OF kernel modules, and you couldn't run one regression test with
all 3.

Now, these are kmod insert/remove is handled automatically.

956bf4f2 03/14/2010 10:53 AM Brandon Heller

Fix param typo

3fac5a43 03/14/2010 05:44 AM Brandon Heller

Handle ping output for paused hosts

8d3c2859 03/13/2010 02:30 PM Brandon Heller

Add port status change command

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.

1bda2d21 03/05/2010 10:12 PM Bob Lantz

Changed to use Node.MAC.

cdeaca86 03/05/2010 12:11 PM Brandon Heller

Rename cliinfo debug level to output

1a40cd04 03/05/2010 02:58 AM Brandon Heller

Add new loglevel to display CLI output only

Also print warning if user chooses a loglevel that will hide CLI output.

086ef80e 03/05/2010 12:53 AM Bob Lantz

Changed setIP to accept numeric prefix len. Added Node.deleteIntfs().

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.

2235f216 02/28/2010 07:40 AM Bob Lantz

Minor cleanup of mn/net and fixes for CLI.

All commands should work now.

c3a44400 02/28/2010 07:19 AM Bob Lantz

Changed custom feature so that params aren't added to globals.

There is probably a better way of doing this, but currently
parseCustomFile can modify globals (e.g. TOPOS) as well as
instance variables (self.validate) and classes (e.g. MyTopo),
which are also in the global name space....

dba3b599 02/27/2010 09:54 PM Bob Lantz

Changed to dump bad iperf output.

019bff82 02/27/2010 01:16 AM Bob Lantz

Made it possible to create a Mininet() without using a Topo object.

This increases flexibility by allowing a topology to be manually created
in Python, or specified using another format, without having to create
a Topo object first.

However, Topos are useful, and are still the default topology object!

31b43002 02/16/2010 10:42 PM Bob Lantz

Added a bit to comments, and removed trailing spaces.

d5886525 02/08/2010 11:51 PM Bob Lantz

Changed to use info() and error() logging aliases.

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.

496b5f9e 02/06/2010 01:01 AM Bob Lantz

Moved CLI into its own file. Also, MininetCLI is now just 'CLI'.

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.

f7c2df25 01/10/2010 05:11 AM Brandon Heller

Support OpenVSwitch in kernel-mode

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.

ca58c896 01/07/2010 08:54 AM Brandon Heller

Restore user-space switch option

Switches and controller in root namespace only, for now.

d856c818 01/07/2010 05:23 AM Brandon Heller

Support out-of-order link addition

Sort interface names before passing to dpctl for kernel switch, so that
links for multipath topologies can be added in any order.

80b3dbbd 01/06/2010 04:52 PM Brandon Heller

CLI: add node dump-all-data command

74ef7615 01/06/2010 04:40 PM Brandon Heller

CLI: add interface dump command

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.

fcf6a16f 01/02/2010 07:20 PM Brandon Heller

Remove accidentally-added iperf verbosity

0cd489a7 01/02/2010 06:58 PM Brandon Heller

Add iperf UDP test