Commit Graph
183 Commits
Author SHA1 Message Date
Bob Lantz b7097daad4 Pass make codecheck. 2010-08-17 00:02:30 -07:00
Bob Lantz 52082ff3f9 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.
2010-08-17 00:02:30 -07:00
Bob Lantz dde9c91dcf Added error message if we can't read script file. 2010-08-17 00:02:30 -07:00
Bob Lantz 9d0dbe488a Added "source" command and restored echo after noecho command.
Interactive commands should "work", sort of.
2010-08-17 00:02:29 -07:00
Brandon Heller 57aae3e103 Add more param choices for iperf udp on CLI 2010-08-10 04:28:18 -07:00
Brandon Heller 60a39a7241 Add ability to specify hosts for iperf test 2010-08-10 02:16:36 -07:00
Brandon Heller 1a52deeea6 Remove print statement left in 2010-08-10 02:05:20 -07:00
Brandon Heller 956546acc7 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.
2010-08-09 23:22:40 -07:00
Brandon Heller d26abda426 Small OVS API change 2010-08-06 10:38:15 -07:00
Brandon Heller 81d27b3c56 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.
2010-08-06 10:34:17 -07:00
Bob Lantz 272d496dfe Darned trailing whitespace. 2010-06-16 12:24:45 -07:00
Bob Lantz a6661f0ac1 Consistently use tcp:%s:%d for controller IP address format.
(In user, kernel and ovsk switch classes.)
2010-06-16 12:21:43 -07:00
Bob Lantz c26875cb55 Fixed minor breakage due to code cleanup. 2010-05-07 01:15:41 -07:00
Bob Lantz e3f6ecca97 Pass codecheck. 2010-05-06 17:48:15 -07:00
Bob Lantz 82b7207295 Pass pylint. 2010-05-06 16:24:15 -07:00
Bob Lantz 259d713315 Pass pyflakes. 2010-05-04 19:11:12 -07:00
Bob Lantz 271013e0dc Minor cleanup. 2010-04-27 15:13:25 -07:00
Bob Lantz e55cbef182 Removed debugging printing.
Note now that we can pass options into switches; for example,
we could enable stp with Switch( 's1', opts='--stp' ).
2010-04-22 17:12:22 -07:00
Bob Lantz 121eb4496b 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.
2010-04-22 17:06:34 -07:00
Bob Lantz 8bc0037938 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.
2010-04-22 17:05:27 -07:00
Bob Lantz 54dfb2434a Changed to use new cmd interface.
I'm still not 100% sure on this.
2010-04-22 17:04:48 -07:00
Bob Lantz 83332c1a42 Handle interfaces (e.g. real interfaces) without remote Node. 2010-04-22 17:03:26 -07:00
Bob Lantz 2a554ae33c Changed 'args' to 'line' and fixed iperfudp. 2010-04-12 18:56:50 -07:00
Bob Lantz caf024bc98 Made help string a class var. 2010-04-12 18:52:00 -07:00
Bob Lantz e555f83c97 Replaced stdout.write() with output() 2010-04-12 18:45:43 -07:00
Bob Lantz c16679863b Updated comments to reflect interactive command support.
It may be fragile, but it does sort of work.
2010-04-12 18:37:33 -07:00
Bob Lantz f800e5124d Tweaks for better interactive command handling. 2010-04-12 18:34:52 -07:00
Bob Lantz f24e70a435 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.
2010-04-12 18:33:20 -07:00
Bob Lantz bbe5f8a389 Minor comment changes. 2010-04-11 01:42:58 -07:00
Bob Lantz f583900da9 Added default title of 'Node'. 2010-04-11 01:12:11 -07:00
Bob Lantz 68f97b74ad Added explicit xterm and gterm commands.
This is not as generic as having a single 'term' command, but
it's a lot more convenient to use.
2010-04-10 23:54:05 -07:00
Bob Lantz 9ab2cba870 Fixed gterm support; quote and join -e argument. 2010-04-10 23:53:00 -07:00
Bob Lantz 99c035d9ca Changed to automatically call build() if necessary. 2010-04-10 23:52:15 -07:00
Bob Lantz a650b8e657 Fixed catch: typo. 2010-04-10 22:04:55 -07:00
Bob Lantz 4a67fc9a4a Changed screen(1) names from hN to mininet.hN.
This should make it easier for people who use screen for other purposes
to identify which sessions were created by mininet.
2010-04-10 21:31:34 -07:00
Bob Lantz 257a2f636b Added ovs-openflowd to list of zombies.
We may still need additional code to clean up after ovs.
2010-04-10 21:30:35 -07:00
Bob Lantz c6e7eaf07c Changed to not die immediately if we send in an empty command.
There might still be some issues with this however...
2010-04-10 21:29:34 -07:00
Bob Lantz cd7457480b Re-added TreeNet convenience function. 2010-04-10 21:29:11 -07:00
Bob Lantz 5fb3d5426c Restored numbering of tree nodes. 2010-04-10 21:15:15 -07:00
Bob Lantz 724f1144ac 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."
2010-04-10 21:10:25 -07:00
Bob Lantz f89015971f Added default prefix for window titles if none is specified. 2010-04-10 20:52:02 -07:00
Bob Lantz 388f54e148 Fixed regex typo. 2010-04-10 20:25:16 -07:00
Bob Lantz ff6145c015 Change import to reflect renamed mininet.term module. 2010-04-10 20:24:31 -07:00
Bob Lantz b5672f1565 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
already gone we don't get an exception.
2010-04-10 19:24:47 -07:00
Bob Lantz de901ef058 Modified to allow execed nodes to work, if we ever reinstate them. 2010-04-10 19:24:11 -07:00
Bob Lantz 8bbd368576 Moved TreeNet() convenience function here. 2010-04-10 19:23:23 -07:00
Bob Lantz ce67093a62 Minor format tweaks. 2010-04-09 01:46:51 -07:00
Brandon Heller 15b482e375 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.
2010-04-05 02:27:00 -07:00
Brandon Heller e540ab5726 Use quit rather than kill when cleaning up screens
Kill seems to get ignored, while quit kills the detached sessions.
2010-04-05 02:07:23 -07:00
Brandon Heller ce9cd5bee5 Add command to spawn an xterm 2010-04-05 01:06:30 -07:00