mininet/mininet.github.com

"Part 4: Python API Examples" of Walkthrough

Closed this issue · 5 comments

when run sudo mininet/examples/sshd.py, I get:

Traceback (most recent call last):
  File "mininet/examples/sshd.py", line 71, in <module>
    sshd( net )
  File "mininet/examples/sshd.py", line 53, in sshd
    connectToRootNS( network, switch, ip, 8, routes )
  File "mininet/examples/sshd.py", line 41, in connectToRootNS
    root.setIP( ip, prefixLen, intf )
  File "/usr/lib/python2.7/dist-packages/mininet/node.py", line 434, in setIP
    return self.intf( intf ).setIP( ip )
AttributeError: 'NoneType' object has no attribute 'setIP'

maybe a bug of mininet

I see the problem - the problem is that the walkthrough is for 2.0.0 final and you are using an earlier branch, probably 2.0.0d4 from the 12.10 Ubuntu package.

Maybe we can fix this in the walkthrough and/or installation instructions.

I installed mininet using apt-get on Ubuntu 12.10.
So I should clone the code directly from gihub? (and which branch should I use, master?)

You have two options: 1. Install 2.0.0 from source and 2. check out the 2.0.0d4 examples from source. It is up to you. Probably 1 is the best plan for the future. We apologize for the inconvenience - this will be sorted out by Ubuntu 13.04 if not sooner.

Thanks Bob, I'll try. And one little suggestion, could you stick to a certain version of Ubuntu? It's kind of a trouble to upgrade the OS with mininet every time.

Mininet should work on the last LTS release of Ubuntu, and those releases are supported for a couple of years.