On Mon, Apr 29, 2013 at 07:09:38PM +0530, nitish nagesh wrote: > Hello, > > Need some help here. I am new to using Ryu as well as python. > > I have written a simple controller application where in i would want to be > able to read command line arguments into my application. If my app would look > something like this: > > class MyApp(app_manager.RyuApp): > > def __init__(self, *args, **kwargs): > self.param1 = kwargs['param1'] > self.param2 = kwargs['param2'] > > How do i run the ryu controller such that param1 and param2 gets read into the > app? Please let me know. > > I tried the following and some variations of it, but it didnt work: > $> ryu-manager --ofp-tcp-listen-port 6633 app.py --param1=10 --param2=12
Ryu currently uses for olso.config.cfg for command-line parsing. (ryu/contrib/oslo/config) There are several examples in the tree. ryu/app/tunnel_port_updater.py. thanks, > Thanks in advance, > Nitish > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel -- yamahata ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
