Hi Marcio,

you can find all answers in the module:
https://github.com/osrg/ryu/blob/master/ryu/base/app_manager.py

To get the instance use lookup_service_brick(name) call, where the name in
your case is BGPRouter13.__class__.__name__ = 'BGPRouter13'.

Regards,
Artem Gromov

On Sun, Aug 12, 2018 at 9:35 PM Marcio <marciovinicius.san...@uniriotec.br>
wrote:

> I created a app_manager.RyuApp subclass called BGPRouter13. When i start
> the .py file using ryu-manager the BGPRouter13 class is instatinated
> automatically(i think ryu-manager does it) but, if i want to execute a
> BGPRouter13 method how could  do that? I have no a instance name to use the
> method using instance.method() syntax.
>
> I can´t change the method to a static method because inside the method
> body i manipulate instance data using self.data statement. Is that a way to
> call this class methods outside this code?
>
> I´m sorry about the question but i´m no many experienced with python do
> know how to solve it.
>
> ------------------------------------------------------------------------------
> 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