When the controller and the switches perform handshake, i.e. config-dispatch event you can store the datapath object of switches in a dictionary then use these object to initiate a packet out Something like this: https://github.com/osrg/ryu/blob/master/ryu/app/simple_monitor_13.py If you search on the net you will be able to find some better examples. Regards,
Dear Ryu developers,
I'm trying to initiate the sending of a packet from within a Ryu app but not sure how to do it right. The main problem is that I'm not sure how to create a new Datapath/OFPPacketIn event object so that I can send an event. Right now I have the following code snippet: from Can you point me to how to create a Datapath object or a valid OFPPacketIn event or any other way of sending a packet from within Ryu? Thanks in advance. Best, Martin |
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel