Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] TypeError: 'RemoteController' object is not callable

NGUYEN Xuan Nam xuan-nam.nguyen at inria.fr
Wed Jan 9 05:30:02 PST 2013


Hello, 

I am trying to use an external controller is this code block: 

from mininet.net import Mininet 
from mininet.topolib import TreeTopo 
from mininet.node import RemoteController 

tree4 = TreeTopo(depth=2,fanout=2) 

c0=RemoteController(name='c0',ip='192.168.56.1',port=6634) 
#c0.start() 
net = Mininet(topo=tree4,controller=c0) 
net.start() 
h1, h4 = net.hosts[0], net.hosts[3] 
print h1.cmd('ping -c1 %s' % h4.IP()) 
net.stop() 


I got this error when executing it 

mininet at mininet-vm:~/mininet/custom$ sudo python nam2.py 
Traceback (most recent call last): 
File "nam2.py", line 10, in <module> 
net = Mininet(topo=tree4,controller=c0) 
File "/usr/local/lib/python2.7/dist-packages/mininet-2.0.0rc1-py2.7.egg/mininet/net.py", line 163, in __init__ 
self.build() 
File "/usr/local/lib/python2.7/dist-packages/mininet-2.0.0rc1-py2.7.egg/mininet/net.py", line 315, in build 
self.buildFromTopo( self.topo ) 
File "/usr/local/lib/python2.7/dist-packages/mininet-2.0.0rc1-py2.7.egg/mininet/net.py", line 285, in buildFromTopo 
self.addController( 'c%d' % i, cls ) 
File "/usr/local/lib/python2.7/dist-packages/mininet-2.0.0rc1-py2.7.egg/mininet/net.py", line 213, in addController 
controller_new = controller( name, **params ) 
TypeError: 'RemoteController' object is not callable 



I make sure that the controller is running and listen on port 6634, pinging is ok. 
Am I missing something? 

Thanks 

Nam 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20130109/1a611ac4/attachment.html>


More information about the mininet-discuss mailing list