cody burkard
c9b844a721
added controller.stop() back in
2014-08-18 23:51:29 -07:00
cody burkard
604ad455ee
kill all child processes to avoid race condition and no controller shutdown
2014-08-18 23:24:18 -07:00
Brian O'Connor
db0f36f431
Fixing Node.monitor() to read entire prompt marker.
...
Applying @cdburkard fix to #322
2014-08-14 00:18:37 -07:00
Brian O'Connor
628e84068e
Reverting the disable signals change
2014-07-31 18:27:57 -07:00
Brian O'Connor
78a32e93fd
Merge branch 'master' into devel/pty
2014-07-31 18:23:19 -07:00
Cody Burkard
00d1963484
revised comment on defaultController function
2014-07-15 18:21:56 -07:00
Cody Burkard
5ac3cde2bd
restructured defaultController into a function
2014-07-15 15:48:18 -07:00
Cody Burkard
796b281bf1
fixed command parameter
2014-07-14 13:09:41 -07:00
Cody Burkard
72fd120dc8
added default controller class
2014-07-11 19:04:20 -07:00
Brian O'Connor
191df1cb73
Adding listen socket to UserSwitch when there is no listenPort set
2014-07-09 17:47:25 -07:00
lantz
3b484491ce
Merge pull request #315 from cdburkard/patches/fix_bindpy
...
Added support for mount namespaces in bind.py
2014-07-08 16:27:06 -07:00
Bob Lantz
3b24bd7abd
Restore non-mnexec pid detection for background commands
2014-07-08 02:22:02 -07:00
Bob Lantz
e9013d761f
Fix pid regex to eat \r\n
2014-07-07 21:58:30 -07:00
Bob Lantz
c49b216c1f
Set default printPid back to True
2014-07-07 21:55:34 -07:00
Bob Lantz
16ddf6560a
Fix findPid since pty uses \r\n as line ending
2014-07-07 21:51:07 -07:00
Cody Burkard
9c3ecfe338
conforming to mininet style
2014-07-02 10:53:41 -07:00
Bob Lantz
771850b9cf
Possibly faster check for sentinel.
2014-07-01 18:04:44 -07:00
Bob Lantz
355696f3dd
Don't set self.waiting twice
2014-07-01 17:55:14 -07:00
Bob Lantz
82e0e9f38f
Avoid overhead of another process (env) in startShell()
2014-07-01 01:49:10 -07:00
Bob Lantz
549f1ebc8f
Attach a pty to each node's bash process
...
This should enable node commands that are expecting a tty to
behave better.
2014-06-27 16:41:54 -07:00
Bob Lantz
00803bcd7f
Whitespace changes in OVSSwitch.
2014-06-27 13:05:10 -07:00
Cody Burkard
af2f67d98c
added documentation for HostWithPrivateDirs
2014-06-26 09:29:06 -07:00
Cody Burkard
752c2d6e7c
mountprivatedirs is no longer needed
2014-06-20 23:54:18 -07:00
Cody Burkard
6a81b6dfb3
added persistence option to HostWithPrivateDirs. also attached mount namespaces when mnexec -a is specified
2014-06-19 15:08:26 -07:00
Brian O'Connor
893cf61c21
Merge pull request #313 from cdburkard/master
...
ovs port numbering bug fix
2014-06-11 16:17:14 -07:00
Cody Burkard
9109233886
Added support for mount namespaces in bind.py. Also moved it to the node class as a host type.
2014-06-10 11:44:03 -07:00
lantz
00c3238e50
Merge pull request #310 from rlane/ivs-verbose
...
IVSSwitch: add an option to control the --verbose flag
2014-05-28 14:31:45 -07:00
Cody
4579b303e6
conforming to mininet python style
2014-05-28 13:46:55 -07:00
Cody
32d3c2bc79
removing debugging messages
2014-05-28 12:56:24 -07:00
Cody
ba43451bd6
rearranged code for elegance
2014-05-28 12:42:48 -07:00
Cody
f1e42ba5fa
adding ovs version detection to fix port numbering bug
2014-05-28 11:50:13 -07:00
Rich Lane
163a66c64c
IVSSwitch: add an option to control the --verbose flag
2014-05-22 13:06:57 -07:00
Rich Lane
876e66e555
net: allow batch shutdown of multiple types of switches
...
Each switch class will be called to shutdown its own instances.
2014-05-22 12:36:07 -07:00
Rich Lane
93cd5583eb
IVSSwitch: support batch shutdown
...
Not a single command like the OVS one, but it still greatly decreases the
shutdown time.
This does assume that stop() is called after batchShutdown(), which is true in
the current mininet code.
2014-05-22 12:22:41 -07:00
Gregory Gee
5cb4a5424d
Add ability for for OVS switch start connect to controllers using protocols other than TCP.
...
net.addController( 'c0', protocol='ssl' )
This now allows OVS to connect to a controller using SSL. The default of protocol is 'tcp'
as it currently is.
2014-05-03 16:21:53 -04:00
lantz
14e14f1b87
Merge pull request #286 from lantz/devel/ovsbatch
...
Enable batch startup/shutdown of OVS
Not perfect, but it moves us forward at least.
2014-04-13 18:44:11 -07:00
lantz
bffe045267
Merge pull request #290 from backb1/patch/netstatnumeric
...
Netstat: do not resolve addresses
2014-04-01 11:50:51 -07:00
Rich Lane
a7eb557680
IVSSwitch: wait for ivs to terminate before tearing down node
...
This was a problem when running IVS in a container. IVS would begin the process
of closing controller connections on receiving SIGTERM, but often mininet would
have continued on and removed the control network interface from the container
before it could send the FIN. The controller wouldn't know the connection had
been closed until it timed out much later.
2014-03-18 11:04:14 -07:00
Bob Lantz
2e19ceb0aa
Use a single ovs-vsctl command for speed/atomicity
2014-02-28 18:45:41 -08:00
Bob Lantz
3e2eb71316
Fix default of in-band control for OVS.
...
fixes #279
2014-02-17 00:23:10 -08:00
Bob Lantz
06115a0456
Add support for batch shutdown of OVS switches.
...
This saves about 10 seconds for a 200 switch network.
2014-02-06 17:56:32 -08:00
Bob Lantz
74c71bc8a4
Minor tweak of return value.
2014-02-03 17:55:25 -08:00
Bob Lantz
0b5609f587
Check (and canonicalize) dpid arguments to Switch()
...
This seems slightly ugly, but it has bitten many people.
Closes #268
2014-02-03 17:52:51 -08:00
Bob Lantz
29988c8b1d
Canonicalize dpid by removing colons and padding with zeros
...
closes #268
2014-01-29 16:54:25 -08:00
Andrew Ferguson
0dd96ebc57
userspace switch can be reached on unix port by dpctl
2014-01-24 16:59:42 -05:00
Andrew Ferguson
284547080c
don't crash when link is TCLink but without options
...
caused by optimized return in link.py#275 in TCIntf.config()
2014-01-20 17:45:30 -05:00
Rich Lane
2200d8d173
node: kill entire process group in terminate
...
mnexec already puts the shell into its own process group. Killing the entire
process group cleans up after any background processes the user left running.
2013-12-14 11:12:46 -08:00
backb1
c34a000e78
Do not resolve addresses
2013-12-14 16:11:33 +01:00
Rich Lane
4a94f76ec3
IVSSwitch: bring up lo interface
2013-10-08 16:59:02 -07:00
Bob
b5e8dd5edc
Merge pull request #210 from rlane/ivs-opts
...
IVSSwitch: support opts constructor parameter
2013-09-16 14:22:18 -07:00