Brandon Heller
e1205a8a49
Add a simple unit test for link/host creation with options
2012-11-14 00:43:46 -08:00
Brandon Heller
d7768ab228
examples/simpleperf: Warn in docstring about effects of link settings
...
These include dropped pings and iperf hanging.
2012-11-13 23:28:24 -08:00
Brandon Heller
bf208cdeb6
Fix SSHD example by generalizing input intf args
...
A number of functions in node.py look like this:
return self.intf( intf ).<other stuff>
Previously, self.intf(...) in Node would expect a string name for an
interface and return None if an object was passed in instead of a
string name.
Now, be more permissive and assume that objects passed in are for Intf
objects. This makes all such functions in node.py handle more flexible
input args, either name or actual Intf object.
An alternative and equally valid approach would be to raise an Exception
whenever a non-string, non-falsy value was passed in to Node.intf(), and
to modify the code in at least one place - examples/sshd.py - to pass
the interface name, rather than the interface object.
Also fix input args for examples/scratchnetuser.py - the interface name
was being passed in as the prefix len, which makes no sense.
2012-11-13 22:44:47 -08:00
Brandon Heller
12fea0f6d5
examples/baresshd: ensure root permissions
...
Prevent idiots like me from getting confused by non-obvious 'broken pipe'
errors when they forget to put 'sudo' in front :-)
2012-11-13 21:33:44 -08:00
Brandon Heller
bcfb3009c0
small refactor: put function to ensure root in util
...
Two benefits:
- One place to change if in the future, a more granular method of
root access is used (like the BigSwitch patch).
- Makes this reusable by stuff like examples/baresshd.py that use
the low-level Mininet API.
2012-11-13 21:32:41 -08:00
Brandon Heller
8a1264e266
Fix 'cgroups not mounted' error in U12.10
...
'mount' shows something slightly different in Ubuntu 12.10:
cgroup on /sys/fs/cgroup type tmpfs (rw,uid=0,gid=0,mode=0755)
Note the lack of a plural on first word cgroup, which has changed.
Still mounted at /sys/fs/cgroup, so check for both possibilities
when instantiated CPU-limited hosts.
2012-11-13 20:53:13 -08:00
Brandon Heller
36c9b040ca
examples: Add new tests to README
2012-11-13 18:33:10 -08:00
Brandon Heller
2eb0593cd2
examples/cpu: Fix typo, note existence in README
2012-11-13 18:06:19 -08:00
Brandon Heller
d40003e0cd
examples: Make simpleperf.py executable
2012-11-13 18:05:10 -08:00
Brandon Heller
9330a33fe5
pep8: Fix E501 line-too-long errors incurred fixing other pep8 stuff :-)
2012-11-13 17:21:36 -08:00
Brandon Heller
2e089b5e4a
pep8: Fix E127 continuation line over-indented
...
There are a bunch of these remaining, but I don't think the right course is
to 'fix' all of them to make pep8 happy, but instead to either change
the test in pep8 to consider that a continuation line may itself
be continued halfway, OR, to change the code in these lines to be more
readable by removing the need for all those nested continuations.
Personally, I find multiply-broken lines (aka nested continuations) really
hard to read.
2012-11-13 17:17:51 -08:00
Brandon Heller
edf6003217
pep8: fix E128 continuation line under-indented errors
...
I wasn't sure this was worth fixing at first, but it does look more readable
now.
2012-11-13 16:59:10 -08:00
Brandon Heller
c0095746af
pep8: Fix E121/126, continuation line indention
2012-11-13 16:08:26 -08:00
Brandon Heller
33d548b412
pep8: Fix E121 continuation line indentation is not a multiple of four
2012-11-13 15:01:11 -08:00
Brandon Heller
615ebb7afa
pep8: Fix E125 continuation line does not distinguish itself from next logical line
2012-11-13 14:56:49 -08:00
Brandon Heller
7a5060478b
pep8: Fix E711, comparisons to None should use 'is' or 'is not'
...
Lengthy discussion of why this is a good thing (I didn't know) at SO:
http://stackoverflow.com/questions/2209755/python-operation-vs-is-not
2012-11-13 14:46:58 -08:00
Brandon Heller
0bd5c6519c
pep8: Fix E203 whitespace before punctutation
2012-11-13 14:39:31 -08:00
Brandon Heller
1052f8a0d4
pep8: Fix E271/E272, spaces before/after keyword
2012-11-13 14:36:56 -08:00
Brandon Heller
03d211f2a9
codecheck: Make codecheck happy with a consistent version num
2012-11-12 18:08:59 -08:00
Brandon Heller
f6c4239409
install: Add 'make codecheck' deps
...
These total to only ~200KB.
2012-11-12 18:07:19 -08:00
Brandon Heller
59897168d4
install: Update OFTest repo location
...
This repo has moved to git://github.com/floodlight/oftest.git
2012-11-12 16:46:29 -08:00
Brandon Heller
b597ef5d55
install: Add help2man to MN deps
...
'make install' calls help2man, so apt-get install it beforehand.
2012-11-12 16:46:22 -08:00
Bob Lantz
e3c8066a9e
OK, github is broken - reverting to old spacing.
2012-11-09 00:09:41 -08:00
Bob Lantz
78e3e18c42
trying to fix list spacing
2012-11-09 00:09:11 -08:00
Bob Lantz
01e028c19f
Add Mininet-HiFi comment
2012-11-09 00:07:56 -08:00
Bob Lantz
d49aaf0f70
Hmm, maybe this is better.
2012-11-09 00:04:40 -08:00
Bob Lantz
f7d6c9e7a1
Another attempt.
2012-11-09 00:03:36 -08:00
Bob Lantz
015aaa2107
That didn't work...
2012-11-09 00:02:54 -08:00
Bob Lantz
bad8656361
More header madness.
2012-11-09 00:02:17 -08:00
Bob Lantz
eb3b74ea34
sudo mn seems lonely if it takes up the whole line
2012-11-08 23:58:54 -08:00
Bob Lantz
dabc0b812a
Bash in tt, abolish forward single quotes.
2012-11-08 23:57:39 -08:00
Bob Lantz
dd1a450b50
Mars needs commas!
2012-11-08 23:55:31 -08:00
Bob Lantz
ead9f83050
Reflow text and try crazy idea for heading.
2012-11-08 23:52:07 -08:00
Bob Lantz
0fb91f186e
More minor tweaks....
2012-11-08 23:47:48 -08:00
Bob Lantz
3e38a959c3
Moved installation instructions and prereqs into INSTALL.
2012-11-08 23:31:31 -08:00
Bob Lantz
535e61d2be
Still trying to fix the typeface and spacing...
2012-11-08 23:18:56 -08:00
Bob
4885cb24ed
Update README.md
...
File and command names in typewriter text.
2012-11-08 22:05:52 -08:00
Brandon Heller
73da7204e6
Update README
2012-11-08 15:31:10 -08:00
Bob Lantz
ff4b41439a
Minor changes.
2012-11-03 21:59:04 -07:00
Bob Lantz
21b2c2c4aa
VERSION -> 2.0.0rc1
2012-11-03 21:38:59 -07:00
Bob Lantz
e2b799b815
Fix/work around setuptools' evil PYTHONPATH madness.
2012-11-03 21:36:03 -07:00
Bob Lantz
4744aa2b78
Updated README to reflect Mininet 2.0.
2012-11-03 16:53:26 -07:00
Bob Lantz
c04ef88e5c
Add note regarding removing old OVS junk.
2012-11-03 16:10:57 -07:00
Bob Lantz
4b1dc93bcc
Avoid modifying keyword parameter dictionary in customized()
2012-10-30 16:58:51 -07:00
Bob Lantz
f58f83c043
Allow controller to optionally be a list of constructors/classes
2012-10-30 16:50:12 -07:00
Bob Lantz
22b8e5e427
Add custom name to customized functions.
...
Note: we could probably use functools.partial.
2012-10-30 16:45:11 -07:00
Angad Singh
cec4476303
Merge pull request - closes #36
2012-10-29 16:10:00 -07:00
Bob Lantz
31015ef5d8
Make doc a real subdirectory so we can put other things there.
2012-10-29 15:36:19 -07:00
Bob Lantz
600dad2498
Added package installation "instructions"
2012-10-04 19:08:37 -07:00
Bob Lantz
4ff6243fd6
Update version number to 2.0.0d3 (and pass version check)
2012-10-04 19:02:44 -07:00