<head></head><body data-blackberry-caret-color="#00a8df" style="background-color: rgb(255, 255, 255); line-height: initial;"><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Where is your code? But let me guess you want to pass the arguments straight to addLink?</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-size: initial; line-height: initial; text-align: initial;"><br></span></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><span style="font-size: initial; line-height: initial; text-align: initial;">Did you try handling the arguments before handing them over to addLink?</span></div>                                                                                                                                     <p style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Sent on the move.</p>                                                                                                                                                                           <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                                              <div id="_persistentHeader" style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Balázs Németh</div><div><b>Sent: </b>Friday, May 3, 2013 6:11 AM</div><div><b>To: </b>pox-dev@Q</div><div><b>Subject: </b>[pox-dev] setting link options</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr">Hi all!<div><br></div><div style="">I would like to set a link some options (bandwidth), on one of my topos. </div><div style="">I tried it the way is shown in the corresponding mininet API example:</div><div style="">
<a href="https://github.com/mininet/mininet/blob/master/examples/simpleperf.py#L30">https://github.com/mininet/mininet/blob/master/examples/simpleperf.py#L30</a><br></div><div style=""><br></div><div style="">I am making a simple custom topology, not using the API. But it won't work for me. The error message i got:</div>
<div style=""> unexpected keyword argument 'bw'</div><div style=""><br></div><div style="">The implementation of addLink() (in mininet.topo.Topo.addLink) says:</div><div style="">def addLink(self, node1, node2, port1=None, port2=None, **opts)</div>
<div style=""><br></div><div style="">Although, I am not sure, I fully understand how this "**arg" function parameter works in Python.</div><div style=""><br></div><div style="">thanks for your time,</div><div style="">Balázs</div>
</div>
<br></div> <!--end of _originalContent --><br></body>