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
Wed Jan 9 05:30:02 PST 2013


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

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

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

net = Mininet(topo=tree4,controller=c0) 
h1, h4 = net.hosts[0], net.hosts[3] 
print h1.cmd('ping -c1 %s' % h4.IP()) 

I got this error when executing it 

mininet at mininet-vm:~/mininet/custom$ sudo python 
Traceback (most recent call last): 
File "", 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/", line 163, in __init__ 
File "/usr/local/lib/python2.7/dist-packages/mininet-2.0.0rc1-py2.7.egg/mininet/", line 315, in build 
self.buildFromTopo( self.topo ) 
File "/usr/local/lib/python2.7/dist-packages/mininet-2.0.0rc1-py2.7.egg/mininet/", 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/", 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? 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the mininet-discuss mailing list