Commit Graph
234 Commits
Author SHA1 Message Date
Bob Lantz e4c82e526e Change Node.monitor() to just return output.
It seems easier to rely on node.waiting for the moment.
2010-03-16 14:59:45 -07:00
Brandon Heller a3d899123d Comment clarification 2010-03-14 03:57:25 -07:00
Brandon Heller b055728fd5 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.
2010-03-14 03:53:16 -07:00
Brandon Heller a165881049 Ignore pyc files 2010-03-14 03:53:16 -07:00
Brandon Heller e01292c167 Fix minor typo 2010-03-14 03:53:16 -07:00
Brandon Heller 956bf4f2d0 Fix param typo 2010-03-14 03:53:15 -07:00
Bob Lantz e100d1d9d0 Change ofprotocold -> ovs-openflowd in OVSKernelSwitch. 2010-03-15 19:27:55 -07:00
Bob Lantz ad824e4e84 Pass codecheck. 2010-03-15 19:24:54 -07:00
Brandon Heller 3fac5a43d7 Handle ping output for paused hosts 2010-03-13 21:44:11 -08:00
Brandon Heller 07aad11081 Add ability to pause and resume any node 2010-03-13 21:35:52 -08:00
Brandon Heller 28cd95c374 Fix link command parsing bug 2010-03-13 21:32:11 -08:00
Brandon Heller af380c8912 Show PIDs in dump() 2010-03-13 16:36:34 -08:00
Brandon Heller 8d3c2859e4 Add port status change command 2010-03-13 06:30:53 -08:00
Brandon Heller e7c787b343 Fix sending commands to switches 2010-03-13 06:02:40 -08:00
Bob Lantz cae423e543 For now, make install. 2010-03-14 19:32:10 -07:00
Bob Lantz 7f9eb9e540 Changed remaining refs to netns to refer to mnexec. 2010-03-14 19:28:19 -07:00
Bob Lantz 3465c9ea64 Updated to reflect changes and include 2.6.33 patch. 2010-03-14 19:19:10 -07:00
Bob Lantz ed097b3b9c Working a bit on text files. Removed netns. 2010-03-14 15:18:17 -07:00
Bob Lantz bca38c997e Minor config notes changes. 2010-03-14 00:18:24 -08:00
Bob Lantz 0e2a7240c3 Reinstate mnexec in install. 2010-03-14 00:11:36 -08:00
Bob Lantz 51a1482407 Removed unused variable. 2010-03-14 00:03:54 -08:00
Bob Lantz 0e3fef2fb3 Merge branch 'master' of yuba.stanford.edu:mininet
Conflicts:
	mininet/node.py
2010-03-13 18:28:48 -08:00
Bob Lantz bcacfc0510 Support for control-C. Finally.
I've changed the way things work a bit:

1. netns is replaced by mnexec, a general-purpose mininet helper.

2. For interactive commands, we now use mnexec -p, which prints out
   the pid, so we can kill it when someone hits control-C!

3. We close file descriptors for subshells. This might save memory,
   but who knows.

4. We detach our subshells from the tty using mnexec -s; thus
   control-C should not terminate everything.

5. Given 4, mn -c is now necessary if you kill mininet.
2010-03-13 18:23:07 -08:00
Bob Lantz c4ae423238 Support for control-C. Finally.
I've changed the way things work a bit:

1. netns is replaced by mnexec, a general-purpose mininet helper.

2. For interactive commands, we now use mnexec -p, which prints out
   the pid, so we can kill it when someone hits control-C!

3. We close file descriptors for subshells. This might save memory,
   but who knows.

4. We detach our subshells from the tty using mnexec -s; thus
   control-C should not terminate everything.

5. Given 4, mn -c is now necessary if you kill mininet.
2010-03-13 18:19:23 -08:00
Bob Lantz d4b53ea73d Removing setsid for the moment - breaks shutdown.
Close to solving this set of problems.
2010-03-13 16:37:13 -08:00
Bob Lantz e953444fa5 Corrected list checkin sendCmd. 2010-03-13 13:59:03 -08:00
Bob Lantz 74993b6536 Changes to note neither ^C nor interactive commands work atm. 2010-03-12 16:40:58 -08:00
Bob Lantz 7b323bd4f4 Removed executability since mn -c is easier! 2010-03-12 16:38:26 -08:00
Bob Lantz 7cbde77496 Added blank line. 2010-03-12 16:24:28 -08:00
Bob Lantz 08ed5bb68a Made executable. 2010-03-12 16:22:40 -08:00
Bob Lantz 9e7aee2061 Merge branch 'master' of yuba.stanford.edu:mininet
Conflicts:
	setup.py
2010-03-12 16:21:52 -08:00
Bob Lantz 740d7ce39a Added newline at EOF. 2010-03-12 16:17:32 -08:00
Bob Lantz 4065511abb Detach shells from tty; monitoring changes.
Call netns using setsid to detach from the tty; this is
intended to fix the problem of control-C killing your network.

sendInt() doesn't actually work - hopefully we can fix this in the
future, but it's tricky since we want to detach the many shells from
our tty, but then optionally send tty interrupts to them! Ideally we
would either know the pid of the subprocess or be able to send a signal
to bash to get it to interrupt its subprocess.

waitOutput() now uses monitor. We also handle sentinels
coming in the middle of output (but default at end should
still work well.)
2010-03-12 16:16:28 -08:00
Bob Lantz 2ad03eea40 Minor cleanup; got rid of backslash. 2010-03-12 16:16:27 -08:00
Bob Lantz 406f5da19d Change to mention 2.6.33 kernel. 2010-03-12 16:13:09 -08:00
Bob Lantz 5947e017fd Minor changes and corrections. 2010-03-12 16:13:09 -08:00
Brandon Heller 44c63c2abd Fix OVS breakage 2010-03-12 16:13:09 -08:00
Brandon Heller 77529ce550 Ignore binary and egg data 2010-03-12 16:13:08 -08:00
Brandon Heller c30e500731 Update install instructions 2010-03-12 16:13:08 -08:00
Brandon Heller b403cc7f96 Colorize git output by default in VM 2010-03-12 16:13:08 -08:00
Brandon Heller 3b1174eff6 Update install scripts
Don't build NOX and OVS as root.  Also don't nuke kernel src.  Install
newer autoconf needed for OVS install from Deb backports, not src.
2010-03-12 16:13:08 -08:00
Bob Lantz c46c1ae6ef Merge branch 'master' of yuba.stanford.edu:mininet 2010-03-11 17:23:29 -08:00
Bob Lantz 9dbe572abe Detach shells from tty; monitoring changes.
Call netns using setsid to detach from the tty; this is
intended to fix the problem of control-C killing your network.

sendInt() doesn't actually work - hopefully we can fix this in the
future, but it's tricky since we want to detach the many shells from
our tty, but then optionally send tty interrupts to them! Ideally we
would either know the pid of the subprocess or be able to send a signal
to bash to get it to interrupt its subprocess.

waitOutput() now uses monitor. We also handle sentinels
coming in the middle of output (but default at end should
still work well.)
2010-03-11 17:16:27 -08:00
Bob Lantz 9f32a08b28 Minor cleanup; got rid of backslash. 2010-03-11 16:54:30 -08:00
Bob Lantz 47abe6d950 Change to mention 2.6.33 kernel. 2010-03-11 16:53:58 -08:00
Bob Lantz 3a7d2a133e Minor changes and corrections. 2010-03-11 16:53:29 -08:00
Brandon Heller b0a7a2579a Fix OVS breakage 2010-03-10 15:44:00 -08:00
Brandon Heller 4e57ddbce1 Ignore binary and egg data 2010-03-09 22:45:54 -08:00
Brandon Heller 8f30aa0017 Update install instructions 2010-03-09 22:37:29 -08:00
Brandon Heller f7f2f977d5 Colorize git output by default in VM 2010-03-09 22:16:30 -08:00