Hi, On Wed, 17 Oct 2012 16:21:14 -0300 Raphael Vicente Rosa <[email protected]> wrote:
> I'm currently examinating ryu and learning how to develop ryu apps. > One of the main concepts that I didn't understand is how I could > create interdependent apps. I'm newbie in ryu, if you could just > answer with some tips, here follow my doubts: > > 1. Is ryu similar to NOX? Can I create applications that generate > events? I mean, could I create a topology app that depends on > discovery app? If yes, how? Yes, for example, check how '_CONTEXTS' constant is used in ryu/app/simple_isolation.py. This application depends ryu/controller/dpset.py. > 2. How can I run multiple applications simultaneously? How can I > handle the ordering of the events by multiple applications? Yes, for example, if you give multiple applications to ryu-manager command line, then you see something: instantiating app your_app_a instantiating app your_app_b In that order, an event is delivered. > 3. Just one simple doubt, when I define > @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER), how ryu > define the event "EventOFPPacketIn" association with a new packet > arriving at the controller? I mean, how can I create events and define > names for their association? About OF events, check out ryu/controller/ofp_event.py. It creates all OF message events. And you can create your events. ryu/controller/dpset.py might be a good example. > Congratulations, ryu is a great project! Thanks! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
