On Mon, 25 Aug 2014 20:20:59 +1200
Karthik Sharma <karthik.sha...@gmail.com> wrote:

> I am running ryu simple switch application as shown below.
> 
> *$  ryu-manager ryu/app/simple_switch.py*
> 
> I have modified the simple_switch.py and I want to give a configuration
> file to this program as input to let it use the file for path computation.
> 
> i.e I would like something like.
> 
> *$ ryu-manager -f path_file.txt ryu/app/simple_switch.py*
> 
> What is the best way to achieve this? What I am asking is specifically is
> there some command line parsing mechanism like clarg library in "C" that I
> can use? What is the standard mechanism to access a command line parameter
> inside an ryu app.

I think that you could use --config-file option.

you could add your own options by register_opts().

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to