Bob Lantz
c7deeae11c
Add sanity check for python mn version
2018-07-26 13:40:12 -07:00
Bob Lantz
323989953b
Try to fix pylint errors ;-p
2018-07-26 13:40:12 -07:00
Bob Lantz
17f9756e5c
sudo interferes with travis python 3 environment
2018-07-26 13:40:12 -07:00
Bob Lantz
71f3931f2f
Remove redundancies in miniedit; pass code check
2018-07-26 13:40:12 -07:00
Bob Lantz
1e9ca5f7fc
Fix missing quote in .travis.yml
2018-07-26 13:40:12 -07:00
Bob Lantz
8933c996cb
Add python-tk/python3-tk
2018-07-26 13:40:06 -07:00
Bob Lantz
afa83cd5ae
Restore python 2 compatibility
2018-07-26 13:40:03 -07:00
Bob Lantz
8102704726
Pass code check (14.04)
2018-07-25 21:30:05 -07:00
Bob Lantz
f4490069ca
Add PYTHON and python2/python3 support
...
Perhaps we should have an option for py2/p3, but for
now we detect the default python version and it can
also be specified via the PYTHON env var.
2018-07-25 19:44:46 -07:00
Bob Lantz
2ac4f92af3
Add PYTHON variable for python2/python3 make install
2018-07-25 19:44:46 -07:00
Bob Lantz
f98154a323
Decode subprocess output for python3
2018-07-25 19:44:46 -07:00
Bob Lantz
7b48460e9e
Change pexpect hackery to use a custom class
...
So the original pexpect is unperturbed
2018-07-25 19:44:46 -07:00
Bob Lantz
3a0ef258d1
grep cgroup /proc/mounts in mountCgroup
2018-07-25 19:44:45 -07:00
Bob Lantz
0d9a6796df
Add Python 2.7 and Python 3.6
2018-07-25 19:44:45 -07:00
Bob Lantz
08a59783f4
Decode readline() and call cleanup() for python 3
...
Python 3.6 crashes if there are leftover processes, even
if they shut down later...
2018-07-25 19:44:45 -07:00
Bob Lantz
e37afe996b
First crack at Python 3 compatibility
...
Mostly we just use mininet.util.pexpect so that we can use
unicode strings without changing calls to pexpect.spawn()
2018-07-25 19:44:45 -07:00
Bob Lantz
6a387faa04
Fix whitespace error
2018-07-25 19:44:45 -07:00
Bob Lantz
1a134cb4d2
80 columns
2018-07-25 19:44:45 -07:00
Bob Lantz
af4921adc5
Minor changes for Python 3
...
items() vs. iteritems() and decode() bytes in monitorFiles
Probably not strictly correct if bytes are split - we still
need to deal with this properly.
2018-07-25 19:44:45 -07:00
Bob Lantz
f94ee8ec97
Redesign pmonitor()
...
This is tricky to get right, but I think it is correct
to drain the buffers like this.
2018-07-25 19:44:45 -07:00
Bob Lantz
356b024d6b
Wrap reads in pmonitor() for python3
2018-07-25 19:44:45 -07:00
Bob Lantz
2283bb01e6
Python3 compat and add timeout for connect
2018-07-25 19:44:45 -07:00
Bob Lantz
3eef584c6b
Python 3 compatibility
...
And some Ubuntu 18 compat:
- ifconfig's output has changed
- relaxing timing as it seems first ping is slower
2018-07-25 19:44:45 -07:00
Bob Lantz
2e00a7de97
Python 3 compatibility
2018-07-25 19:44:45 -07:00
Bob Lantz
e28348f6cd
Indent error.
2018-07-25 19:44:44 -07:00
Bob Lantz
4b744d1fb0
Fix dynamic Python items() in deleteIntfs()
2018-07-25 19:44:44 -07:00
Bob Lantz
2822998cad
A couple of missed py3 items: execfile, iteritems
2018-07-25 19:44:44 -07:00
Bob Lantz
853815500d
Create util.pexpect which is compatible with Python 3 strings
...
Unfortunately pexpect isn't compatible with Python 3 strings
unless you specify unicode encoding, which isn't the default.
With this helper code, you can import pexpect from mininet.util
and get default pexpect.spawn() behavior that works with Python 3
strings.
2018-07-25 19:44:44 -07:00
Bob Lantz
1a2925923f
translate() -> replace() for Python 3 compatibility
...
str.translate() works differently in Python 3
2018-07-25 19:44:44 -07:00
Bob Lantz
cac884a85e
Wait for Node() shell to exit on Python 3
...
I'm not a fan of this, but Python 3's subprocess module
complains otherwise.
For now we're only doing this on Python 3. We should probably
quantify the slowdown however.
2018-07-25 19:44:44 -07:00
Bob Lantz
f314a6626a
Missed one instance of basestring
2018-07-25 19:44:44 -07:00
Bob Lantz
bf83f4f343
Don't bother checking for negative delay/jitter
...
It's kind of pointless. However technically the argument should
be a number and not a string - it's always in ms.
2018-07-25 19:44:44 -07:00
Bob Lantz
1ef12e450a
Apparently Python 3 types aren't ordered
2018-07-25 19:44:44 -07:00
Bob Lantz
56fc6c3955
Close popen stdout and stderr
...
They should get cleaned up anyway, but Python 3 gives
us an error message. This silences it.
2018-07-25 19:44:44 -07:00
Bob Lantz
88cbf4ec42
Kinder, gentler Python 3 compatibility
...
Looking at trying to minimize code changes for Python 3.
For now we are keeping byte str() in py2 and unicode str()
in py3. It's a pain to rewrite all string code to usee
u'' for py2 compatibility. However we may need to revisit
this for pexpect().
Created compatibility wrappers in util.py:
BaseString (replacement for basestring)
decode() (optionally decode utf-8 for py3)
encode() (optionally encode utf-8 for py3)
Also we've switched from the .iter*() flavors to their
static alternatives for py2 (note they are iterators in py3!)
Changed util.errRun and clean.sh to call decode()
2018-07-25 19:44:44 -07:00
Bob Lantz
26b3959968
Fix keys parameter in edges_iter
...
Fixes #813
2018-07-11 23:36:11 +00:00
Bob Lantz
966dd20b4b
waitConnected: don't compare timeout if it is None
2018-07-11 23:29:19 +00:00
Bob Lantz
82998cac8b
waitConnected and debug output for testMultiPing
...
This test fails periodically on Travis (#714 )
Hopefully waiting for connection will make it more reliable,
and if not then the debug output will help.
2018-07-10 07:41:19 -07:00
lantz
34b1f4161a
Merge pull request #803 from teto/nixos_clean
...
Merge in nixos changes:
1. More flexible makefile
2. Fix problems from setting vi-ins-mode-string in .inputrc (fixes #799 )
2018-06-25 19:49:22 -07:00
lantz
dfb297901f
Update copyright date in LICENSE
...
It's 2018. ;-)
2018-06-18 09:59:11 -07:00
Bob Lantz
67236e9db3
Update ofsoftswitch build
...
Changed netbee URL.
Changed libxerces package for Ubuntu 18.04
2018-06-03 17:20:18 -07:00
Bob Lantz
8af3f28b67
iproute -> iproute2 for Ubuntu 18.04
...
This should also be backward compatible to 14.04.
2018-04-28 01:48:36 +00:00
lantz
c5b2efd839
Merge pull request #780 from nemethf/set_dp_desc
...
Set the datapath desciption (dp-desc) of OVS switches
2018-02-28 12:20:20 -08:00
lantz
f65e1ab936
Merge pull request #767 from juangascon/travis_yml
...
Remove '- dist: xenial' until Travis gets their act together and supports the current LTS
2017-10-10 16:12:50 -07:00
Bob Lantz
b142cf32ec
Pass code check (14.04 LTS: pyflakes 0.8.1, pylint 1.1.0)
...
Was no longer passing due to pyflakes.
2017-09-25 16:07:47 -07:00
Bob Lantz
87e26ef931
Restore CLI=MyCLI customization in --custom files
...
fixes #746
2017-06-02 14:11:36 -07:00
Bob Lantz
7366645c81
Fix plot() command for newer networkx
...
Networkx moved graphviz_layout, so we look for it in two different
places.
Also plot() should be fixed for regular Mininet(), which doesn't have
a .servers list.
2017-05-30 15:37:10 -07:00
Bob Lantz
2437aba984
Change to if to avoid breaking travis build on 16.04
2017-05-24 17:17:25 -07:00
Bob Lantz
a6627cd928
Don't call node.addIntf() if node is None
...
fixes #716
2017-05-24 15:11:03 -07:00
Bob Lantz
9d306ad53a
Allow passing mncmd to CPULimitedHost.popen()
...
This is not not really intended as an external API (and
it currently isn't documented) but this makes it consistent.
Fixes #743
2017-05-22 15:36:23 -07:00
lantz
69b6c05970
Merge pull request #736 from hwchiu/FIX_TBF_LINK
...
Modify the default latency type from int to float if tbf is enabled.
Fixes #729
2017-05-09 15:10:39 -07:00
Bob Lantz
e55e18e4ce
Treat Raspbian as Debian; add $DISTS.
...
Fixes #713
2017-05-09 14:41:10 -07:00
lantz
5728fcbf40
Merge pull request #727 from leonardodavila/master
...
Fix ryu installation
2017-04-27 16:31:37 -07:00
lantz
23f4f4a998
Merge pull request #734 from akoshibe/upstream
...
Allow match on 'packets received' in ping results
2017-04-23 23:59:05 -07:00
lantz
e823c4f93c
Fix line break
...
Beware of emacs eating trailing spaces!
2017-03-22 14:34:23 -07:00
lantz
497a342c27
Update README.md
2017-03-22 14:32:44 -07:00
Bob Lantz
32565765c1
For now, install dependencies before make codecheck
2017-03-15 16:19:31 -07:00
Bob Lantz
c1d07835bd
Rearrange code check
2017-03-15 15:49:26 -07:00
Bob Lantz
65acef533a
Run bash explicitly in codecheck conditional
2017-03-15 15:09:06 -07:00
Bob Lantz
bf2bb4c88c
Sadly pylint isn't backward compatible; comment out newer options
...
Also slightly adjust some valid name conventions
2017-03-15 15:03:47 -07:00
Bob Lantz
bfc00c567c
Add more ignores for plint 1.5.2
2017-03-15 14:50:01 -07:00
Bob Lantz
92d57db0d0
Run codecheck on 14.04 only and after install (for deps)
2017-03-14 15:47:46 -07:00
Bob Lantz
13331d0ffd
Add "make codecheck"
2017-03-14 15:43:47 -07:00
Bob Lantz
359b1feb5a
code check
2017-03-14 15:43:41 -07:00
Bob Lantz
a77ddba607
code check
2017-03-14 15:43:28 -07:00
Bob Lantz
caf23f078e
code check
2017-03-13 19:09:24 -07:00
Bob Lantz
d5cb865aaa
code check
2017-03-13 19:08:39 -07:00
Bob Lantz
1c0aeb699f
code check
2017-03-13 19:08:26 -07:00
Bob Lantz
c458c9e2b4
code check
2017-03-13 18:56:21 -07:00
Bob Lantz
26a0e351f3
satisfy code check
2017-03-13 17:11:05 -07:00
Bob Lantz
742f5b9af9
satisfy code check
2017-03-13 17:10:14 -07:00
Bob Lantz
40e4546c48
satisfy code check
2017-03-13 17:09:19 -07:00
Bob Lantz
5479117584
pass code check
2017-03-13 17:06:53 -07:00
Bob Lantz
02453b02b0
Remove relative import
2017-03-13 17:05:50 -07:00
Bob Lantz
d282c55831
pass code check; make GRE_KEY a class var
2017-03-13 17:03:11 -07:00
Bob Lantz
6977633de1
pass code check
2017-03-13 16:36:50 -07:00
Bob Lantz
bc0a72e2f9
pass code check
2017-03-13 16:36:41 -07:00
Bob Lantz
ef5c80abb3
pass code check
2017-03-13 16:34:38 -07:00
Bob Lantz
35a33fc617
print() -> error()
2017-03-13 16:31:17 -07:00
Bob Lantz
494840c908
satisfy codecheck
2017-03-13 13:57:41 -07:00
Bob Lantz
b7d9fdd5bd
Satisfy codecheck
2017-03-13 13:56:46 -07:00
Bob Lantz
32299a6808
Restore incorrectly placed docstring
2017-03-13 13:48:50 -07:00
Bob Lantz
d7cfb729c3
Pass code check and add ovs-testcontroller to zombies
2017-03-13 13:46:51 -07:00
Bob Lantz
348b526212
Satisfy pylint
2017-02-15 18:35:45 -08:00
Bob Lantz
18bfa1d6b3
warn() was undefined
2017-02-15 18:30:09 -08:00
Bob Lantz
5d2dfa9f40
Handle version string sent to stderr
...
An unfortunate side effect of switching from print to output() is
that all output() goes to stderr. We should probably carefully
consider whether this is the right thing to do.
2017-02-15 18:26:18 -08:00
Bob Lantz
0b5d24148b
default(): add CR to error(); also clean up docstring
2017-02-08 16:30:36 -08:00
Bob Lantz
dfb2594793
testLinkChange: report bandwidth on error
2017-02-07 15:01:05 -08:00
lantz
b5b6beacb0
Multiple builds: trusty and xenial
2017-01-31 15:34:27 -08:00
lantz
2e9a79a375
Merge pull request #618 from BhattiMarry/master
...
UPDATE command made generic. Obsolete kernel() function was breaking Fedora/RHEL install.
2017-01-11 15:50:53 -08:00
lantz
86a26e0baf
Merge pull request #602 from youf3/patch-1
...
Added ryu to be clean up in clean.py
2017-01-10 14:08:16 -08:00
lantz
6f2981134d
Merge pull request #606 from oliviertilmans/patch-2
...
link: Fix circular import
2017-01-06 15:26:47 -08:00
lantz
e58cc37c49
Merge pull request #699 from NvanAdrichem/MiniEdit-OVSVersion
...
Changed verifying the OVS version to not require root in MiniEdit.
2017-01-06 14:57:59 -08:00
lantz
baebce8b05
Merge pull request #672 from nirmoy/opensuse_installation
...
RFC: add installation support for SUSE based distros
2017-01-06 14:55:11 -08:00
lantz
2bfaec75e0
Merge pull request #685 from maufl/fix-ping-parse-regex
...
Fix regex for ping result parsing, supporting optional 'packets' word in ping output
2017-01-06 14:53:42 -08:00
lantz
36c2e7cd79
Added "Additional Information" section.
2017-01-06 14:37:11 -08:00
lantz
3284b04f2b
Merge pull request #704 from mininet/devel/ipBase
...
Updating Mininet to start with host IP request in ipBase
2017-01-03 16:55:37 -08:00
lantz
e90a4a74cb
Update ISSUE_TEMPLATE
2016-12-09 16:02:29 -08:00
Bob Lantz
d338b4425b
Added GitHub issue template.
2016-12-09 15:55:48 -08:00
Bob Lantz
8b2881b0c2
Changes for OVS 2.6.0 + Ubuntu 16.04 + Debian 8.6
2016-10-28 18:16:25 -07:00