Statistics
| Branch: | Tag: | Revision:

mininet / mininet / net.py @ 089e8130

History | View | Annotate | Download (23.6 KB)

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

8a034f4f 01/02/2010 06:58 PM Brandon Heller

Add xterm support

1bb4412f 01/02/2010 06:58 PM Brandon Heller

Separate kernel and user switches into separate objects

16c57ddb 01/02/2010 06:58 PM Brandon Heller

Enable controller-less setups

4804237f 01/02/2010 06:58 PM Brandon Heller

Add more NOX options

eeb9cb3c 01/02/2010 06:58 PM Brandon Heller

Restore iperf test

Also simplify test running.

8f20b95d 01/02/2010 10:43 AM Brandon Heller

Auto-install run and clean scripts

Also remove usused imports and outdated doc text.

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

Add MAC auto set for switches

Also use indexing for DPIDs to avoid zeroed MAC

8b5062a3 12/26/2009 10:25 PM Brandon Heller

Move TreeNet to new Mininet API

Also remove all non-object-oriented legacy Mininet code and update
tests.

User-space compatibility is untested, but most of the code for it is
still in.

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

Move fixLimits function to util

89bf3103 12/20/2009 10:19 PM Brandon Heller

Move Node functions into their own file

Nodes include Switch, Host, and Controller; move these to a separate
file.

This file still could use some attention to hide private functions.
Node seems like a primary class to extend, for adding stuff like Open
vSwitch, so it could benefit from a simpler interface.

4d2d52c3 12/20/2009 05:46 PM Brandon Heller

Remove unused function

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...