Hi. We do test OFPFC_DELETE with out_port. What's in your flow table and what is an example of a command that fails?
On Thu, Jul 15, 2021 at 12:50:50PM +0200, Alejandro Llorens Carrodeguas wrote: > Hello, > > Thanks for your quick response. > > In order to clarify our use case, I share the method that should delete the > flows according to certain outport match. > Our scenario is formed by a Ryu Controller (version 4.34) and an OVS switch > (version 2.15.90) that interconnect several machines. Both applications > (controller and OVS switch) run in the same VM with Ubuntu Server 18.04. Our > idea is to delete the existing OpenFlow rules associated to a given a port > that connects a failed host. > As you can see in the method to delete the flows, we save the information > port in a dictionary called host_ovsports where the keys are the host id and > the values are the OVS ports. Thus, the controller can know the port that > connects a given host. > > def del_flow(): > """ > Delete specific flows taking into account a matching outport > """ > outport = host_ovsports[host_id] > ofproto = switch_datapath.ofproto > parser = switch_datapath.ofproto_parser > cmd = ofproto.OFPFC_DELETE > match = parser.OFPMatch() > mod = parser.OFPFlowMod(datapath= switch_datapath, > table_id=ofproto.OFPTT_ALL, command=cmd, out_port=outport) > switch_datapath.send_msg(mod) > > I also attach a simplified topology of our use case and what we want to do. > If you need more information let me know. > We are having a similar problem to the one described in the following link: > https://ryu-devel.narkive.com/i8Kl0aFy/ryu-delete-flow-entry-basing-on-prior > ity#post4 > > They are trying to delete a flow based on the priority and we want to do it > by taking into account the outport. > > Thank in advance. > > Regards, > > Alejandro Llorens > > -----Original Message----- > From: Ben Pfaff <[email protected]> > Sent: jueves, 15 de julio de 2021 1:45 > To: Alejandro Llorens Carrodeguas <[email protected]> > Cc: [email protected]; 'Irian' <[email protected]>; 'Cristina > Cervelló-Pastor' <[email protected]> > Subject: Re: [ovs-discuss] OFPFC_DELETE and OFPFC_DELETE_STRICT commands > don't delete openflow rules > > On Wed, Jul 14, 2021 at 06:34:46PM +0200, Alejandro Llorens Carrodeguas > wrote: > > Were having trouble deleting OpenFlow rules using the OFPFC_DELETE or > > OFPFC_DELETE_STRICT commands that send a Ryu controller to the OVS switch. > > Thanks for the report. > > So far, you've just told us that these commands don't work for your case. I > can assure you that they do work in the cases we know about. > So, we will need an example or a way to reproduce the problem. The easiest > you make it for us, the easier it will be to understand the problem you're > seeing and either explain why your expectations are wrong or to fix the > problem. > > > -- > El software de antivirus Avast ha analizado este correo electrónico en busca > de virus. > https://www.avast.com/antivirus _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
