Re: [Ryu-devel] How to send data from controller to the host

2016-08-04 Thread Iwase Yusuke
Hi, Please refer to the 'data' attribute of OFPPacketOut. You can set a binary type value, which you want send, into this attribute. e.g.) req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions, data=) FYI: For building a binary type packet d

Re: [Ryu-devel] How to send data from controller to the host

2016-08-04 Thread Alan Wang
HI, Thanks for your reply!! def send_packet_out(self, datapath, buffer_id, in_port): ofp = datapath.ofproto ofp_parser = datapath.ofproto_parser actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD, 0)] req = ofp_parser.OFPPacketOut(datapath, buffer_id,in_port, actions) dat

Re: [Ryu-devel] How to send data from controller to the host

2016-08-04 Thread Iwase Yusuke
Hi, You can use Packet-Out messages for such purpose, I guess. http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPPacketOut Thanks, Iwase On 2016年08月05日 12:45, Alan Wang wrote: > Hi All, > > I want to send some data controller collected from Control

[Ryu-devel] How to send data from controller to the host

2016-08-04 Thread Alan Wang
Hi All, I want to send some data controller collected from Controller to Host. What should i do ? Thanks, Alan. -- ___ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net htt

[Ryu-devel] larac algorithm

2016-08-04 Thread wesam kh
Hi allI need to implement the larac algorithm (Lagrange Relaxation based Aggregated Cost) in ryu controller but i have some problem can any one help me to find the error ??you can see the attachment thank you in advance   Wisam Maala from datetime import datetime from ryu.lib.revent.revent