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 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 `ryu-manager myapp` Exception appears:
>>> oslo_config.cfg.ArgsAlreadyParsedError: arguments already parsed:
> cannot register CLI option
>
> Can anyone help me?
>
> Nick
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel