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://www.mail-archive.com/ryu-devel@lists.sourceforge.net/msg08600.html
but... it seems to be requires to understand what "ryu-manager" does.
https://github.com/osrg/ryu/blob/8a48b62c90745e8112bb3f7277e8ac46dabb3e4e/ryu/services/protocols/vrrp/manager.py#L71-L106

FYI, dynamic loading feature was discussed before, but not merged with some
reason.
https://www.mail-archive.com/ryu-devel@lists.sourceforge.net/msg09857.html
https://www.mail-archive.com/ryu-devel@lists.sourceforge.net/msg10046.html

Thanks,
Iwase


On 2018年03月05日 14:51, knet solutions wrote:
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 does Multiswitch functionality.  I mean, via REST API i can set switch1 can act as L3Switch, switch2 act as L4Switch.

I have organized each application on separate folder. I do have many such applications.

Now if i want to run another application(Tcpproxy), i stop this application, and move to tcpproxy folder, and run it.


2)  I am looking for some pluggable manner, where i can plug all my applications. And run as a single application.

Hope this clarifies my problem.

Thanks
Suresh


On Mon, Mar 5, 2018 at 10:58 AM, Iwase Yusuke <iwase.yusu...@gmail.com <mailto:iwase.yusu...@gmail.com>> wrote:

    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 following?

                    +---App_A----+
                    |            |
    FlowReducer?---+---App_A----+---TCPPloxy-----------...(Switches)
      Monitor?      |            |  (Do load balancing)
                    +---App_A ---+

    Or... all applications need to run on the same host?

    Thanks,
    Iwase


    On 2018年03月05日 13:02, knet solutions wrote:


        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 applications are individually working  fine.

        I want to  use all the application together.
To achieve this, I guess, we have to use  with multiple controllers ? Is it possible.
        /*Thanks
        */
        /*Suresh*/


        
------------------------------------------------------------------------------
        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 <mailto:Ryu-devel@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/ryu-devel
        <https://lists.sourceforge.net/lists/listinfo/ryu-devel>




--
*/Regards,
/*
*/Knet solutions./*

https://github.com/knetsolutions/KNet
http://knet-topology-builder.readthedocs.io/
http://knetsolutions.in/



------------------------------------------------------------------------------
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