Permalink
Commits on Nov 15, 2018
  1. Merge pull request #841 from gabay/master

    lantz committed Nov 15, 2018
    replaces isinstance(str) with isinstance(BaseString)
    (note we define BaseString as str for python 3)
Commits on Oct 19, 2018
Commits on Oct 11, 2018
  1. Merge pull request #837 from theojepsen/master

    lantz committed Oct 11, 2018
    intf.rename() also renames the intf name in the host
  2. Better IP address selection for controllers

    lantz committed Oct 11, 2018
    Previously we looked for 'eth0', but linux has renamed interfaces.
    
    Instead of looking by name, we now look for an interface which
    is the appropriate gateway to a remote server address.
    
    fixes #831
Commits on Aug 29, 2018
  1. code check

    lantz committed Aug 29, 2018
Commits on Aug 23, 2018
  1. pass code check

    lantz committed Aug 23, 2018
  2. 2.3.0d4

    lantz committed Aug 23, 2018
  3. Close pty to avoid leak

    lantz committed Aug 23, 2018
Commits on Aug 16, 2018
  1. 2.3.0d3

    lantz committed Aug 16, 2018
Commits on Aug 2, 2018
  1. pmonitor() fixes

    lantz committed Aug 2, 2018
    pmonitor() is hard to get right, but this seems like
    a reasonable improvement:
    
    1. non-blocking I/O so we can drain buffer with impunity
    2. drain buffer after poll
    3. unregister fd on POLLHUP
    
    Note we may have a unicode splitting problem since we're
    decoding chunks of bytes, but that is a problem for another
    day I think.
Commits on Jul 26, 2018
  1. 2.3.0d2

    lantz committed Jul 26, 2018
  2. Python 3 Compatibility (Merge pull request #817 from lantz/py3-compat)

    lantz committed Jul 26, 2018
    Changes for compatibility with Python 3.
    
    The approach is to make as few changes as possible to maintain compatibility with both Python 2 and Python 3.
    
    We use whatever python is installed, and also support a PYTHON environment variable for installing another version.
    
    For simplicity, we provide mininet.util.pexpect which works out of the box with Python 3 utf-8 strings.
    
    Thanks to @cuihantao for looking at this as well and also for changes to MiniEdit.
    
    Closes #794
  3. Fix typo (50s -> 50ms)

    lantz committed Jul 26, 2018
  4. Use appropriate python version

    lantz committed Jul 26, 2018
  5. Try to fix pylint errors ;-p

    lantz committed Jul 26, 2018
  6. Add python-tk/python3-tk

    lantz committed Jul 26, 2018
  7. Restore python 2 compatibility

    lantz committed Jul 26, 2018
  8. Pass code check (14.04)

    lantz committed Jul 26, 2018
  9. Add PYTHON and python2/python3 support

    lantz committed Jul 26, 2018
    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.
  10. Change pexpect hackery to use a custom class

    lantz committed Jul 25, 2018
    So the original pexpect is unperturbed
  11. Add Python 2.7 and Python 3.6

    lantz committed Jul 12, 2018
  12. Decode readline() and call cleanup() for python 3

    lantz committed Jul 12, 2018
    Python 3.6 crashes if there are leftover processes, even
    if they shut down later...
  13. First crack at Python 3 compatibility

    lantz committed Jul 12, 2018
    Mostly we just use mininet.util.pexpect so that we can use
    unicode strings without changing calls to pexpect.spawn()
  14. Fix whitespace error

    lantz committed Jul 12, 2018
  15. 80 columns

    lantz committed Jul 12, 2018
  16. Minor changes for Python 3

    lantz committed Jul 12, 2018
    items() vs. iteritems() and decode() bytes in monitorFiles
    
    Probably not strictly correct if bytes are split - we still
    need to deal with this properly.