Commit Graph
100 Commits
Author SHA1 Message Date
Bob Lantz ccc0b1a1cf Fixed debian/copyright 2012-07-03 23:09:37 -07:00
Bob Lantz 78b2f585ae Fixed support for adding man page to debian package - to pass lintian! 2012-07-03 22:50:53 -07:00
Bob Lantz 39128f8cf8 Add VERSION string. 2012-07-03 22:08:33 -07:00
Bob Lantz 7fe847967d clean up "make man" slightly 2012-07-03 22:08:25 -07:00
Bob Lantz f2e7884ade Add support for generating man page from mn --help. 2012-07-01 23:23:56 -07:00
Bob Lantz 0809105bed Fixing some lintian problems. 2012-07-01 23:22:44 -07:00
Bob Lantz 93bf7793cb Debian copyright wants a real file, so change LICENSE to symlink. 2012-07-01 23:22:05 -07:00
Bob Lantz ec969b7f99 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!!
2012-07-01 20:31:30 -07:00
Bob Lantz cb859243a5 Added Debian/Ubuntu packaging - thanks to James Page. 2012-07-01 19:16:41 -07:00
Bob Lantz e04c207c3c Update for Mininet 2.0.0 development. 2012-07-01 19:08:20 -07:00
Bob Lantz 0f832c9226 Propagate prefix length to host IP configuration. 2012-06-25 14:14:09 -07:00
Bob Lantz 6c947bca07 More indent errors - curse you emacs. 2012-05-23 21:12:24 -07:00
Bob Lantz e4514a4ecb Still more indentation errors. ;-p 2012-05-23 21:09:14 -07:00
Bob Lantz 8c778bb081 Fix indentation errors. 2012-05-23 21:06:15 -07:00
Bob Lantz f1bf3c60e0 Added popenpoll.py example of using popen()/pmonitor() 2012-05-23 20:56:35 -07:00
Bob Lantz 06f7408cf2 Fix popen to allow popen( cmd, arg1, arg2, arg3 ) 2012-05-23 20:04:36 -07:00
Bob Lantz e1ca7196c7 configHosts(): don't try to configure nonexistent interfaces. 2012-05-23 13:37:02 -07:00
Bob Lantz 8f310286f8 Add setLinkInfo() which seems to be missing. 2012-05-21 23:09:11 -07:00
Bob Lantz b91008345f Fix pexec('echo foo', shell=True) 2012-05-16 23:59:12 -07:00
Bob Lantz 2f8dfe5810 Ignore error installing OVS controller, and disable its startup script. 2012-05-14 17:29:24 -07:00
Bob Lantz 79dcdc0491 Add libconfig-dev dependency for oflops. 2012-05-14 16:58:36 -07:00
Bob Lantz b0fb398833 Patch/hacks to enable NOX destiny/classic to compile on Ubuntu 12.04 2012-05-14 16:03:48 -07:00
Bob Lantz 6e64deec08 Fix typo. 2012-05-13 15:29:08 -07:00
Bob Lantz b97c1dbd56 Set dpid on OVSSwitch. 2012-05-13 15:11:41 -07:00
Bob Lantz d75e39ac61 Change wireshark install to reflect new repository location. 2012-05-13 14:43:25 -07:00
Bob Lantz e8d60e0fcf Pass code check. 2012-05-10 22:37:49 -07:00
Bob Lantz 0d94548a09 Fix default dpid which should be 12 digits for reference user switch. 2012-05-10 22:36:20 -07:00
Bob Lantz 4c3ff8f184 Remove accidentally added debugging line. 2012-05-10 22:23:31 -07:00
Bob Lantz 0e8cca0869 Remove unnecessary and broken --ip option. 2012-05-10 16:54:03 -07:00
Bob Lantz 0eba655d2d Fix RemoteController which was still using defaultIP rather than ip. 2012-05-10 16:52:40 -07:00
Bob Lantz cece39e439 Fix poller to only check if stdin and node are readable.
Thanks to James Zeng for pointing this out!
2012-05-10 16:32:55 -07:00
Bob Lantz cfd381134f Fix errRun to not exit until all of stdout and stderr have been read. 2012-05-09 22:59:30 -07:00
Bob Lantz 55cf19c4de 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
slightly inefficient, but is convenient because it ensures that
there is a logical mapping between switch names and dpids, which
is very helpful for debugging an OpenFlow system!

Probably we should just clarify that the easiest way to set a dpid
is to include it in the switch name, but you can also pass it in
as a custom parameter to the constructor.
2012-04-25 14:21:39 -07:00
Bob Lantz 50cebe6753 Add pmonitor() to make it easy to monitor popen objects. 2012-04-13 17:42:37 -07:00
Bob Lantz 237a3c54cf Begin test/example for popen(). 2012-04-13 15:50:45 -07:00
Bob Lantz 5ca91f9ced White space edits for code check. 2012-04-13 15:50:45 -07:00
Bob Lantz df600200a7 CPULimiteHost.popen(): set cgroup and (optionally) RT priority 2012-04-13 15:50:45 -07:00
Bob Lantz 089e8130e4 Add popen() to regular hosts (cpu limited in progress) 2012-04-13 15:50:45 -07:00
Bob Lantz e78e8fb56a Add support for attaching to network namespace using setns(2) 2012-04-13 15:50:45 -07:00
Bob Lantz 669e420cc4 Add default value mems=0 for memory placement. 2012-04-13 07:38:35 +00:00
Bob Lantz 5507550c53 Fix wireshark dissector install on 11.10 2012-04-11 13:20:18 -07:00
Bob Lantz 7cb340b7c9 Pass code check. 2012-04-10 00:12:37 +00:00
Bob Lantz 92b601aba9 Allow fail-mode to be set.
Probably we should have a generic mechanism to specify OVS options.
2012-04-10 00:12:03 +00:00
Bob Lantz 350fdbfe50 Allow modules (node.py) to be 1500 lines. Maybe reduce this someday. 2012-04-10 00:02:56 +00:00
Bob Lantz 548580d817 Allow lists of nodes to be passed to getNodeByName
....which should perhaps be renamed!!!
2012-04-09 23:54:17 +00:00
Bob Lantz 149a1f5639 Apparently errRun isn't as flexible as I thought... 2012-04-08 20:49:21 -07:00
Bob Lantz 197b083fbc Add static cpu (and memory) assignment. 2012-04-08 20:49:12 -07:00
Bob Lantz a7648e78fb Add mountCgroups() and tweak/correct fixLimits() 2012-04-08 20:49:04 -07:00
Bob Lantz 50202e1246 Off by one... I dislike range() 2012-04-05 21:38:02 -07:00
Bob Lantz a4338de38c Fix error message. 2012-04-05 20:57:29 -07:00
Bob Lantz d08d101eba Added simpleperf.py to examples. 2012-04-03 18:49:39 -07:00
Bob Lantz 32f7847bca Change doxypy.py to doxypy. 2012-04-03 17:50:59 -07:00
Bob Lantz 1bb990357f Added multipoll and multiping examples. 2012-04-03 17:32:55 -07:00
Bob Lantz a9c28885f3 Bring up loopback interface when configuring hosts. 2012-04-03 17:22:28 -07:00
Bob Lantz d776bd3a4f Add handle 10: to netem for hifi compat, reconfiguration. 2012-04-02 16:39:37 -07:00
Bob Lantz 5d6fda932d Add openvswitch-datapath-dkms if no datapath installed. 2012-03-31 21:30:16 -07:00
Bob Lantz c1a6ae2b48 Remove blank line. 2012-03-31 21:29:56 -07:00
Bob Lantz 78606a35c9 Removed unused param in add_link. 2012-03-31 21:29:27 -07:00
Bob Lantz 1dd3de0d04 Remove unused burst. 2012-03-31 21:29:09 -07:00
Bob Lantz ece14ff4b5 Check out CS244 branch for class. 2012-03-31 20:48:12 -07:00
Bob Lantz e5653fb63b Change back to match mininet-hifi, except for max_queue_len=1000. 2012-03-27 00:31:37 -07:00
Bob Lantz 3f61ea7104 Restore deleted deleteIntfs in OVSSwitch.stop() 2012-03-25 22:10:04 -07:00
Bob Lantz 2ec866d2c5 TCLink: pass correct parameters to superclass. 2012-03-25 20:18:35 -07:00
Bob Lantz 26c61734da Add cgroup and ethtool dependencies for mininet (w/hifi integration.) 2012-03-25 15:41:02 -07:00
Bob Lantz e1246c3741 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.)
2012-03-25 15:39:18 -07:00
Bob Lantz 2d924f8a65 Add Mininet object to locals as 'net' 2012-03-25 15:38:32 -07:00
Bob Lantz 00d9b78035 Reinstate more complicated test. 2012-03-23 18:41:25 -07:00
Bob Lantz 612b21cbe7 Pass code check. 2012-03-23 18:38:49 -07:00
Bob Lantz 8139695d46 Use 's%s' for bw speedup; change burst to fix tbf and htb performance. 2012-03-23 18:37:32 -07:00
Bob Lantz e8146dd130 Change to allow addLink() without specifying ports. 2012-03-23 18:36:13 -07:00
Bob Lantz 44af37bc2b Change default period to 100 ms, which seems to help cfs at least...
rt is still somewhat broken.
2012-03-23 18:18:48 -07:00
Bob Lantz beb05a71c8 Move dumpNetConnections to util() because it's useful! 2012-03-23 18:17:49 -07:00
Bob Lantz 74ea006d92 Increase the quota and cpu fraction to get max cfs performance. 2012-03-23 18:17:08 -07:00
Bob Lantz 335ba99b60 Add --switch ovsl for legacy OVS. 2012-03-23 13:33:31 -07:00
Bob Lantz 8dcefd5ff9 Fix OVS legacy switch. 2012-03-23 13:33:12 -07:00
Bob Lantz 28833d864c 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.
2012-03-22 19:08:45 -07:00
Bob Lantz a5af91d0d3 Have errFail report cmd and stderr as well as exit code. 2012-03-22 19:08:09 -07:00
Bob Lantz 4deb735425 Simple cpu limiting example. 2012-03-22 14:44:20 -07:00
Bob Lantz f89d9a4d6b Fix typo inadvertently saved in editor. 2012-03-22 14:43:52 -07:00
Bob Lantz d1b29d58df Fix printing pid for background tasks. 2012-03-22 14:43:27 -07:00
Bob Lantz ba8d4f9bd6 Add verySimpleLimit() for debugging. 2012-03-21 23:31:20 -07:00
Bob Lantz 0b7c277ec2 Save parameters for future reference (e.g. OVS/tc workaround.) 2012-03-21 23:07:40 -07:00
Bob Lantz 1aec55d960 Workaround: reapply tc config after OVS destroys it. 2012-03-21 22:39:46 -07:00
Bob Lantz 595427842c Make CPULimitedHost method sig friendlier, and make 'cfs' default sched. 2012-03-21 17:28:00 -07:00
Bob Lantz 41245f5087 Add getNodeByName for hifi compatibility. 2012-03-21 17:27:40 -07:00
Bob Lantz b684ff7844 Fix convenience configuration methods. 2012-03-20 16:23:17 -07:00
Bob Lantz ea7c326017 Ignore emacs autosaves. 2012-03-20 15:50:44 -07:00
Bob Lantz f85c1cefb4 Use upstream OVS packages. 2012-03-20 15:49:39 -07:00
Bob Lantz 9005ce3255 Whitespace fixes. 2012-03-20 15:48:06 -07:00
Bob Lantz efc991547e Add warning in defaultIntf() if host has no interfaces.
Possibly this should be in intf() instead, as intf() is assumed
to always succeed.
2012-03-20 15:46:54 -07:00
Bob Lantz 8bebd37759 Fix is_switch() to always succeed + whitespace edits. 2012-03-20 15:45:46 -07:00
Bob Lantz e52d0ee1de Fix to work with new Topo class. 2012-03-20 15:44:50 -07:00
Bob Lantz ff56881946 Add TCLink for simplified tc-limited link creation. 2012-03-20 15:43:43 -07:00
Bob Lantz 5a8bb48951 Attempt at revised/simplified topo class:
- keys are strings
- metadata is simply a dict
- buildFromTopo greatly simplified
2012-03-20 00:17:30 -07:00
Bob Lantz 318ae55e35 Allow sendCmd( [ cmd, arg1, ... ] ) 2012-03-20 00:10:11 -07:00
Bob Lantz bf9c6ab7b4 Clarify comments and finally remove ControllerParams definition. 2012-03-12 00:29:55 -07:00
Bob Lantz 14c1926081 Use port 0 for control interface on switches. 2012-03-12 00:20:48 -07:00
Bob Lantz d7e5dfc5b6 Minor tweaks: specify port, new repr() 2012-03-12 00:20:26 -07:00
Bob Lantz 8856d284c0 Fix CLI commands. 2012-03-11 19:44:04 -07:00
Bob Lantz 14ff3ad3d0 Fix codecheck and MininetWithControlNet. 2012-03-10 20:44:34 -08:00