If I use the --config-file option does the file get passed into my
application (simple_switch.py) using args or kwargs?

If not how do I access it.I need to open the file inside my app and access
its contents.

Regards,
Karthik.


On 26 August 2014 00:32, FUJITA Tomonori <fujita.tomon...@lab.ntt.co.jp>
wrote:

> 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