You should listen EventOFPSwitchFeatures or EventSwitchEnter (
https://github.com/osrg/ryu/tree/master/ryu/topology)
Example using the firt option
@set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)
def send_role_request(self, ev):
datapath = ev.msg.datapath
datapath_id = datapath.id
ofp = datapath.ofproto
ofp_parser = datapath.ofproto_parser
Best regards.
2014-04-12 0:47 GMT-03:00 Karthik Sharma <[email protected]>:
> Hi,
>
> I am new to RYU.I want to learn the topology in my controller
> application.Can this be done just by listening to the initial OF
> negotiation between the switch and the controller when the switch (mininet
> - ovs) starts up?
>
> If yes,What are the messages that I should listen to? Can someone point me
> to some example code.
>
> Thanks & Regards,
> Karthik.
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
--
*Eros S. Spalla* -
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel