Re: [Ryu-devel] How to get the MAC address of all ports for each switch connected to the controller.

2016-05-01 Thread Pynbiang Hadem
Its ok now. I am using the following code and i am getting the *datapath id* along with the rest of the information. *@set_ev_cls(dpset.EventDP, MAIN_DISPATCHER)* *def _event_dp_handler(self, ev): * * self.logger.info ("dp.id =%i, dp.address=%s", ev.dp.id

Re: [Ryu-devel] How to get the MAC address of all ports for each switch connected to the controller.

2016-05-01 Thread Pynbiang Hadem
Hi, Can i also get the corresponding *datapath id* for a switch in addition to the above parameters?: *ev.ports=[OFPPort(port_no=1,hw_addr='ce:f3:fc:94:a5:a9',name='s1-eth1',config=0,state=0,curr=2112,advertised=0,supported=0,peer=0,curr_speed=1000,max_speed=0)* Thanks Hadem On Thu, Apr 21,

Re: [Ryu-devel] ryu sdn controller

2016-05-01 Thread Edison Albuquerque
Thank you Iwase. I'm gonna read it through. Best wishes. 2016-05-01 8:27 GMT+00:00 Iwase Yusuke : > Hi, > > The following shows a sample application of Ryu and explains it. > Please refer to this document first. > > http://osrg.github.io/ryu-book/en/html/switching_hub.html#implementation-of-switc

[Ryu-devel] Code error

2016-05-01 Thread Randa Alani
Dear all Could you tell me what is wrong with this code? @set_ev_cls(ofp_event.EventOFPEchoReply, HANDSHAKE_DISPATCHER) def send_table_stats_request(self, datapath): ofp_parser = datapath.ofproto_parser req = ofp_parser.OFPTableStatsR

Re: [Ryu-devel] Modifying the packet's information in Ryu application

2016-05-01 Thread Randa Alani
Thank you very much. Regards Randa -Original Message- From: Iwase Yusuke [mailto:[email protected]] Sent: 01 May 2016 09:42 To: Randa Alani Cc: [email protected] Subject: Re: [Ryu-devel] Modifying the packet's information in Ryu application Hi, How about using th

Re: [Ryu-devel] Modifying the packet's information in Ryu application

2016-05-01 Thread Iwase Yusuke
Hi, How about using the TCP packet library of Ryu? http://osrg.github.io/ryu-book/en/html/packet_lib.html https://github.com/osrg/ryu/blob/master/ryu/lib/packet/tcp.py#L49 Thanks, Iwase On 2016年05月01日 17:02, Randa Alani wrote: > Dear all > > > > I intend to redirect the TCP ACK message t

Re: [Ryu-devel] External interaction with Ryu

2016-05-01 Thread Iwase Yusuke
Hi, Snort Integration Library of Ryu is using "Unix Domain Socket" to communicate with DPI (Snort). I think you can get some hints to integrate Ryu and nDPI. http://ryu.readthedocs.io/en/latest/snort_integrate.html https://github.com/osrg/ryu/blob/master/ryu/lib/snortlib.py Thanks, Iwase On

Re: [Ryu-devel] ryu sdn controller

2016-05-01 Thread Iwase Yusuke
Hi, The following shows a sample application of Ryu and explains it. Please refer to this document first. http://osrg.github.io/ryu-book/en/html/switching_hub.html#implementation-of-switching-hub-using-ryu Thanks, Iwase On 2016年04月30日 10:38, Edison Albuquerque wrote: > I've been writing apps u

[Ryu-devel] Modifying the packet's information in Ryu application

2016-05-01 Thread Randa Alani
Dear all I intend to redirect the TCP ACK message to the Ryu application, and I need to modify the window field of the TCP packet. Then send it back to the switch as a packet out message. How to modify the information of the window field of the TCP packet in the Ryu application? Kind regards,