Hey Isaku
Yes I see, the events are in a separated file. Whenever you throw an
event or listen to one, you will have something like this in your
code:
from ryu.services.vrrp import event as vrrp_event
ev.__class__ attribute and obsersers dict in get_observers in the
app_manager will have a value
The vrrp patch series would be a good example.
http://thread.gmane.org/gmane.network.ryu.devel/2557
thanks,
On Wed, Jun 12, 2013 at 04:18:17PM +0200, Philipp Aeschlimann wrote:
> Hey there
>
> Whats the right way to implement a custom-Event between two app's?
> That's the way I have done this:
Hey there
Whats the right way to implement a custom-Event between two app's?
That's the way I have done this:
### file: ryu/app/app_one.py ###
import ryu.app.AppOne
...
class EventAppOne(event.EventBase):
def __init__ ...
...
class AppOne(app_manager.RyuApp):
def __init__ ...