Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-26 Thread Artem Gromov
Hi Suresh, You could call ryu-manager.py and pass all your app modules separated with ',' to '--app-lists' option. You could also find helpful the following source files to understand application init logic: - ryu/cmd/manager.py - ryu/base/app_manager.py Regards, Artem Gromov +7 (926) 940 8298

Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread knet solutions
Hi Iwase, Thanks. Dynamic Loading feature is what i meant. But as its not available in mainstream, i can handle it in the application itself. Thanks for the support. Thanks suresh. On Mon, Mar 5, 2018 at 11:46 AM, Iwase Yusuke wrote: > Hi Suresh, > > Well you mean; How to reload (or swap) ap

Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread Iwase Yusuke
Hi Suresh, Well you mean; How to reload (or swap) application file without stopping "ryu-manager" process, right? If so, it might require complex manner (CLI does not support it). "ryu.base.app_manager" has some elements to archive it, and Yamamoto-San said Ryu's VRRP service uses them; https://

Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread knet solutions
Hi Iwase, 1) I am writing a application in this architecture, app.py is entrypoint (app_manager.RyuApp), and declared the API endpoints. controller.py is API definitions and has some applications files. I am running this application as below, ryu-manager app.py Example, this application doe

Re: [Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread Iwase Yusuke
Hi, Could you be more specific? What "one app.py" exactly means? You have some REST implemented applications, then ... which application do you need to make multiplex? Just I guessing... each application are running on each host and you need to run multi controller apps(App_A) like the followin

[Ryu-devel] Multiple Controllers(REST handler) files

2018-03-04 Thread knet solutions
Hi, Can we have multiple controllers in the Ryu application. For example, i have developed few applications(Monitor, TCPProxy, Multiswitch, FlowReducer) etc, each application has its own REST APIs. Each application consists of app.py, controller.py(REST handler) and application files. All the ap