Re: [Ryu-devel] Application specific settings

2016-09-21 Thread Nick Sedelnikov
I've added custom settings as described in http://www.grotto-networking.com/SDNfun.html#doing-more-with-ryu-an-outline-application : from ryu.cmd import manager from ryu import cfg class MyApp(app_manager.RyuApp): # ... if __name__ == "__main__": cfg.CONF.register_cli_opts([

Re: [Ryu-devel] Application specific settings

2016-09-16 Thread Nick Sedelnikov
Hi, Thank you for reply, but both methods lead to sources rewriting and app will break on ryu updates, so for now I wrote config loader and hard-coded locations, where it can be placed. Nick чт, 15 сент. 2016 г. в 11:00, Shinpei Muraoka : > Hi, > > Ryu config must be

Re: [Ryu-devel] Application specific settings

2016-09-15 Thread Shinpei Muraoka
Hi, Ryu config must be set when ryu-manager to start. Please try following either method. - Add config to ryu/ryu/flags.py - Include your app to ryu/ryu/cmd/manager.py Thanks, On 2016年09月14日 23:38, Nick Sedelnikov wrote: > Hello all, > > I'm trying to add configuration flags for my ryu

[Ryu-devel] Application specific settings

2016-09-14 Thread Nick Sedelnikov
Hello all, I'm trying to add configuration flags for my ryu application. I've copied some code from topology.switches to my app: from ryu import cfg CONF = cfg.CONF CONF.register_cli_opts([ cfg.StrOpt('l7-config', default='', help='Forwarder config file.'), ]) but when I try to run