Statistics
| Branch: | Tag: | Revision:

mininet / mininet / node.py @ 21b2c2c4

History | View | Annotate | Download (39.3 KB)

# Date Author Comment
b69ef234 09/15/2012 01:23 AM Bob Lantz

Fix multi-controller/failover support on User, OVSLegacy switches

2aafefc2 08/17/2012 10:26 PM Bob Lantz

Fix typo in RemoteController.__init__ comment.
Thanks to Isaku Yamahata.

54c51c02 08/06/2012 06:41 PM Bob Lantz

Fix whitespace and change no controller exception to warning.

2b35a2ca 08/06/2012 10:08 AM James Page

Override remote controller check to ensure that remote controller is contactable

fa24f22d 08/01/2012 12:23 AM Bob Lantz

Re-enable slicing in UserSwitch since it's fixed with newer kernels.

28c2cdc2 07/07/2012 06:30 AM Bob Lantz

Workaround for openvswitch_mod rename and pass code check.

ec969b7f 07/02/2012 03:31 AM Bob Lantz

Change default controller for mn to ovsc (ovs-controller.)

Also add check to see if another controller is running -
eventually we should really detect errors from starting the
controller!!

06f7408c 05/24/2012 03:04 AM Bob Lantz

Fix popen to allow popen( cmd, arg1, arg2, arg3 )

b9100834 05/17/2012 06:59 AM Bob Lantz

Fix pexec('echo foo', shell=True)

b97c1dbd 05/13/2012 10:11 PM Bob Lantz

Set dpid on OVSSwitch.

0d94548a 05/11/2012 05:36 AM Bob Lantz

Fix default dpid which should be 12 digits for reference user switch.

0eba655d 05/10/2012 11:52 PM Bob Lantz

Fix RemoteController which was still using defaultIP rather than ip.

55cf19c4 04/25/2012 09:21 PM Bob Lantz

Improve error handling for defaultDpid()

I think it's worth considering how we want to specify dpids for
switches. One way would be to have Mininet (optionally) pick them
automatically. Another way, which I have currently implemented, is
to intuit them from the name, for example s1 -> 1. The latter is...

5ca91f9c 04/13/2012 10:50 PM Bob Lantz

White space edits for code check.

df600200 04/13/2012 10:50 PM Bob Lantz

CPULimiteHost.popen(): set cgroup and (optionally) RT priority

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

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

669e420c 04/13/2012 07:38 AM Bob Lantz

Add default value mems=0 for memory placement.

92b601ab 04/10/2012 12:12 AM Bob Lantz

Allow fail-mode to be set.
Probably we should have a generic mechanism to specify OVS options.

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

Add static cpu (and memory) assignment.

3f61ea71 03/26/2012 05:10 AM Bob Lantz

Restore deleted deleteIntfs in OVSSwitch.stop()

612b21cb 03/24/2012 01:38 AM Bob Lantz

Pass code check.

44af37bc 03/24/2012 01:18 AM Bob Lantz

Change default period to 100 ms, which seems to help cfs at least...
rt is still somewhat broken.

8dcefd5f 03/23/2012 08:33 PM Bob Lantz

Fix OVS legacy switch.

28833d86 03/23/2012 02:08 AM Bob Lantz

Retry deleting cgroup for the moment because it seems flaky.

Ultimately we may wish to create a mininet/ cgroup and do a recursive
delete at the end.

d1b29d58 03/22/2012 09:43 PM Bob Lantz

Fix printing pid for background tasks.

1aec55d9 03/22/2012 05:39 AM Bob Lantz

Workaround: reapply tc config after OVS destroys it.

59542784 03/22/2012 12:28 AM Bob Lantz

Make CPULimitedHost method sig friendlier, and make 'cfs' default sched.

b684ff78 03/20/2012 11:23 PM Bob Lantz

Fix convenience configuration methods.

efc99154 03/20/2012 10:46 PM Bob Lantz

Add warning in defaultIntf() if host has no interfaces.

Possibly this should be in intf() instead, as intf() is assumed
to always succeed.

318ae55e 03/20/2012 07:10 AM Bob Lantz

Allow sendCmd( [ cmd, arg1, ... ] )

bf9c6ab7 03/12/2012 07:29 AM Bob Lantz

Clarify comments and finally remove ControllerParams definition.

14c19260 03/12/2012 07:20 AM Bob Lantz

Use port 0 for control interface on switches.

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.

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.

9addfc13 03/09/2012 07:48 AM Bob Lantz

Add OVSController to complete out-of-box Ubuntu experience.

2db4268b 03/09/2012 06:07 AM Bob Lantz

Fix NOX controller so that mn --controller nox,pyswitch,... works.

0dbfd3a6 03/08/2012 09:48 PM Bob Lantz

Add CPULimitedHost to file comment.

8a622c3a 03/08/2012 09:39 PM Bob Lantz

Reorganize CPULimitedHost and add cgroup cleanup.

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

03dd914e 03/03/2012 04:34 AM Bob Lantz

Tease out intfList() from intfNames().

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

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

8a7d42db 02/10/2012 10:59 PM Bob Lantz

Update OVS switch to use ovs-vsctl rather than deprecated ovs-openflowd.

5cc80828 06/30/2011 02:36 AM Bob Lantz

Revert inadvertent print in node.py

37e1eafd 06/28/2011 11:50 PM Bob Lantz

Switch to Open vSwitch 1.1.1 for stability.

518c75b5 01/19/2011 05:23 AM Bob Lantz

Fixed nox_pysw not to fail on startup, but --port still doesn't work.

99609808 10/28/2010 04:21 AM Bob Lantz

Not sure why, but there's an extra blank line ;-/

4876b43f 10/18/2010 12:23 AM Bob Lantz

Merge branch 'of1.0' into testing

Conflicts:

bin/mn
mininet/cli.py
mininet/moduledeps.py
mininet/node.py
mininet/topo.py
util/install.sh
57fd19ef 09/02/2010 03:52 AM Bob Lantz

Rename Controller.controller to .command

2a750224 09/02/2010 02:50 AM Bob Lantz

Fixed args for nox.

fe769afa 09/02/2010 02:46 AM Bob Lantz

Added port to controller args; changed NOX to new arg format.

e900a16c 08/19/2010 09:42 PM Bob Lantz

Don't try to modprobe tun if it's built-in (e.g. Ubuntu.)

f9654e56 08/18/2010 05:58 PM Bob Lantz

Better error messages when switch setup() fails.

bd507eec 08/18/2010 05:07 PM Bob Lantz

Oops, get rid of debug print.

9802686b 08/18/2010 05:04 PM Bob Lantz

Switches use high default intf; disable slicing for user switch. ;-(

This should fix --switch user --innamespace.

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

Add newline

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

Add passive listening port

455194a3 08/17/2010 10:04 AM Bob Lantz

Delete spaces around =.

2f40c856 08/17/2010 07:02 AM Bob Lantz

Added additional sanity checks for when OF/OVS isn't installed.

9de7873b 08/17/2010 07:02 AM Bob Lantz

Change to automatically update IP and MAC addresses.

52082ff3 08/17/2010 07:02 AM Bob Lantz

mininet.node.SWITCH_PORT_BASE specifies first switch port number.

This should be mostly cosmetic, but it causes switches to number
their ports consistently with OpenFlow 1.0, which starts at 1.
For older versions of OpenFlow, SWITCH_PORT_BASE may be set to zero.

f0010171 08/17/2010 06:01 AM Bob Lantz

Added additional sanity checks for when OF/OVS isn't installed.

54d026f6 08/17/2010 02:36 AM Bob Lantz

Change to automatically update IP and MAC addresses.

dd159b4a 08/16/2010 09:49 PM Bob Lantz

mininet.node.SWITCH_PORT_BASE specifies first switch port number.

This should be mostly cosmetic, but it causes switches to number
their ports consistently with OpenFlow 1.0, which starts at 1.
For older versions of OpenFlow, SWITCH_PORT_BASE may be set to zero.

7d83d462 08/16/2010 07:04 PM Brandon Heller

Remove print statement left in

2fffa0bb 08/16/2010 07:04 PM Brandon Heller

Change port base from 0 to 1

OpenFlow versions > v0.9 require this.

Only tested w/FatTree topo - it's almost a guarantee that this breaks
every other topology.

6b2a3b18 08/16/2010 07:04 PM Brandon Heller

Small OVS API change

e282b6e2 08/16/2010 07:04 PM Brandon Heller

Fix --mac breakage

The OVS interface for this moved to ovs-openflowd.

This functionality was never there for the user-space switch. Now it's
in.

1a52deee 08/10/2010 09:05 AM Brandon Heller

Remove print statement left in

956546ac 08/10/2010 06:22 AM Brandon Heller

Change port base from 0 to 1

OpenFlow versions > v0.9 require this.

Only tested w/FatTree topo - it's almost a guarantee that this breaks
every other topology.

d26abda4 08/06/2010 05:38 PM Brandon Heller

Small OVS API change

81d27b3c 08/06/2010 05:34 PM Brandon Heller

Fix --mac breakage

The OVS interface for this moved to ovs-openflowd.

This functionality was never there for the user-space switch. Now it's
in.

272d496d 06/16/2010 07:24 PM Bob Lantz

Darned trailing whitespace.

a6661f0a 06/16/2010 07:21 PM Bob Lantz

Consistently use tcp:%s:%d for controller IP address format.

(In user, kernel and ovsk switch classes.)

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

Pass codecheck.

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

Pass pylint.

271013e0 04/27/2010 10:13 PM Bob Lantz

Minor cleanup.

e55cbef1 04/23/2010 12:12 AM Bob Lantz

Removed debugging printing.

Note now that we can pass options into switches; for example,
we could enable stp with Switch( 's1', opts='--stp' ).

121eb449 04/23/2010 12:06 AM Bob Lantz

Changed to support new cmd() interface.

It seems that it is more convenient to be able to call

cmd( 'foo', 'bar', 1)

for example. However, this may make it slightly less
efficient, so we will see how it works.

f24e70a4 04/13/2010 01:33 AM Bob Lantz

Added timeout option for monitor().

This allows monitor() to be used for polling. Of course, you
probably want to use poll() first anyway, but it's nice not
to have to block if there's no output.

a650b8e6 04/11/2010 05:04 AM Bob Lantz

Fixed catch: typo.

c6e7eaf0 04/11/2010 04:29 AM Bob Lantz

Changed to not die immediately if we send in an empty command.

There might still be some issues with this however...

b5672f15 04/11/2010 02:24 AM Bob Lantz

Cleaning up read/monitor/interrupt.

Now you don't need to specify a default read count.

Now, by default, we print the pid out in sendCmd() which allows us
to snarf it later and set lastPid correctly.

Now, we wrap os.kill() in a try block, so that if the process is...

b14b1ee4 03/30/2010 11:09 PM Bob Lantz

Remove unneeded '-' in '-n', which was causing error message.

47acf539 03/25/2010 12:02 AM Bob Lantz

Change to use printf rather than echo.

b2ef87ae 03/24/2010 10:02 PM Bob Lantz

Changes to pass code check.

We should check NOXController and RemoteController to make sure that
they are not broken, but I cannot do this at the moment.

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

Added two spaces before in-line # comments.

35341142 03/24/2010 08:42 PM Bob Lantz

Minor formatting changes.

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

f5191b85 03/23/2010 08:15 AM Brandon Heller

Revert "Add ability to pause and resume any node"

This reverts commit 07aad110819778fdf65a43a6d11e9ca46c9881db.

When the semantics are clear, functionality like this will get added back to
Mininet.

Conflicts:

mininet/node.py
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...

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

Change Node.monitor() to just return output.

It seems easier to rely on node.waiting for the moment.

e100d1d9 03/16/2010 02:27 AM Bob Lantz

Change ofprotocold -> ovs-openflowd in OVSKernelSwitch.

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

Pass codecheck.

a3d89912 03/14/2010 10:57 AM Brandon Heller

Comment clarification

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.

07aad110 03/14/2010 05:35 AM Brandon Heller

Add ability to pause and resume any node