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] mininet python script

Castelli, Brian Brian.Castelli at
Mon Jan 21 10:00:08 PST 2013

Gagan, you will need to provide more context if you wish to receive help on this list, perhaps by providing the before and after source code? I can't tell what the problem is from your message.

From: mininet-discuss-bounces at [mailto:mininet-discuss-bounces at] On Behalf Of Gagan Agrawal
Sent: Monday, January 21, 2013 11:31 AM
To: mininet-discuss at
Subject: [mininet-discuss] mininet python script

hello friend,
i am new in mininet and writing a python script for my project. If i used main function (

if __name__ == '__main__') to run my script program generate error, and when i used lambda statement (topos = { 'mytopo' : (lambda : prog2() ) } ) it work fine. what i doing wrong?


E-mail confidentiality.
This e-mail contains confidential and / or privileged information belonging to Spirent Communications plc, its affiliates and / or subsidiaries. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution and / or the taking of any action based upon reliance on the contents of this transmission is strictly forbidden. If you have received this message in error please notify the sender by return e-mail and delete it from your system.

Spirent Communications plc
Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom.
Tel No. +44 (0) 1293 767676
Fax No. +44 (0) 1293 767677

Registered in England Number 470893
Registered at Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United Kingdom.

Or if within the US,

Spirent Communications,
26750 Agoura Road, Calabasas, CA, 91302, USA.
Tel No. 1-818-676- 2300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the mininet-discuss mailing list