Hi,
I think you can use CONTEXT to start other app and get their instance
class App1(app_manager.RyuApp):
_CONTEXTS = {
'app2': App2,
'app3': App3,
........
}
........
and you can use "uninstantiate" method in the AppManager to stop the app.
2015-03-19 14:02 GMT+08:00 Shuoling Deng <mr.dengshuol...@gmail.com>:
> Thanks very much, YAMAMOTO.
>
> I have seen the ryu/services/protocol/sample_manager.py
> <https://github.com/osrg/ryu/blob/master/ryu/services/protocols/vrrp/sample_manager.py>
> And I think the following code snippet could help.
>
>> class RouterManager(app_manager.RyuApp):
>> ......
>> ......
>> app_mgr = app_manager.AppManager.get_instance()
>>
>
> But, there is another question:
> Does any class extending app_manager.RyuApp can control the life-cycle of
> the other apps in Ryu?
>
> which means, If I want to implement a CLIENT, I just simply write a class
> extending RyuApp. And, then, use the app_manager to
> instantiate/uninstantiate app?
>
>
> On Wed, Mar 18, 2015 at 4:45 PM, YAMAMOTO Takashi <yamam...@valinux.co.jp>
> wrote:
>
>> > Hi, everyone,
>> >
>> > I have a question that does the newest version of ryu controller support
>> > the app dynamic loading?
>> >
>> > just like a OpenDayLight, which I could install a module and remove a
>> > moudle though a CLI.
>> >
>> > IF Not, is there any roadmap to do these?
>>
>> there are some machineries to start/stop apps.
>> app_manager has instantiate/uninstantiate methods for that.
>> vrrp uses them.
>>
>> there's no cli support. as far as i know no one is working on it.
>>
>> YAMAMOTO Takashi
>>
>> >
>> > Best Regards.
>> >
>> > --
>> > Shuoling Deng
>> > Dept. of Computer Science and Technology
>> > School of Electronic Information and Enginneering
>> > Xi'an Jiaotong University
>> > Xi'an, 710049, P.R. China
>>
>
>
>
> --
> Shuoling Deng
> Dept. of Computer Science and Technology
> School of Electronic Information and Enginneering
> Xi'an Jiaotong University
> Xi'an, 710049, P.R. China
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel