Hi, Carlos

Yes, you can instantiate app_manager.RyuApp with ryu/cmd/manager.py.
You can pass the argument list like the below.
In this, you should specify the application by name:
    from ryu.cmd import manager

    manager.main(args=['--verbose', 'ryu.app.simple_switch_13'])

Or, if you have a module of the application,
you can get the name from the module by using '__module__'.
    from ryu.cmd import manager
    from ryu.app.simple_switch_13 import SimpleSwitch13

    manager.main(args=['--verbose', SimpleSwitch13().__module__])

Thanks,
Fujimoto


On 2017年10月12日 21:26, Carlos Ferreira wrote:
Hello to all,

I have been dwelling through the Ryu code and I wonder, is it possible
for me to instantiate a Ryu Application without using the ryu-manager?

For example, can I instantiate a app_manager.RyuApp class from a
regular Python Application?

Thank you!
Carlos Ferreira

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to