Thanks!

I'm trying to do as you suggested, but interestingly whenever I execute
`ovs-ofctl dump-flows gtp_br0` I see that all the tables have `n_packets=0,
n_bytes=0`. So, as far as I understand, the PacketOut is getting called but
that doesn't reach the switch. Do you have any suggestions on what might be
the problem?

Thanks again for your time.

Best,
Martin

On Tue, Aug 13, 2019 at 8:58 PM Yusuke Iwase <iwase.yusu...@gmail.com>
wrote:

> Hi,
>
> Yes, you can send the Packet-Out messages without any Packet-In messages,
> but it is required to confirm that Ryu and your switch are connected and
> "datapath" instance for the target switch is given.
>
> If you need to send a Packet-Out message at the initialization step, how
> about sending the message in "switch_features_handler"?
>
>
> https://ryu.readthedocs.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
>
>
> 2019年8月14日(水) 3:08 Martin Mirakyan <mirakyanmar...@gmail.com>:
>
>> 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`):
>>
>> datapath.send_packet_out(in_port=ofp.OFPP_LOCAL,
>>                          actions=[],
>>                          data=pkt.data)
>>
>>
>> But when I print `ovs-ofctl dump-flows gtp_br0` all the tables show
>> n_packets=0 (they aren't 0 if I initiate traffic not from a Ryu app).
>>
>> Is there something I might be missing?
>>
>> Thanks.
>> Best,
>> Martin
>> _______________________________________________
>> Ryu-devel mailing list
>> Ryu-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to