This was an old post but I thought I should answer it in case someone else had the same problem.
It appears that the problem must be that you're not specifying the link type as tc (which is required to modify link parameters). If you look at the example you've provided, notice how the parameter TCLink is passed in the following line: net = Mininet(topo=topo, host=CPULimitedHost, link=TCLink) If instead, you wish to use a topology file and call mininet from command prompt, you could specify the link type using the --link option. eg. sudo mn --custom Custom.py --topo mytopo --link tc Hope this helps. PS: This is my first post here so I'm not sure if it ends up at the right place. :) Apologies if it doesn't Saurabh On May 2, 2013, at 3:11 PM, Balázs Németh wrote: >* Hi all!*>* *>* I would like to set a link some options (bandwidth), on one >of my topos. *>* I tried it the way is shown in the corresponding mininet API >example:*>* https://github.com/mininet/mininet/blob/master/examples/simple ><https://github.com/mininet/mininet/blob/master/examples/simpleperf.py#L30>**The > problem with, as it appears,**perf.py#L30 ><https://github.com/mininet/mininet/blob/master/examples/simpleperf.py#L30>* >* *>* I am making a simple custom topology, not using the API. But it won't >work for me. The error message i got:*>* unexpected keyword argument 'bw'*>* >*>* The implementation of addLink() (in mininet.topo.Topo.addLink) says:*>* >def addLink(self, node1, node2, port1=None, port2=None, **opts)*>* *>* >Although, I am not sure, I fully understand how this "**arg" function >parameter works in Python.*>* *>* thanks for your time,*>* Balázs* * *
