Re: [Ryu-devel] Send packet to the switch

2019-08-15 Thread Martin Mirakyan
_id=0), ] datapath.send_packet_out(in_port=ofp.OFPP_LOCAL, actions=actions, data=data) did the job! Thanks for your time and help! Best, Martin On Thu, Aug 15, 2019 at 11:35 AM Martin Mirakyan wrote: > As I was able to see a PacketOut message in W

Re: [Ryu-devel] Send packet to the switch

2019-08-15 Thread Martin Mirakyan
='192.168.70.2', > dst_mac='00:00:00:00:00:00', dst_ip='192.168.70.3') > pkt.serialize() Do you have any suggestions on how to fix it? Thanks. Best, Martin On Thu, Aug 15, 2019 at 10:15 AM Martin Mirakyan wrote: > Thanks for

Re: [Ryu-devel] Send packet to the switch

2019-08-15 Thread Martin Mirakyan
cs.io/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPSwitchFeatures > > > > This handler should be invoked at the initialization step for the > > target switch and "datapath" instance will be given. > > > > Regards, > > Iwase >

Re: [Ryu-devel] Send packet to the switch

2019-08-13 Thread Martin Mirakyan
html#ryu.ofproto.ofproto_v1_3_parser.OFPSwitchFeatures > > This handler should be invoked at the initialization step for the target > switch and "datapath" instance will be given. > > Regards, > Iwase > > > 2019年8月14日(水) 3:08 Martin Mirakyan : > >> Dear Ryu dev

[Ryu-devel] Send packet to the switch

2019-08-13 Thread Martin Mirakyan
Dear Ryu developer support team, Is it possible to send a packet to the switch from a Ryu app without having any kind of PacketIn events? I want to initiate a packet-send from a Ryu app so that the trigger of the event is the Ryu app itself not something external. I've tried to do (in `def start`

[Ryu-devel] Ryu send packet fails and resets datapath

2019-08-08 Thread Martin Mirakyan
Dear Ryu support team, I have a pretty simple Ryu app which should keep the datapath when initialized and send a packet to the switch whenever the send_packet method is triggered. The problem is that the switch doesn't get the packet and whenever the send_packet is triggered the datapath is being

Re: [Ryu-devel] Sending packet from a Ryu app and receiving it in user-space

2019-08-04 Thread Martin Mirakyan
a:a2:4f config: 0 state: 0 speed: 0 Mbps now, 0 Mbps max *cat /proc/sys/net/ipv4/ip_forward*1 Best, Martin On Sat, Aug 3, 2019 at 8:39 AM Martin Mirakyan wrote: > Dear support team, > > 1. Yes I have enabled openflow 1.4 on ovs > 2. Yes the matching flo

Re: [Ryu-devel] Sending packet from a Ryu app and receiving it in user-space

2019-08-03 Thread Martin Mirakyan
Dear support team, 1. Yes I have enabled openflow 1.4 on ovs 2. Yes the matching flows are there (if you look at dump-flows at the end of my previous email) 3. Yes there is only one switch in my network on gtp_br0. But there are more than 10 other Ryu apps running other than my simple one (none of

[Ryu-devel] Sending packet from a Ryu app and receiving it in user-space

2019-08-02 Thread Martin Mirakyan
Dear Ryu support team, I have a simple Ryu app which should be responsible for - initiating a packet-send after setting a register bit - Receiving that packet in the user-space when it propagates through the switch The problem I'm having is that the message is not being sent to the swit

[Ryu-devel] Initiate event from within a ryu app

2019-07-26 Thread Martin Mirakyan
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 ryu