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