Hey,

On Wed, 16 Apr 2014 09:24:15 +1200
Karthik Sharma <[email protected]> wrote:

> I was looking at the RYU source code I came across two structures or
> classes.
> 
> 1) ofp_event which contains events such as
> 
>                   - EventOFPHello
> ​                  - EventOFPSwitchFeatures
>                   - EventOFPPortDescStatsReply
>                   - EventOFPEchoRequest
>                   - EventOFPErrorMsg
> 
> 2) event which contains events such as
> 
>                   - EventSwitchRequest
>                   - EventSwitchReply
>                   - EventLinkRequest
>                   - EventLinkReply
> 
> My questions are as follows
> 
> 1) ofp_event looks like it is the OpenFlow negotiation between the switch
> and the controller.

Yes. They correspond to OpenFlow specs. When Ryu gets an OpenFlow
message from a switch, the EventOFP* corresponding to it is delivered
to applications subscribing to the event.

What is event? event is used by ryu/topology/api.py to
> get the toplogy information (about switches and links)

2) are used internally in ryu/topology and your appliction. When your
application calls get_switch(), internally, your application sends
EventSwitchRequest to the topology application, then the topology
application sends back an EventSwitchReply to your applicaiton.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to